blob: 78ca9866f5a575fc42983905b7bc827a1b1e9204 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Copyright 2004 Double Precision, Inc. See COPYING for
dnl distribution information.
AC_INIT(courierlogger, 0.10, [courier-users@lists.sourceforge.net])
>confdefs.h # Kill PACKAGE_ macros.
LPATH="$PATH:/usr/local/bin"
AC_CONFIG_SRCDIR(logger.c)
AC_CONFIG_AUX_DIR(../..)
AM_INIT_AUTOMAKE([foreign no-define])
AC_CONFIG_HEADERS(config.h)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_LIBTOOL
if test x$GCC = xyes
then
CFLAGS="-Wall $CFLAGS"
fi
if test x$GXX = xyes
then
CXXFLAGS="-Wall $CXXFLAGS"
fi
AC_C_CONST
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h string.h syslog.h)
AC_TYPE_UID_T
AC_SYS_LARGEFILE
AC_CHECK_FUNCS(strchr)
AC_ARG_WITH(syslog,
AC_HELP_STRING([--with-syslog=XXX],[syslog facility [[MAIL]]]),
logdest="LOG_$withval", logdest="LOG_MAIL")
AC_DEFINE_UNQUOTED(LOG_DEST, [$logdest],
[ syslog facility ])
AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/../docbook)
AC_OUTPUT(Makefile)
|