1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(bubblegum, 1.12, bjk@arbornet.org)
3 AC_CONFIG_AUX_DIR(build)
5 AM_INIT_AUTOMAKE([foreign])
7 AM_CONFIG_HEADER([config.h])
8 AC_CONFIG_SRCDIR([src/bubblegum.c])
10 # Checks for programs.
13 # Checks for libraries.
14 AC_CHECK_LIB(md, MD5File)
16 # Checks for header files.
21 AC_CHECK_HEADERS([limits.h stdlib.h string.h sys/time.h syslog.h unistd.h])
22 AC_CHECK_HEADERS([libgen.h getopt.h md5.h err.h])
24 # Checks for typedefs, structures, and compiler characteristics.
31 # Checks for library functions.
38 AC_CHECK_FUNCS([getcwd memset select strdup strerror vasprintf basename])
42 LDFLAGS="$LDFLAGS -flat_namespace"
49 AC_DEFINE([SYSLOG_FACILITY], LOG_DAEMON, [Syslog() logging facility.])
50 AC_DEFINE([SYSLOG_PRIORITY], LOG_NOTICE, [Syslog() logging priority.])
51 AC_DEFINE([LOGFILE], "bubblegum.log", [Default logging file relative to home
53 AC_DEFINE([LOGLEVEL], 2, [Default logging level.])
54 AC_DEFINE([PIDFILE], "bubblegum.pid", [Default process id file relative to
56 AC_DEFINE([CMDRUNS], 1, [Default number of command runs per file.])
57 AC_DEFINE([INTERVAL], 1, [Default interval in seconds to check files.])
58 AC_DEFINE([TIMEFORMAT], "%b %d %H:%M:%S", [Strftime() time format for logging
59 and command expansions.])
63 AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])