dnl Process this file with autoconf to produce a configure script. AC_INIT(lnx2bsd.h) dnl Checks for programs. AC_PROG_CC AC_PROG_MAKE_SET dnl Checks for libraries. AC_CHECK_LIB(socket,gethostbyaddr) AC_CHECK_LIB(xnet,gethostbyaddr) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(stdio.h signal.h string.h netdb.h netinet/in.h arpa/inet.h fcntl.h sys/time.h sys/types.h sys/socket.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_HEADER_TIME dnl Checks for library functions. AC_TYPE_SIGNAL AC_CHECK_FUNCS(gethostbyaddr) echo 'checking for tcpdump program in the most known common places...' if test -f '/bin/tcpdump' || test -f '/sbin/tcpdump' || test -f '/usr/bin/tcpdump' || test -f '/usr/sbin/tcpdump' || test -f '/usr/local/sbin/tcpdump' || test -f '/usr/local/bin/tcpdump' || test -f '/etc/tcpdump'; then echo 'tcpdump... found!!' AC_OUTPUT(Makefile) else echo 'tcpdump not found...' echo 'install tcpdump first, this program cannot run without tcpdump.' echo 'fatal error!!' fi