fix scrolling
[lttv.git] / ltt / branches / poly / configure.in
... / ...
CommitLineData
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
20# -*- Autoconf -*-
21# Process this file with autoconf to produce a configure script.
22
23AC_PREREQ(2.57)
24AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
25#AC_WITH_LTDL # not needed ?
26AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.4-02022005)
27AM_CONFIG_HEADER(config.h)
28AM_PROG_LIBTOOL
29
30AM_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)
31
32AM_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)
33
34AC_SYS_LARGEFILE
35
36# Checks for programs.
37AC_PROG_CC
38
39# Checks for libraries.
40AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
41#AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) )
42
43
44# Checks for header files.
45AC_HEADER_STDC
46AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
47
48AC_ISC_POSIX
49AC_PROG_CC
50AM_PROG_CC_STDC
51AC_HEADER_STDC
52
53pkg_modules="gtk+-2.0 >= 2.0.0"
54PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
55PACKAGE_CFLAGS="-Wall -Wformat"
56AC_SUBST(PACKAGE_CFLAGS)
57AC_SUBST(PACKAGE_LIBS)
58
59# Checks for typedefs, structures, and compiler characteristics.
60AC_HEADER_STDBOOL
61AC_C_CONST
62AC_C_INLINE
63AC_TYPE_OFF_T
64AC_TYPE_SIZE_T
65AC_HEADER_TIME
66
67# Checks for library functions.
68AC_FUNC_ERROR_AT_LINE
69AC_FUNC_MALLOC
70AC_FUNC_SELECT_ARGTYPES
71AC_CHECK_FUNCS([select])
72
73#CPPFLAGS="$CPPFLAGS -I"
74
75AM_CONDITIONAL(LTTVSTATIC, test "$enable_lttvstatic" = yes)
76lttvlibdir="${libdir}/lttv"
77lttvplugindir="${lttvlibdir}/plugins"
78lttlibdir="${libdir}/ltt"
79top_lttvdir="\$(top_srcdir)/lttv"
80top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow"
81
82DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)"
83
84#CPPFLAGS="${GLIB_CFLAGS}"
85#AC_SUBST(CPPFLAGS)
86
87lttincludedir="${includedir}/ltt"
88lttvincludedir="${includedir}/lttv"
89lttvwindowincludedir="${includedir}/lttvwindow"
90
91
92AC_SUBST(POPT_LIBS)
93AC_SUBST(lttvlibdir)
94AC_SUBST(lttvplugindir)
95AC_SUBST(lttlibdir)
96AC_SUBST(top_lttvdir)
97AC_SUBST(top_lttvwindowdir)
98AC_SUBST(DEFAULT_INCLUDES)
99AC_SUBST(lttincludedir)
100AC_SUBST(lttvincludedir)
101AC_SUBST(lttvwindowincludedir)
102
103AC_CONFIG_FILES([Makefile
104 libltt/Makefile
105 lttctl/Makefile
106 lttv/Makefile
107 lttv/lttv/Makefile
108 lttv/modules/Makefile
109 lttv/modules/text/Makefile
110 lttv/modules/gui/Makefile
111 lttv/modules/gui/lttvwindow/Makefile
112 lttv/modules/gui/lttvwindow/lttvwindow/Makefile
113 lttv/modules/gui/lttvwindow/pixmaps/Makefile
114 lttv/modules/gui/controlflow/Makefile
115 lttv/modules/gui/detailedevents/Makefile
116 lttv/modules/gui/statistics/Makefile
117 lttv/modules/gui/filter/Makefile
118 lttd/Makefile
119 ltt/Makefile
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
130 facilities/Makefile])
131AC_OUTPUT
This page took 0.022177 seconds and 4 git commands to generate.