dnl Process this file with autoconf to produce a configure script. AC_INIT(src/pflogger.c) AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE(prelude-pflogger, 0.8.0) AM_CONFIG_HEADER(config.h) AM_DISABLE_STATIC AM_MAINTAINER_MODE dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_MAKE_SET AC_C_INLINE AC_C_BIGENDIAN AM_PROG_LIBTOOL AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) if test "x$prefix" = "xNONE"; then prefix="/usr/local" fi if test "x$localstatedir" = "x\${prefix}/var"; then localstatedir="$prefix/var" fi if test "x$sysconfdir" = "x\${prefix}/etc"; then sysconfdir="$prefix/etc" fi dnl ************************************************** dnl * Check for libprelude * dnl ************************************************** AC_PATH_GENERIC(libprelude, 0.8.6, , AC_MSG_ERROR(Cannot find libprelude: Is libprelude-config in the path?) ) dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME dnl Checks for library functions. AC_TYPE_SIGNAL AC_FUNC_VPRINTF AC_CHECK_FUNCS(gettimeofday select socket strdup strerror strstr) configdir=$sysconfdir/prelude-pflogger prelude_conf=$configdir/prelude-pflogger.conf AC_DEFINE_UNQUOTED(PRELUDE_CONF, "$prelude_conf", Path to the Prelude PFlogger configuration file) CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \ -Wbad-function-cast -Wcast-align -Wnested-externs -Wunused" AC_SUBST(CFLAGS) AC_SUBST(configdir) AC_SUBST(prelude_conf) AC_OUTPUT([ Makefile src/Makefile src/include/Makefile ])