ce0214a6 |
1 | # This file is part of the Linux Trace Toolkit viewer |
2 | # Copyright (C) 2003-2004 Mathieu Desnoyers |
3 | # |
4 | # This program is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License Version 2 as |
6 | # published by the Free Software Foundation; |
7 | # |
8 | # This program is distributed in the hope that it will be useful, |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | # GNU General Public License for more details. |
12 | # |
13 | # You should have received a copy of the GNU General Public License |
14 | # along with this program; if not, write to the Free Software |
15 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
16 | # MA 02111-1307, USA. |
17 | |
18 | |
19 | |
9f14a497 |
20 | # -*- Autoconf -*- |
21 | # Process this file with autoconf to produce a configure script. |
22 | |
23 | AC_PREREQ(2.57) |
24 | AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) |
b0f606e9 |
25 | #AC_WITH_LTDL # not needed ? |
96ff0a32 |
26 | AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.4-02022005) |
b445142a |
27 | AM_CONFIG_HEADER(config.h) |
39407106 |
28 | AM_PROG_LIBTOOL |
b00eda44 |
29 | |
b37f012b |
30 | AM_PATH_GLIB_2_0(2.4.0, ,AC_MSG_ERROR([glib is required in order to compile LinuxTraceToolkit - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule) |
9f14a497 |
31 | |
286ffb24 |
32 | AM_PATH_GTK_2_0(2.4.0, ,AC_MSG_ERROR([gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule) |
442137a6 |
33 | |
ddd2aaff |
34 | AC_SYS_LARGEFILE |
35 | |
9f14a497 |
36 | # Checks for programs. |
37 | AC_PROG_CC |
38 | |
39 | # Checks for libraries. |
6591c2c3 |
40 | AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) ) |
21ff84a0 |
41 | #AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) ) |
0b74aa83 |
42 | |
9f14a497 |
43 | |
44 | # Checks for header files. |
45 | AC_HEADER_STDC |
3c18ff33 |
46 | AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h]) |
9f14a497 |
47 | |
c8faea22 |
48 | AC_ISC_POSIX |
49 | AC_PROG_CC |
50 | AM_PROG_CC_STDC |
51 | AC_HEADER_STDC |
52 | |
53 | pkg_modules="gtk+-2.0 >= 2.0.0" |
388a40e9 |
54 | PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) |
327a4314 |
55 | PACKAGE_CFLAGS="-Wall -Wformat" |
388a40e9 |
56 | AC_SUBST(PACKAGE_CFLAGS) |
57 | AC_SUBST(PACKAGE_LIBS) |
58 | |
9f14a497 |
59 | # Checks for typedefs, structures, and compiler characteristics. |
60 | AC_HEADER_STDBOOL |
61 | AC_C_CONST |
62 | AC_C_INLINE |
63 | AC_TYPE_OFF_T |
64 | AC_TYPE_SIZE_T |
65 | AC_HEADER_TIME |
66 | |
67 | # Checks for library functions. |
68 | AC_FUNC_ERROR_AT_LINE |
69 | AC_FUNC_MALLOC |
70 | AC_FUNC_SELECT_ARGTYPES |
71 | AC_CHECK_FUNCS([select]) |
72 | |
73 | #CPPFLAGS="$CPPFLAGS -I" |
74 | |
911b7a3c |
75 | AM_CONDITIONAL(LTTVSTATIC, test "$enable_lttvstatic" = yes) |
96cbee09 |
76 | lttvlibdir="${libdir}/lttv" |
96cbee09 |
77 | lttvplugindir="${lttvlibdir}/plugins" |
38d7caa6 |
78 | lttlibdir="${libdir}/ltt" |
0c56e138 |
79 | top_lttvdir="\$(top_srcdir)/lttv" |
13f86ce2 |
80 | top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow" |
fc17f7eb |
81 | |
13f86ce2 |
82 | DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)" |
273475ce |
83 | |
b00eda44 |
84 | #CPPFLAGS="${GLIB_CFLAGS}" |
85 | #AC_SUBST(CPPFLAGS) |
86 | |
d8f124de |
87 | lttincludedir="${includedir}/ltt" |
940dc6d6 |
88 | lttvincludedir="${includedir}/lttv" |
13f86ce2 |
89 | lttvwindowincludedir="${includedir}/lttvwindow" |
6591c2c3 |
90 | |
91 | |
92 | AC_SUBST(POPT_LIBS) |
93 | AC_SUBST(lttvlibdir) |
94 | AC_SUBST(lttvplugindir) |
95 | AC_SUBST(lttlibdir) |
96 | AC_SUBST(top_lttvdir) |
97 | AC_SUBST(top_lttvwindowdir) |
98 | AC_SUBST(DEFAULT_INCLUDES) |
99 | AC_SUBST(lttincludedir) |
100 | AC_SUBST(lttvincludedir) |
13f86ce2 |
101 | AC_SUBST(lttvwindowincludedir) |
940dc6d6 |
102 | |
9f14a497 |
103 | AC_CONFIG_FILES([Makefile |
63a77d1b |
104 | libltt/Makefile |
2cdb6fcb |
105 | lttctl/Makefile |
a100e2b7 |
106 | lttv/Makefile |
d8f124de |
107 | lttv/lttv/Makefile |
830eba15 |
108 | lttv/modules/Makefile |
0e9ba239 |
109 | lttv/modules/text/Makefile |
6ebfde5e |
110 | lttv/modules/gui/Makefile |
2864f4c5 |
111 | lttv/modules/gui/lttvwindow/Makefile |
13f86ce2 |
112 | lttv/modules/gui/lttvwindow/lttvwindow/Makefile |
2864f4c5 |
113 | lttv/modules/gui/lttvwindow/pixmaps/Makefile |
88feb618 |
114 | lttv/modules/gui/controlflow/Makefile |
115 | lttv/modules/gui/detailedevents/Makefile |
116 | lttv/modules/gui/statistics/Makefile |
91ad3f0a |
117 | lttv/modules/gui/filter/Makefile |
940dc6d6 |
118 | lttd/Makefile |
d7b45e73 |
119 | ltt/Makefile |
b1053af5 |
120 | ltt/convert/Makefile |
121 | doc/Makefile |
122 | doc/developer/Makefile |
123 | doc/developer/developer_guide/Makefile |
124 | doc/developer/developer_guide/docbook/Makefile |
125 | doc/developer/developer_guide/html/Makefile |
126 | doc/user/Makefile |
127 | doc/user/user_guide/Makefile |
128 | doc/user/user_guide/docbook/Makefile |
129 | doc/user/user_guide/html/Makefile]) |
9f14a497 |
130 | AC_OUTPUT |