AC_INIT(nndel.c) AC_CONFIG_HEADER(config.h) AC_ARG_PROGRAM PRODUCT=nndb VERSION=0.3 AC_DEFINE_UNQUOTED(PRODUCT, "$PRODUCT") AC_DEFINE_UNQUOTED(VERSION, "$VERSION") AC_SUBST(PRODUCT) AC_SUBST(VERSION) AC_PROG_CC AC_PROG_INSTALL AC_PROG_MAKE_SET dnl We use a path for perl so the #! line in autoscan will work. AC_PATH_PROG(PERL, perl, no) AC_ARG_WITH(perl, [ --with-perl=BIN use perl interpreter BIN], PERL=$withval) AC_AIX AC_ISC_POSIX AC_MINIX AC_C_CONST AC_CHECK_LIB(socket, socket) AC_CHECK_LIB(nsl, gethostbyname) AC_CHECK_HEADERS(string.h unistd.h netdb.h sys/socket.h netinet/in.h sys/stat.h errno.h time.h pwd.h fcntl.h) AC_HEADER_STDC AC_CHECK_FUNCS(strerror isatty perror gethostname getprotobyname socket connect) AC_OUTPUT(Makefile nndb) chmod +x nndb