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