Import release 0.1.15
[secnet] / configure.in
... / ...
CommitLineData
1dnl Process this file with autoconf to produce a configure script.
2
3sinclude(ac_prog_cc_no_writeable_strings.m4)
4
5AC_INIT(secnet.c)
6AC_CONFIG_HEADER(config.h)
7
8AC_REVISION($Id: configure.in,v 1.3 2002/02/20 16:18:18 steve Exp $)
9
10AC_LANG_C
11
12AC_PROG_MAKE_SET
13AC_PROG_CC
14AC_PROG_INSTALL
15AC_PATH_PROG(RM,rm)
16AC_STDC_HEADERS
17AC_CHECK_HEADERS(stdint.h inttypes.h)
18AC_CHECK_HEADERS(net/if.h net/route.h)
19AC_CHECK_HEADERS(linux/if.h)
20AC_CHECK_HEADERS(stropts.h sys/sockio.h net/if_tun.h)
21AC_C_BIGENDIAN
22AC_CHECK_SIZEOF(unsigned long long)
23AC_CHECK_SIZEOF(unsigned long)
24AC_CHECK_SIZEOF(unsigned int)
25AC_CHECK_SIZEOF(unsigned short)
26AC_CHECK_SIZEOF(unsigned char)
27AC_PROG_CC_NO_WRITEABLE_STRINGS(WRITESTRINGS)
28
29dnl the order in which libraries is checked is important
30dnl eg. adns on Solaris 2.5.1 depends on -lnsl and -lsocket
31AC_CHECK_LIB(gmp,mpz_init_set_str)
32AC_CHECK_LIB(gmp2,mpz_init_set_str)
33AC_CHECK_LIB(gmp,__gmpz_init_set_str)
34AC_CHECK_LIB(fl,yywrap)
35AC_CHECK_LIB(nsl,inet_ntoa)
36AC_CHECK_LIB(getopt,getopt_long)
37AC_CHECK_LIB(gnugetopt,getopt_long)
38AC_CHECK_LIB(socket,socket)
39AC_CHECK_LIB(resolv,inet_aton)
40AC_CHECK_LIB(adns,adns_init)
41
42dnl check for getopt in standard library
43AC_SUBST(LIBOBJS)
44AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
45dnl check for alloca
46AC_CHECK_FUNCS(snprintf , , [LIBOBJS="$LIBOBJS snprintf.o"] )
47AC_FUNC_ALLOCA()
48
49AC_OUTPUT(Makefile,echo timestamp >stamp-h)