Makefile.am: Tweak `silent-rules' machinery.
[yaid] / configure.ac
CommitLineData
9dcdc856
MW
1dnl -*-autoconf-*-
2dnl
3dnl Configuration script for YAID
4dnl
5dnl (c) 2012 Straylight/Edgeware
6dnl
7
8dnl----- Licensing notice ---------------------------------------------------
9dnl
10dnl This file is part of Yet Another Ident Daemon (YAID).
11dnl
12dnl YAID is free software; you can redistribute it and/or modify
13dnl it under the terms of the GNU General Public License as published by
14dnl the Free Software Foundation; either version 2 of the License, or
15dnl (at your option) any later version.
16dnl
17dnl YAID is distributed in the hope that it will be useful,
18dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
19dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20dnl GNU General Public License for more details.
21dnl
22dnl You should have received a copy of the GNU General Public License
23dnl along with YAID; if not, write to the Free Software Foundation,
24dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26dnl--------------------------------------------------------------------------
27dnl Initialization.
28
29mdw_AUTO_VERSION
30AC_INIT([yaid], AUTO_VERSION, [mdw@distorted.org.uk])
9da480be 31AC_CONFIG_SRCDIR([yaid.c])
9dcdc856
MW
32AC_CONFIG_AUX_DIR([config])
33AM_INIT_AUTOMAKE([foreign])
38b211f2 34AC_CANONICAL_HOST
9dcdc856
MW
35mdw_SILENT_RULES
36
38b211f2
MW
37dnl--------------------------------------------------------------------------
38dnl C programming environment.
39
9dcdc856
MW
40AC_PROG_CC
41AM_PROG_CC_C_O
42AX_CFLAGS_WARN_ALL
43
9dcdc856
MW
44AC_CHECK_HEADERS([stdarg.h])
45
c372d20e
MW
46AX_TYPE_SOCKLEN_T
47
9dcdc856 48AC_SEARCH_LIBS([socket], [socket])
9da480be 49
bc23d2c7 50PKG_CHECK_MODULES([mLib], [mLib >= 2.2.1])
9dcdc856
MW
51AM_CFLAGS="$AM_CFLAGS $mLib_CFLAGS"
52
53dnl--------------------------------------------------------------------------
38b211f2
MW
54dnl System-specific code.
55
56case "$host_os" in
57 linux*) SYS=linux ;;
58 *) AC_MSG_ERROR([no support for system `$host_os': patches welcome]) ;;
59esac
60AC_SUBST([SYS])
61
62dnl--------------------------------------------------------------------------
74716d82
MW
63dnl Paths for interesting files.
64
65mdw_DEFINE_PATHS([
66 mdw_DEFINE_PATH([POLICYFILE], [${sysconfdir}/yaid.policy],
67 [read global policy from this file.])
68])
69
70dnl--------------------------------------------------------------------------
9dcdc856
MW
71dnl Produce output.
72
38b211f2 73AC_CONFIG_HEADER([config/config.h])
9dcdc856
MW
74AC_CONFIG_FILES([Makefile])
75AC_OUTPUT
76
77dnl----- That's all, folks --------------------------------------------------