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