chan.c (chan_open): Actually initialize the error indicator.
[fwd] / configure.ac
CommitLineData
5d9fd22a
MW
1dnl -*-autoconf-*-
2dnl
9155ea97 3dnl Configuration script for fwd
5d9fd22a
MW
4dnl
5dnl (c) 2008 Straylight/Edgeware
6dnl
7
8dnl ----- Licensing notice --------------------------------------------------
9dnl
9155ea97 10dnl This file is part of the `fwd' port forwarder.
5d9fd22a 11dnl
9155ea97 12dnl `fwd' is free software; you can redistribute it and/or modify
5d9fd22a
MW
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
9155ea97 17dnl `fwd' is distributed in the hope that it will be useful,
5d9fd22a
MW
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
9155ea97 23dnl along with `fwd'; if not, write to the Free Software Foundation,
5d9fd22a
MW
24dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26dnl--------------------------------------------------------------------------
27dnl Initialization.
28
29mdw_AUTO_VERSION
9155ea97
MW
30AC_INIT([fwd], AUTO_VERSION, [mdw@distorted.org.uk])
31AC_CONFIG_SRCDIR([fwd.c])
5d9fd22a
MW
32AC_CONFIG_AUX_DIR([config])
33
34AM_INIT_AUTOMAKE([foreign])
d6030852 35mdw_SILENT_RULES
5d9fd22a
MW
36
37dnl--------------------------------------------------------------------------
38dnl C programming environment.
39
40dnl Compiler.
41AC_PROG_CC
42AX_CFLAGS_WARN_ALL
43
44dnl Headers.
45AC_CHECK_HEADERS([unistd.h])
46
47dnl Types.
48AC_TYPE_UID_T
49AC_TYPE_PID_T
c712469b 50AX_TYPE_SOCKLEN_T
5d9fd22a
MW
51
52dnl Declarations.
53AC_CHECK_DECLS([environ])
54AC_CHECK_DECLS([_sys_siglist])
55
56dnl Libraries.
57AC_SEARCH_LIBS([socket], [socket])
58AC_SEARCH_LIBS([gethostbyname], [nsl resolv])
59
60dnl Packages.
aae68c41 61PKG_CHECK_MODULES([mLib], [mLib >= 2.2.1])
5d9fd22a
MW
62
63dnl Functions.
64AC_CHECK_FUNCS([inet_aton])
65AC_CHECK_FUNCS([setrlimit])
66AC_CHECK_FUNCS([setgroups])
67AC_CHECK_FUNCS([getnetbyname])
68AC_CHECK_FUNCS([strsignal])
69
70dnl--------------------------------------------------------------------------
71dnl Output.
72
73AC_CONFIG_HEADER([config/config.h])
74AC_CONFIG_FILES([Makefile])
75
76AC_OUTPUT
77
78dnl ----- That's all, folks -------------------------------------------------