add SPLICE_F_MORE to lttd splice
[ltt-control.git] / configure.in
CommitLineData
2727692a 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 ?
42e99028 26AM_INIT_AUTOMAKE(ltt-control,0.69-23072009)
2727692a 27AM_CONFIG_HEADER(config.h)
28AM_PROG_LIBTOOL
29
2727692a 30AC_PATH_PROGS(BASH, bash)
31
32AC_SYS_LARGEFILE
33
34# Checks for programs.
35AC_PROG_CC
36
2727692a 37AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is
38required in order to compile LinuxTraceToolkit]))
39
40
41# pthread for lttd
42AC_CHECK_LIB(pthread, pthread_join,[THREAD_LIBS="-lpthread"], AC_MSG_ERROR([LinuxThreads is required in order to compile lttd]))
43
44# Checks for header files.
45AC_HEADER_STDC
46AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h])
47
48AC_ISC_POSIX
49AC_PROG_CC
50AM_PROG_CC_STDC
51AC_HEADER_STDC
52
2727692a 53PACKAGE_CFLAGS="-Wall -Wformat"
54AC_SUBST(PACKAGE_CFLAGS)
55AC_SUBST(PACKAGE_LIBS)
56
57# Checks for typedefs, structures, and compiler characteristics.
58AC_HEADER_STDBOOL
59AC_C_CONST
60AC_C_INLINE
61AC_TYPE_OFF_T
62AC_TYPE_SIZE_T
63AC_HEADER_TIME
64
65# Checks for library functions.
66AC_FUNC_ERROR_AT_LINE
67#AC_FUNC_MALLOC
68AC_FUNC_SELECT_ARGTYPES
69AC_CHECK_FUNCS([select])
70
71#CPPFLAGS="$CPPFLAGS -I"
72
7137df55 73DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir)"
2727692a 74
75#CPPFLAGS="${GLIB_CFLAGS}"
76#AC_SUBST(CPPFLAGS)
77
b2cea388 78lttctlincludedir="${includedir}/liblttctl"
79
80AC_SUBST(lttctlincludedir)
2727692a 81AC_SUBST(UTIL_LIBS)
82AC_SUBST(THREAD_LIBS)
2727692a 83AC_SUBST(DEFAULT_INCLUDES)
2727692a 84
85AC_CONFIG_FILES([Makefile
86 liblttctl/Makefile
87 lttctl/Makefile
3c26b92a 88 lttd/Makefile
3c26b92a 89 specs/Makefile])
2727692a 90AC_OUTPUT
This page took 0.025719 seconds and 4 git commands to generate.