1 dnl Process this file with autoconf to produce a configure script.
3 dnl $Id: configure.in,v 1.12 2000/05/29 21:40:20 zarq Exp $
6 AM_INIT_AUTOMAKE(tinc, 1.0pre2)
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
32 dnl Checks for libraries.
34 dnl Checks for header files.
36 AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h syslog.h unistd.h gmp.h gmp2/gmp.h \
39 dnl Checks for typedefs, structures, and compiler characteristics.
46 dnl Checks for library functions.
50 AC_CHECK_FUNCS(ftime socket select strtol strerror)
56 # Check for the GNU Multi Precision Library
58 AC_CHECK_LIB(gmp2, mpz_powm, [
61 AC_CHECK_LIB(gmp3, mpz_powm, [
64 AC_CHECK_LIB(gmp, mpz_powm, [
68 if test $libgmp = none; then
69 AC_MSG_ERROR(libgmp is not installed. Please grab it from your
70 nearest GNU mirror and install it (see README))
72 LIBS="$LIBS -l$libgmp"
75 AC_CHECK_LIB(dl, dlopen, [
79 AC_OUTPUT([Makefile src/Makefile cipher/Makefile
80 cipher/blowfish/Makefile doc/Makefile intl/Makefile lib/Makefile
81 m4/Makefile po/Makefile.in redhat/Makefile debian/Makefile])