1 dnl Process this file with autoconf to produce a configure script.
4 AC_CONFIG_HEADER(config.h)
6 AC_REVISION($Id: configure.in,v 1.2 2001/12/06 17:36:27 steve Exp $)
15 AC_CHECK_HEADERS(stdint.h inttypes.h)
16 AC_CHECK_HEADERS(net/if.h net/route.h)
17 AC_CHECK_HEADERS(linux/if.h)
18 AC_CHECK_HEADERS(stropts.h sys/sockio.h net/if_tun.h)
20 AC_CHECK_SIZEOF(unsigned long long)
21 AC_CHECK_SIZEOF(unsigned long)
22 AC_CHECK_SIZEOF(unsigned int)
23 AC_CHECK_SIZEOF(unsigned short)
24 AC_CHECK_SIZEOF(unsigned char)
26 dnl the order in which libraries is checked is important
27 dnl eg. adns on Solaris 2.5.1 depends on -lnsl and -lsocket
28 AC_CHECK_LIB(gmp,mpz_init_set_str)
29 AC_CHECK_LIB(gmp2,mpz_init_set_str)
30 AC_CHECK_LIB(gmp,__gmpz_init_set_str)
31 AC_CHECK_LIB(fl,yywrap)
32 AC_CHECK_LIB(nsl,inet_ntoa)
33 AC_CHECK_LIB(getopt,getopt_long)
34 AC_CHECK_LIB(gnugetopt,getopt_long)
35 AC_CHECK_LIB(socket,socket)
36 AC_CHECK_LIB(resolv,inet_aton)
37 AC_CHECK_LIB(adns,adns_init)
39 dnl check for getopt in standard library
41 AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
43 AC_CHECK_FUNCS(snprintf , , [LIBOBJS="$LIBOBJS snprintf.o"] )
46 AC_OUTPUT(Makefile,echo timestamp >stamp-h)