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