1 dnl Process this file with autoconf to produce a configure script.
3 dnl $Id: configure.in,v 1.13.2.34 2001/06/29 10:27:57 guus Exp $
6 AM_INIT_AUTOMAKE(tinc, 1.0-cvs)
7 AM_CONFIG_HEADER(config.h)
9 dnl Include the macros from the m4/ directory
10 AM_ACLOCAL_INCLUDE(m4)
12 # Enable GNU extensions.
13 # Define this here, not in acconfig's @TOP@ section, since definitions
14 # in the latter don't make it into the configure-time tests.
15 AC_DEFINE([_GNU_SOURCE], [__USE_BSD])
19 dnl Checks for programs.
22 AC_PROG_GCC_TRADITIONAL
41 AC_DEFINE(HAVE_FREEBSD)
44 AC_DEFINE(HAVE_SOLARIS)
50 dnl Checks for libraries.
52 dnl Checks for header files.
54 AC_CHECK_HEADERS([fcntl.h limits.h sys/ioctl.h syslog.h unistd.h \
55 sys/time.h malloc.h strings.h sys/file.h])
57 dnl Checks for typedefs, structures, and compiler characteristics.
64 dnl Checks for library functions.
68 AC_CHECK_FUNCS([ftime socket select strtol strerror flock unsetenv \
69 asprintf putenv strdup fcloseall daemon strsignal get_current_dir_name])
78 AC_CHECK_FUNC(socket, [], [
79 AC_CHECK_LIB(socket, connect)
81 AC_CHECK_FUNC(gethostbyname, [], [
82 AC_CHECK_LIB(nsl, gethostbyname)
87 dnl These are defined in files in m4/
91 dnl Check if checkpoint tracing has to be enabled
92 AC_ARG_ENABLE(tracing,
93 [ --enable-tracing enable checkpoint tracing (debugging only)],
94 [ AC_DEFINE(ENABLE_TRACING) ]