dnl Process this file with autoconf to produce a configure script. AC_INIT(tircproxy.c) AC_CANONICAL_SYSTEM dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL dnl Checks for libraries. dnl Replace `main' with a function in -lwrap: AC_CHECK_LIB(wrap, main) AC_CHECK_LIB(nsl, main) AC_CHECK_LIB(udb, main) AC_CHECK_LIB(socket, main) AC_CHECK_LIB(crypt, main) AC_PATH_PROG(STRIP, strip, strip) dnl Create config.h AC_CONFIG_HEADER(config.h) dnl Check for OS specific stuff.. AC_MSG_CHECKING([for OS quirks]) case "$host_os" in linux*) linux=yes; ;; hpux*) hpux=yes; ;; *) linux=no; esac if test "$linux" = yes; then AC_DEFINE(HAVE_LINUX) AC_MSG_RESULT([goody - it's Linux!]) else if test "$hpux" = yes; then if test "$CC" = cc; then CC="$CC -Ae" AC_MSG_RESULT([using ansi compiler mode.]) else AC_MSG_RESULT([ok, not using cc.]) fi else AC_MSG_RESULT([done.]) fi fi dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h crypt.h syslog.h unistd.h netinet/ip_nat.h netinet/ip_fil_compat.h udb.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_UID_T dnl Checks for library functions. AC_PROG_GCC_TRADITIONAL AC_FUNC_SETPGRP AC_TYPE_SIGNAL AC_CHECK_FUNCS(select socket strerror strstr vsnprintf snprintf) AC_FUNC_VPRINTF AC_OUTPUT(Makefile)