X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/blobdiff_plain/5a1a5ec18b91ee6bc60f75d47f4d4dcd3b0d4306..494ef23b50d7e4ff51a7a177c5b0068e1beb4199:/configure.ac diff --git a/configure.ac b/configure.ac index 6c66679..5d774b0 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# autoconf input for agedu. -*- sh -*- +# autoconf input for agedu. AC_INIT([agedu], [6.66], [anakin@pobox.com]) AC_CONFIG_SRCDIR([agedu.c]) @@ -10,6 +10,8 @@ AM_INIT_AUTOMAKE AC_PROG_CC AC_PROG_CC_C99 AC_PROG_INSTALL +AC_CHECK_PROG([HALIBUT],[halibut],[yes],[no]) +AM_CONDITIONAL([HAVE_HALIBUT],[test "x$HALIBUT" = "xyes"]) # Checks for libraries. @@ -32,10 +34,13 @@ AC_FUNC_MMAP AC_FUNC_SELECT_ARGTYPES AC_FUNC_STRFTIME AC_FUNC_VPRINTF -AC_CHECK_FUNCS([ftruncate fdopendir inet_ntoa lstat64 stat64 memchr munmap select socket strcasecmp strchr strcspn strerror strrchr strspn strtoul strtoull]) AC_SEARCH_LIBS(connect, socket nsl) -# AC_SEARCH_LIBS(gethostbyname, socket nsl resolv) +AC_SEARCH_LIBS(inet_ntoa, socket nsl) +AC_SEARCH_LIBS(inet_addr, socket nsl) +# AC_SEARCH_LIBS(gethostbyname, socket nsl resolv) # (if we used gethostbyname) + +AC_CHECK_FUNCS([ftruncate fdopendir lstat64 stat64 memchr munmap select socket strcasecmp strchr strcspn strerror strrchr strspn strtoul strtoull connect inet_ntoa inet_addr]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT