ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure.ac
(Generate patch)

Comparing gvpe/configure.ac (file contents):
Revision 1.17 by pcg, Thu Oct 16 14:17:01 2003 UTC vs.
Revision 1.22 by pcg, Sat Jan 17 15:43:02 2004 UTC

1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2 2
3AC_PREREQ(2.57) 3AC_PREREQ(2.57)
4AC_INIT(src/vped.C) 4AC_INIT(src/vped.C)
5AC_CANONICAL_TARGET 5AC_CANONICAL_TARGET
6AM_INIT_AUTOMAKE(vpe, 1.2) 6AM_INIT_AUTOMAKE(vpe, 1.4)
7AM_CONFIG_HEADER(config.h) 7AM_CONFIG_HEADER(config.h)
8AM_MAINTAINER_MODE 8AM_MAINTAINER_MODE
9 9
10AH_TOP([ 10AH_TOP([
11#ifndef CONFIG_H__ 11#ifndef CONFIG_H__
44 44
45# Enable GNU extensions. 45# Enable GNU extensions.
46# Define this here, not in acconfig's @TOP@ section, since definitions 46# Define this here, not in acconfig's @TOP@ section, since definitions
47# in the latter don't make it into the configure-time tests. 47# in the latter don't make it into the configure-time tests.
48AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions]) 48AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions])
49AC_DEFINE([__USE_BSD], 1, [Enable BSD extensions]) 49
50# do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
51dnl AC_DEFINE([_POSIX_SOURCE], 1, [Enable POSIX 1003.1 extensions])
52dnl AC_DEFINE([_XOPEN_SOURCE], 500, [Enable XOPEN extensions])
50 53
51ALL_LINGUAS="" 54ALL_LINGUAS=""
52 55
53dnl Checks for programs. 56dnl Checks for programs.
54AC_PROG_CC 57AC_PROG_CC
59AC_PROG_INSTALL 62AC_PROG_INSTALL
60AC_PROG_LN_S 63AC_PROG_LN_S
61AC_PROG_MAKE_SET 64AC_PROG_MAKE_SET
62AC_PROG_RANLIB 65AC_PROG_RANLIB
63 66
64AC_ISC_POSIX
65
66AC_ARG_ENABLE(iftype, 67AC_ARG_ENABLE(iftype,
67 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ 68 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [
68 Use kernel/net device interface TYPE/SUBTYPE. 69 Use kernel/net device interface TYPE/SUBTYPE.
69 Working combinations are: 70 Working combinations are:
70 "native/linux" 71 "native/linux"
71 "tincd/linux" 72 "tincd/linux"
72 "tincd/freebsd" 73 "tincd/freebsd"
73 "tincd/openbsd" 74 "tincd/openbsd"
75 "tincd/darwin"
74 "native/cygwin"; 76 "native/cygwin";
75 Untested combinations are: 77 Untested combinations are:
76 "tincd/netbsd" 78 "tincd/netbsd"
77 "tincd/darwin"
78 "tincd/solaris" 79 "tincd/solaris"
79 "tincd/mingw"; 80 "tincd/mingw";
80 Broken combinations are: 81 Broken combinations are:
81 "tincd/cygwin"; 82 "tincd/cygwin";
82 The default is to autodetect. 83 The default is to autodetect.
133 esac 134 esac
134fi 135fi
135AC_MSG_RESULT($IFTYPE/$IFSUBTYPE) 136AC_MSG_RESULT($IFTYPE/$IFSUBTYPE)
136AC_SUBST(IFTYPE,$IFTYPE) 137AC_SUBST(IFTYPE,$IFTYPE)
137AC_SUBST(IFSUBTYPE,$IFSUBTYPE) 138AC_SUBST(IFSUBTYPE,$IFSUBTYPE)
139AC_DEFINE_UNQUOTED(IFTYPE,"$IFTYPE",[kernel interface type])
140AC_DEFINE_UNQUOTED(IFSUBTYPE,"$IFSUBTYPE",[kernel interface subtype])
138 141
139AC_CACHE_SAVE 142AC_CACHE_SAVE
140 143
141dnl Checks for libraries. 144dnl Checks for libraries.
142 145
143AC_LANG(C++) 146AC_LANG(C++)
144AC_CHECK_HEADERS(ext/hash_map) 147AC_CHECK_HEADERS(ext/hash_map)
145 148
146dnl Checks for header files. 149dnl Checks for header files.
147AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ 150AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
148 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ 151 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \
149 sys/poll.h sys/mman.h netinet/in.h]) 152 sys/mman.h netinet/in.h])
150AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], 153AC_CHECK_HEADERS([arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [],
151[ 154[
152#include <sys/types.h> 155#include <sys/types.h>
153#include <sys/socket.h> 156#include <sys/socket.h>
154#ifdef HAVE_NETINET_IN_H 157#ifdef HAVE_NETINET_IN_H
155# include <netinet/in.h> 158# include <netinet/in.h>
202AC_LANG_PUSH(C) 205AC_LANG_PUSH(C)
203 206
204AC_HEADER_STDC 207AC_HEADER_STDC
205 208
206dnl argl, could somebody catapult darwin into the 21st century??? 209dnl argl, could somebody catapult darwin into the 21st century???
207AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll) 210AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall)
208 211
209AC_FUNC_ALLOCA 212AC_FUNC_ALLOCA
210 213
211dnl Support for SunOS 214dnl Support for SunOS
212 215
265AC_ARG_ENABLE(http-proxy, 268AC_ARG_ENABLE(http-proxy,
266 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])], 269 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])],
267 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) 270 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.])
268) 271)
269 272
270HMAC=12 dnl see also the AC_HELP_STRING 273HMAC=8 dnl see also the AC_HELP_STRING
271AC_ARG_ENABLE(hmac-length, 274AC_ARG_ENABLE(hmac-length,
272 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], 275 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])],
273 HMAC=$enableval 276 HMAC=$enableval
274) 277)
275AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) 278AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.])
327 330
328if $CXX -v --help 2>&1 | grep -q fexceptions; then 331if $CXX -v --help 2>&1 | grep -q fexceptions; then
329 CXXFLAGS="$CXXFLAGS -fno-exceptions" 332 CXXFLAGS="$CXXFLAGS -fno-exceptions"
330fi 333fi
331 334
332if $CXX -v --help 2>&1 | grep -q ffunction-sections; then 335dnl if $CXX -v --help 2>&1 | grep -q ffunction-sections; then
333 CXXFLAGS="$CXXFLAGS -ffunction-sections" 336dnl CXXFLAGS="$CXXFLAGS -ffunction-sections"
334fi 337dnl fi
335 338dnl
336if $LD -v --help 2>&1 | grep -q gc-sections; then 339dnl if $LD -v --help 2>&1 | grep -q gc-sections; then
337 LDFLAGS="$LDFLAGS -Wl,--gc-sections" 340dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections"
338fi 341dnl fi
339 342
340AC_CONFIG_COMMANDS_POST([ 343AC_CONFIG_COMMANDS_POST([
341 344
342echo 345echo
343echo "***" 346echo "***"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines