Commit | Line | Data |
---|---|---|
5d9fd22a MW |
1 | dnl -*-autoconf-*- |
2 | dnl | |
9155ea97 | 3 | dnl Configuration script for fwd |
5d9fd22a MW |
4 | dnl |
5 | dnl (c) 2008 Straylight/Edgeware | |
6 | dnl | |
7 | ||
8 | dnl ----- Licensing notice -------------------------------------------------- | |
9 | dnl | |
9155ea97 | 10 | dnl This file is part of the `fwd' port forwarder. |
5d9fd22a | 11 | dnl |
9155ea97 | 12 | dnl `fwd' is free software; you can redistribute it and/or modify |
5d9fd22a MW |
13 | dnl it under the terms of the GNU General Public License as published by |
14 | dnl the Free Software Foundation; either version 2 of the License, or | |
15 | dnl (at your option) any later version. | |
16 | dnl | |
9155ea97 | 17 | dnl `fwd' is distributed in the hope that it will be useful, |
5d9fd22a MW |
18 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | dnl GNU General Public License for more details. | |
21 | dnl | |
22 | dnl You should have received a copy of the GNU General Public License | |
9155ea97 | 23 | dnl along with `fwd'; if not, write to the Free Software Foundation, |
5d9fd22a MW |
24 | dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
25 | ||
26 | dnl-------------------------------------------------------------------------- | |
27 | dnl Initialization. | |
28 | ||
29 | mdw_AUTO_VERSION | |
9155ea97 MW |
30 | AC_INIT([fwd], AUTO_VERSION, [mdw@distorted.org.uk]) |
31 | AC_CONFIG_SRCDIR([fwd.c]) | |
5d9fd22a MW |
32 | AC_CONFIG_AUX_DIR([config]) |
33 | ||
34 | AM_INIT_AUTOMAKE([foreign]) | |
d6030852 | 35 | mdw_SILENT_RULES |
5d9fd22a MW |
36 | |
37 | dnl-------------------------------------------------------------------------- | |
38 | dnl C programming environment. | |
39 | ||
40 | dnl Compiler. | |
41 | AC_PROG_CC | |
42 | AX_CFLAGS_WARN_ALL | |
43 | ||
44 | dnl Headers. | |
45 | AC_CHECK_HEADERS([unistd.h]) | |
46 | ||
47 | dnl Types. | |
48 | AC_TYPE_UID_T | |
49 | AC_TYPE_PID_T | |
c712469b | 50 | AX_TYPE_SOCKLEN_T |
5d9fd22a MW |
51 | |
52 | dnl Declarations. | |
53 | AC_CHECK_DECLS([environ]) | |
54 | AC_CHECK_DECLS([_sys_siglist]) | |
55 | ||
56 | dnl Libraries. | |
57 | AC_SEARCH_LIBS([socket], [socket]) | |
58 | AC_SEARCH_LIBS([gethostbyname], [nsl resolv]) | |
59 | ||
60 | dnl Packages. | |
aae68c41 | 61 | PKG_CHECK_MODULES([mLib], [mLib >= 2.2.1]) |
5d9fd22a MW |
62 | |
63 | dnl Functions. | |
64 | AC_CHECK_FUNCS([inet_aton]) | |
65 | AC_CHECK_FUNCS([setrlimit]) | |
66 | AC_CHECK_FUNCS([setgroups]) | |
67 | AC_CHECK_FUNCS([getnetbyname]) | |
68 | AC_CHECK_FUNCS([strsignal]) | |
69 | ||
70 | dnl-------------------------------------------------------------------------- | |
71 | dnl Output. | |
72 | ||
73 | AC_CONFIG_HEADER([config/config.h]) | |
74 | AC_CONFIG_FILES([Makefile]) | |
75 | ||
76 | AC_OUTPUT | |
77 | ||
78 | dnl ----- That's all, folks ------------------------------------------------- |