Require mLib 2.0.3 for connection stuff.
[fwd] / configure.in
1 dnl -*-m4-*-
2 dnl
3 dnl $Id: configure.in,v 1.17 2003/11/29 20:45:41 mdw Exp $
4 dnl
5 dnl Configuration script for fw
6 dnl
7 dnl (c) 1999 Straylight/Edgeware
8 dnl
9
10 dnl ----- Licensing notice --------------------------------------------------
11 dnl
12 dnl This file is part of the `fw' port forwarder.
13 dnl
14 dnl `fw' is free software; you can redistribute it and/or modify
15 dnl it under the terms of the GNU General Public License as published by
16 dnl the Free Software Foundation; either version 2 of the License, or
17 dnl (at your option) any later version.
18 dnl
19 dnl `fw' is distributed in the hope that it will be useful,
20 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 dnl GNU General Public License for more details.
23 dnl
24 dnl You should have received a copy of the GNU General Public License
25 dnl along with `fw'; if not, write to the Free Software Foundation,
26 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28 dnl ----- Revision history --------------------------------------------------
29 dnl
30 dnl $Log: configure.in,v $
31 dnl Revision 1.17 2003/11/29 20:45:41 mdw
32 dnl Require mLib 2.0.3 for connection stuff.
33 dnl
34 dnl Revision 1.16 2003/11/25 14:11:18 mdw
35 dnl Preliminary bump to 1.2.7.
36 dnl
37 dnl Revision 1.15 2003/11/25 14:08:23 mdw
38 dnl Debianization. Socket target options. Internet binding.
39 dnl
40 dnl Revision 1.14 2003/05/17 12:33:55 mdw
41 dnl Version bump.
42 dnl
43 dnl Revision 1.13 2002/01/13 14:48:39 mdw
44 dnl Check for @getnetbyname@, since it appears not to be available under
45 dnl Cygwin.
46 dnl
47 dnl Revision 1.12 2001/02/03 20:30:15 mdw
48 dnl Version bump.
49 dnl
50 dnl Revision 1.11 2000/07/01 11:28:52 mdw
51 dnl Use new mLib selbuf features.
52 dnl
53 dnl Revision 1.10 2000/03/23 23:26:29 mdw
54 dnl Require later mLib for sel.c bugfixes.
55 dnl
56 dnl Revision 1.6 1999/11/11 19:08:27 mdw
57 dnl Build separately from mLib.
58 dnl
59 dnl Revision 1.3 1999/07/27 18:30:53 mdw
60 dnl Various minor portability fixes.
61 dnl
62 dnl Revision 1.2 1999/07/26 23:35:09 mdw
63 dnl Relatively minor changes to support new functionality.
64 dnl
65 dnl Revision 1.1.1.1 1999/07/01 08:56:23 mdw
66 dnl Initial revision.
67 dnl
68
69 AC_INIT(fw.c)
70 AM_INIT_AUTOMAKE(fw, 1.2.7)
71 AM_CONFIG_HEADER(config.h)
72
73 AC_PROG_CC
74 mdw_GCC_FLAGS
75
76 AC_CHECK_HEADERS(unistd.h)
77
78 AC_TYPE_UID_T
79 AC_TYPE_PID_T
80
81 mdw_DECL_ENVIRON
82
83 mdw_CHECK_MANYLIBS(socket, socket)
84 mdw_CHECK_MANYLIBS(gethostbyname, nsl resolv)
85 mdw_MLIB(2.0.3)
86
87 AC_CHECK_FUNCS(inet_aton)
88 AC_CHECK_FUNCS(setrlimit)
89 AC_CHECK_FUNCS(setgroups)
90 AC_CHECK_FUNCS(getnetbyname)
91 AC_CHECK_FUNCS(strsignal _sys_siglist, break)
92
93 AC_OUTPUT(Makefile)
94
95 dnl ----- That's all, folks -------------------------------------------------