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