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