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 ? |
0f48dea4 |
7 | AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-30092003) |
b445142a |
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 | |
c8faea22 |
25 | AC_ISC_POSIX |
26 | AC_PROG_CC |
27 | AM_PROG_CC_STDC |
28 | AC_HEADER_STDC |
29 | |
30 | pkg_modules="gtk+-2.0 >= 2.0.0" |
388a40e9 |
31 | PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) |
32 | AC_SUBST(PACKAGE_CFLAGS) |
33 | AC_SUBST(PACKAGE_LIBS) |
34 | |
9f14a497 |
35 | # Checks for typedefs, structures, and compiler characteristics. |
36 | AC_HEADER_STDBOOL |
37 | AC_C_CONST |
38 | AC_C_INLINE |
39 | AC_TYPE_OFF_T |
40 | AC_TYPE_SIZE_T |
41 | AC_HEADER_TIME |
42 | |
43 | # Checks for library functions. |
44 | AC_FUNC_ERROR_AT_LINE |
45 | AC_FUNC_MALLOC |
46 | AC_FUNC_SELECT_ARGTYPES |
47 | AC_CHECK_FUNCS([select]) |
48 | |
49 | #CPPFLAGS="$CPPFLAGS -I" |
50 | |
96cbee09 |
51 | lttvlibdir="${libdir}/lttv" |
52 | AC_SUBST(lttvlibdir) |
53 | |
54 | lttvplugindir="${lttvlibdir}/plugins" |
a521ac8f |
55 | AC_SUBST(lttvplugindir) |
9f14a497 |
56 | |
38d7caa6 |
57 | lttlibdir="${libdir}/ltt" |
58 | AC_SUBST(lttlibdir) |
59 | |
60 | |
fc17f7eb |
61 | top_includedir="\$(top_srcdir)/include" |
62 | AC_SUBST(top_includedir) |
63 | |
6ebfde5e |
64 | DEFAULT_INCLUDES="-I\$(top_includedir) -I\$(top_srcdir)" |
8c4bc8bf |
65 | AC_SUBST(DEFAULT_INCLUDES) |
273475ce |
66 | |
b00eda44 |
67 | #CPPFLAGS="${GLIB_CFLAGS}" |
68 | #AC_SUBST(CPPFLAGS) |
69 | |
940dc6d6 |
70 | lttvincludedir="${includedir}/lttv" |
71 | AC_SUBST(lttvincludedir) |
72 | |
73 | lttincludedir="${includedir}/ltt" |
74 | AC_SUBST(lttincludedir) |
75 | |
9f14a497 |
76 | AC_CONFIG_FILES([Makefile |
a100e2b7 |
77 | lttv/Makefile |
830eba15 |
78 | lttv/modules/Makefile |
6ebfde5e |
79 | lttv/modules/gui/Makefile |
80 | lttv/modules/gui/mainWin/Makefile |
81 | lttv/modules/gui/mainWin/src/Makefile |
a100e2b7 |
82 | lttv/modules/gui/mainWin/pixmaps/Makefile |
6ebfde5e |
83 | lttv/modules/gui/API/Makefile |
1e7cfdab |
84 | lttv/modules/guiControlFlow/Makefile |
a100e2b7 |
85 | lttv/modules/icons/Makefile |
2f78a81d |
86 | lttv/modules/guiStatistic/Makefile |
940dc6d6 |
87 | lttd/Makefile |
d7b45e73 |
88 | ltt/Makefile |
89 | include/Makefile |
90 | include/ltt/Makefile |
f60d7a47 |
91 | ltt/convert/Makefile |
d7b45e73 |
92 | include/lttv/Makefile]) |
9f14a497 |
93 | AC_OUTPUT |
94ec7637 |
94 | # lttv/modules/examples/Makefile |
f60d7a47 |
95 | # include/ltt/convert/Makefile |
96 | # lttv/modules/gui/API/Makefile |
97 | # lttv/modules/gui/Makefile |
98 | # lttv/modules/text/Makefile |
99 | # lttv/plugins/Makefile |
100 | # lttv/plugins/examples/Makefile |
4a6edf70 |
101 | # lttv/modules/coreGUI/Makefile |