1*5f4c09ddSEd Mastednl Process this file with autoconf to produce a configure script. 2*5f4c09ddSEd MasteAC_INIT([blacklistd],[0.1],[christos@netbsd.com]) 3*5f4c09ddSEd MasteAM_INIT_AUTOMAKE([subdir-objects foreign]) 4*5f4c09ddSEd Mastem4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 5*5f4c09ddSEd Maste 6*5f4c09ddSEd MasteAC_CONFIG_HEADERS([config.h]) 7*5f4c09ddSEd MasteAC_CONFIG_MACRO_DIR([m4]) 8*5f4c09ddSEd Maste 9*5f4c09ddSEd MasteAC_SUBST(WARNINGS) 10*5f4c09ddSEd Maste 11*5f4c09ddSEd Mastednl Checks for programs. 12*5f4c09ddSEd MasteAC_PROG_CC_STDC 13*5f4c09ddSEd MasteAC_USE_SYSTEM_EXTENSIONS 14*5f4c09ddSEd MasteAM_PROG_CC_C_O 15*5f4c09ddSEd MasteAC_C_BIGENDIAN 16*5f4c09ddSEd MasteAC_PROG_INSTALL 17*5f4c09ddSEd MasteAC_PROG_LN_S 18*5f4c09ddSEd MasteLT_INIT([disable-static pic-only]) 19*5f4c09ddSEd Mastegl_VISIBILITY 20*5f4c09ddSEd Mastednl Checks for headers 21*5f4c09ddSEd MasteAC_HEADER_STDC 22*5f4c09ddSEd MasteAC_HEADER_MAJOR 23*5f4c09ddSEd MasteAC_HEADER_SYS_WAIT 24*5f4c09ddSEd MasteAC_CHECK_HEADERS(stdint.h fcntl.h stdint.h inttypes.h unistd.h) 25*5f4c09ddSEd MasteAC_CHECK_HEADERS(sys/un.h sys/socket.h limits.h) 26*5f4c09ddSEd MasteAC_CHECK_HEADERS(arpa/inet.h getopt.h err.h) 27*5f4c09ddSEd MasteAC_CHECK_HEADERS(sys/types.h util.h sys/time.h time.h) 28*5f4c09ddSEd MasteAC_CHECK_HEADERS(netatalk/at.h net/if_dl.h db.h db_185.h) 29*5f4c09ddSEd MasteAC_CHECK_LIB(rt, clock_gettime) 30*5f4c09ddSEd MasteAC_CHECK_LIB(db, __db185_open) 31*5f4c09ddSEd MasteAC_CHECK_LIB(util, pidfile) 32*5f4c09ddSEd MasteAC_CHECK_LIB(util, sockaddr_snprintf) 33*5f4c09ddSEd Maste 34*5f4c09ddSEd MasteAH_BOTTOM([ 35*5f4c09ddSEd Maste#ifndef __NetBSD__ 36*5f4c09ddSEd Maste#include "port.h" 37*5f4c09ddSEd Maste#endif 38*5f4c09ddSEd Maste]) 39*5f4c09ddSEd Maste 40*5f4c09ddSEd Mastednl Checks for typedefs, structures, and compiler characteristics. 41*5f4c09ddSEd MasteAC_C_CONST 42*5f4c09ddSEd MasteAC_TYPE_OFF_T 43*5f4c09ddSEd MasteAC_TYPE_SIZE_T 44*5f4c09ddSEd MasteAC_SYS_LARGEFILE 45*5f4c09ddSEd MasteAC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], [#include <sys/socket.h>]) 46*5f4c09ddSEd Maste 47*5f4c09ddSEd MasteAC_TYPE_PID_T 48*5f4c09ddSEd MasteAC_TYPE_UINT8_T 49*5f4c09ddSEd MasteAC_TYPE_UINT16_T 50*5f4c09ddSEd MasteAC_TYPE_UINT32_T 51*5f4c09ddSEd MasteAC_TYPE_INT32_T 52*5f4c09ddSEd MasteAC_TYPE_UINT64_T 53*5f4c09ddSEd MasteAC_TYPE_INT64_T 54*5f4c09ddSEd MasteAC_TYPE_INTPTR_T 55*5f4c09ddSEd MasteAC_TYPE_UINTPTR_T 56*5f4c09ddSEd Maste 57*5f4c09ddSEd MasteAC_MSG_CHECKING(for gcc compiler warnings) 58*5f4c09ddSEd MasteAC_ARG_ENABLE(warnings, 59*5f4c09ddSEd Maste[ --disable-warnings disable compiler warnings], 60*5f4c09ddSEd Maste[if test "${enableval}" = no -o "$GCC" = no; then 61*5f4c09ddSEd Maste AC_MSG_RESULT(no) 62*5f4c09ddSEd Maste WARNINGS= 63*5f4c09ddSEd Masteelse 64*5f4c09ddSEd Maste AC_MSG_RESULT(yes) 65*5f4c09ddSEd Maste WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 66*5f4c09ddSEd Maste -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 67*5f4c09ddSEd Maste -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 68*5f4c09ddSEd Maste -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 69*5f4c09ddSEd Mastefi], [ 70*5f4c09ddSEd Masteif test "$GCC" = yes; then 71*5f4c09ddSEd Maste AC_MSG_RESULT(yes) 72*5f4c09ddSEd Maste WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 73*5f4c09ddSEd Maste -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 74*5f4c09ddSEd Maste -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 75*5f4c09ddSEd Maste -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 76*5f4c09ddSEd Masteelse 77*5f4c09ddSEd Maste WARNINGS= 78*5f4c09ddSEd Maste AC_MSG_RESULT(no) 79*5f4c09ddSEd Mastefi]) 80*5f4c09ddSEd Maste 81*5f4c09ddSEd Mastednl Checks for functions 82*5f4c09ddSEd MasteAC_CHECK_FUNCS(strerror) 83*5f4c09ddSEd Maste 84*5f4c09ddSEd Mastednl Provide implementation of some required functions if necessary 85*5f4c09ddSEd MasteAC_REPLACE_FUNCS(strtoi sockaddr_snprintf popenve clock_gettime strlcpy strlcat getprogname fparseln fgetln pidfile) 86*5f4c09ddSEd Maste 87*5f4c09ddSEd Mastednl See if we are cross-compiling 88*5f4c09ddSEd MasteAM_CONDITIONAL(IS_CROSS_COMPILE, test "$cross_compiling" = yes) 89*5f4c09ddSEd Maste 90*5f4c09ddSEd MasteAC_CONFIG_FILES([Makefile]) 91*5f4c09ddSEd MasteAC_OUTPUT 92