build: Actually compile the `blast' helper program.
[fwd] / configure.ac
CommitLineData
5d9fd22a
MW
1dnl -*-autoconf-*-
2dnl
3dnl Configuration script for fw
4dnl
5dnl (c) 2008 Straylight/Edgeware
6dnl
7
8dnl ----- Licensing notice --------------------------------------------------
9dnl
10dnl This file is part of the `fw' port forwarder.
11dnl
12dnl `fw' 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 `fw' 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 `fw'; 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([fw], AUTO_VERSION, [mdw@distorted.org.uk])
31AC_CONFIG_SRCDIR([fw.c])
32AC_CONFIG_AUX_DIR([config])
33
34AM_INIT_AUTOMAKE([foreign])
35
36dnl--------------------------------------------------------------------------
37dnl C programming environment.
38
39dnl Compiler.
40AC_PROG_CC
41AX_CFLAGS_WARN_ALL
42
43dnl Headers.
44AC_CHECK_HEADERS([unistd.h])
45
46dnl Types.
47AC_TYPE_UID_T
48AC_TYPE_PID_T
49
50dnl Declarations.
51AC_CHECK_DECLS([environ])
52AC_CHECK_DECLS([_sys_siglist])
53
54dnl Libraries.
55AC_SEARCH_LIBS([socket], [socket])
56AC_SEARCH_LIBS([gethostbyname], [nsl resolv])
57
58dnl Packages.
59PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4])
60
61dnl Functions.
62AC_CHECK_FUNCS([inet_aton])
63AC_CHECK_FUNCS([setrlimit])
64AC_CHECK_FUNCS([setgroups])
65AC_CHECK_FUNCS([getnetbyname])
66AC_CHECK_FUNCS([strsignal])
67
68dnl--------------------------------------------------------------------------
69dnl Output.
70
71AC_CONFIG_HEADER([config/config.h])
72AC_CONFIG_FILES([Makefile])
73
74AC_OUTPUT
75
76dnl ----- That's all, folks -------------------------------------------------