1 # This file is part of the Linux Trace Toolkit viewer
2 # Copyright (C) 2003-2004 Mathieu Desnoyers
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;
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.
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,
21 # Process this file with autoconf to produce a configure script.
24 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
25 #AC_WITH_LTDL # not needed ?
26 AM_INIT_AUTOMAKE(ltt-control,0.79-01022010)
27 AM_CONFIG_HEADER(config.h)
30 AC_PATH_PROGS(BASH, bash)
34 # Checks for programs.
37 AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is
38 required in order to compile LinuxTraceToolkit]))
42 AC_CHECK_LIB(pthread, pthread_join,[THREAD_LIBS="-lpthread"], AC_MSG_ERROR([LinuxThreads is required in order to compile lttd]))
44 # Checks for header files.
46 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h])
53 PACKAGE_CFLAGS="-Wall -Wformat"
54 AC_SUBST(PACKAGE_CFLAGS)
55 AC_SUBST(PACKAGE_LIBS)
57 # Checks for typedefs, structures, and compiler characteristics.
65 # Checks for library functions.
68 AC_FUNC_SELECT_ARGTYPES
69 AC_CHECK_FUNCS([select])
71 #CPPFLAGS="$CPPFLAGS -I"
73 DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir)"
75 #CPPFLAGS="${GLIB_CFLAGS}"
78 lttctlincludedir="${includedir}/liblttctl"
80 AC_SUBST(lttctlincludedir)
83 AC_SUBST(DEFAULT_INCLUDES)
85 AC_CONFIG_FILES([Makefile