1dnl configure.in for fragrouter 2dnl 3dnl Dug Song <dugsong@anzen.com> 4dnl 5dnl $Id: configure.in,v 1.9 1999/06/25 15:19:48 dugsong Exp $ 6 7AC_INIT(fragrouter.c) 8 9AC_CONFIG_HEADER(config.h) 10 11dnl Check for programs. 12AC_PROG_CC 13dnl Check for some compiler options. 14if test -n "$GCC"; then 15 AC_MSG_CHECKING([if the compiler understands -pipe -Wall]) 16 OLDCC="$CC" 17 CC="$CC -pipe -Wall" 18 AC_TRY_COMPILE(,, 19 AC_MSG_RESULT(yes), 20 CC="$OLDCC" 21 AC_MSG_RESULT(no)) 22fi 23AC_PROG_INSTALL 24AC_PROG_MAKE_SET 25 26dnl Check for standard header files. 27AC_HEADER_STDC 28AC_CHECK_HEADERS(unistd.h sys/param.h) 29 30dnl Check for typedefs, structures, and compiler characteristics. 31AC_C_CONST 32 33dnl Check for libraries and functions. 34AC_CHECK_FUNCS(strdup) 35 36dnl Solaris jonks 37AC_CHECK_LIB(nsl, gethostbyname) 38AC_CHECK_LIB(socket, socket) 39 40dnl Linux sux 41AC_CHECK_HEADERS(net/ethernet.h) 42dnl AC_DEFINE(_BSD_SOURCE) 43 44AC_CONFIG_SUBDIRS(libpcap-0.4 Libnet-0.99b) 45 46AC_OUTPUT(Makefile) 47