- Proper initialization of rbltree structures.
[tinc] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl $Id: configure.in,v 1.13.2.19 2000/11/20 18:05:34 zarq Exp $
4
5 AC_INIT(src/tincd.c)
6 AM_INIT_AUTOMAKE(tinc, 1.0pre4-cvs)
7 AM_CONFIG_HEADER(config.h)
8
9 dnl Include the macros from the m4/ directory
10 AM_ACLOCAL_INCLUDE(m4)
11
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])
16
17 ALL_LINGUAS="es nl"
18
19 dnl Checks for programs.
20 AC_PROG_CC
21 AC_PROG_CPP
22 AC_PROG_GCC_TRADITIONAL
23 AC_PROG_AWK
24 AC_PROG_INSTALL
25 AC_PROG_LN_S
26 AC_PROG_MAKE_SET
27 jm_PERL
28 AM_PROG_LIBTOOL
29
30
31 AC_ISC_POSIX
32
33 dnl Checks for libraries.
34
35 dnl Checks for header files.
36 AC_HEADER_STDC
37 AC_CHECK_HEADERS([fcntl.h limits.h sys/ioctl.h syslog.h unistd.h \
38 sys/time.h malloc.h strings.h sys/file.h])
39
40 dnl Checks for typedefs, structures, and compiler characteristics.
41 AC_C_CONST
42 AC_TYPE_PID_T
43 AC_TYPE_SIZE_T
44 AC_HEADER_TIME
45 AC_STRUCT_TM
46
47 dnl Checks for library functions.
48 AC_FUNC_MEMCMP
49 AC_FUNC_ALLOCA
50 AC_TYPE_SIGNAL
51 AC_CHECK_FUNCS([ftime socket select strtol strerror flock unsetenv \
52 asprintf putenv strdup])
53 jm_FUNC_MALLOC
54 jm_FUNC_REALLOC
55
56 AM_GNU_GETTEXT
57
58 AC_CHECK_LIB(dl, dlopen, [
59   LIBS="$LIBS -ldl"
60 ])
61
62
63 dnl Crypto stuff
64 tinc_OPENSSL
65
66
67 dnl Support for SunOS
68
69 AC_CHECK_FUNC(socket, [], [
70   AC_CHECK_LIB(socket, connect)
71 ])
72 AC_CHECK_FUNC(gethostbyname, [], [
73   AC_CHECK_LIB(nsl, gethostbyname)
74 ])
75
76
77 dnl Check for TUN/TAP support in the kernel
78 tinc_TUNTAP
79
80 dnl Check if checkpoint tracing has to be enabled
81 AC_ARG_ENABLE(tracing,
82   [  --enable-tracing        enable checkpoint tracing (debugging only)],
83   [ AC_DEFINE(ENABLE_TRACING) ]
84 )
85
86 AC_SUBST(INCLUDES)
87
88 AC_OUTPUT([Makefile src/Makefile
89 doc/Makefile doc/es/Makefile intl/Makefile lib/Makefile
90 m4/Makefile po/Makefile.in redhat/Makefile debian/Makefile])