back
[lttv.git] / ltt / branches / poly / configure.in
CommitLineData
9f14a497 1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.57)
5AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
b0f606e9 6#AC_WITH_LTDL # not needed ?
dbedfa64 7AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-06082003)
abd99409 8AM_CONFIG_HEADER([config.h])
39407106 9AM_PROG_LIBTOOL
b00eda44 10
11AM_PATH_GLIB_2_0(2.0.0, ,AC_MSG_ERROR([glib is required in order to compile LinuxTraceToolkit - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
9f14a497 12
442137a6 13AM_PATH_GTK_2_0(2.0.0, ,AC_MSG_ERROR([gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
14
9f14a497 15# Checks for programs.
16AC_PROG_CC
17
18# Checks for libraries.
31303917 19AC_CHECK_LIB([popt], [poptGetNextOpt], ,AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
9f14a497 20
21# Checks for header files.
22AC_HEADER_STDC
3c18ff33 23AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
9f14a497 24
c8faea22 25AC_ISC_POSIX
26AC_PROG_CC
27AM_PROG_CC_STDC
28AC_HEADER_STDC
29
30pkg_modules="gtk+-2.0 >= 2.0.0"
388a40e9 31PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
32AC_SUBST(PACKAGE_CFLAGS)
33AC_SUBST(PACKAGE_LIBS)
34
9f14a497 35# Checks for typedefs, structures, and compiler characteristics.
36AC_HEADER_STDBOOL
37AC_C_CONST
38AC_C_INLINE
39AC_TYPE_OFF_T
40AC_TYPE_SIZE_T
41AC_HEADER_TIME
42
43# Checks for library functions.
44AC_FUNC_ERROR_AT_LINE
45AC_FUNC_MALLOC
46AC_FUNC_SELECT_ARGTYPES
47AC_CHECK_FUNCS([select])
48
49#CPPFLAGS="$CPPFLAGS -I"
50
a521ac8f 51lttvplugindir="${libdir}/lttv/plugins"
52AC_SUBST(lttvplugindir)
9f14a497 53
38d7caa6 54lttlibdir="${libdir}/ltt"
55AC_SUBST(lttlibdir)
56
57
fc17f7eb 58top_includedir="\$(top_srcdir)/include"
59AC_SUBST(top_includedir)
60
6ebfde5e 61DEFAULT_INCLUDES="-I\$(top_includedir) -I\$(top_srcdir)"
8c4bc8bf 62AC_SUBST(DEFAULT_INCLUDES)
273475ce 63
b00eda44 64#CPPFLAGS="${GLIB_CFLAGS}"
65#AC_SUBST(CPPFLAGS)
66
940dc6d6 67lttvincludedir="${includedir}/lttv"
68AC_SUBST(lttvincludedir)
69
70lttincludedir="${includedir}/ltt"
71AC_SUBST(lttincludedir)
72
9f14a497 73AC_CONFIG_FILES([Makefile
f60d7a47 74 lttv/Makefile
830eba15 75 lttv/modules/Makefile
6ebfde5e 76 lttv/modules/gui/Makefile
77 lttv/modules/gui/mainWin/Makefile
78 lttv/modules/gui/mainWin/src/Makefile
79 lttv/modules/gui/API/Makefile
940dc6d6 80 lttd/Makefile
d7b45e73 81 ltt/Makefile
82 include/Makefile
83 include/ltt/Makefile
f60d7a47 84 ltt/convert/Makefile
d7b45e73 85 include/lttv/Makefile])
9f14a497 86AC_OUTPUT
94ec7637 87# lttv/modules/examples/Makefile
f60d7a47 88# include/ltt/convert/Makefile
89# lttv/modules/gui/API/Makefile
90# lttv/modules/gui/Makefile
91# lttv/modules/text/Makefile
92# lttv/plugins/Makefile
93# lttv/plugins/examples/Makefile
4a6edf70 94# lttv/modules/coreGUI/Makefile
This page took 0.027665 seconds and 4 git commands to generate.