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

Comparing gvpe/configure.ac (file contents):
Revision 1.16 by pcg, Wed Oct 15 06:06:41 2003 UTC vs.
Revision 1.21 by pcg, Sat Jan 17 01:18:36 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__
68 Use kernel/net device interface TYPE/SUBTYPE. 68 Use kernel/net device interface TYPE/SUBTYPE.
69 Working combinations are: 69 Working combinations are:
70 "native/linux" 70 "native/linux"
71 "tincd/linux" 71 "tincd/linux"
72 "tincd/freebsd" 72 "tincd/freebsd"
73 "tincd/openbsd"
74 "tincd/darwin"
73 "native/cygwin"; 75 "native/cygwin";
74 Untested combinations are: 76 Untested combinations are:
75 "tincd/netbsd" 77 "tincd/netbsd"
76 "tincd/darwin"
77 "tincd/solaris" 78 "tincd/solaris"
78 "tincd/openbsd"; 79 "tincd/mingw";
79 Broken combinations are: 80 Broken combinations are:
80 "tincd/cygwin"; 81 "tincd/cygwin";
81 The default is to autodetect. 82 The default is to autodetect.
82 ])], 83 ])],
83 [ 84 [
132 esac 133 esac
133fi 134fi
134AC_MSG_RESULT($IFTYPE/$IFSUBTYPE) 135AC_MSG_RESULT($IFTYPE/$IFSUBTYPE)
135AC_SUBST(IFTYPE,$IFTYPE) 136AC_SUBST(IFTYPE,$IFTYPE)
136AC_SUBST(IFSUBTYPE,$IFSUBTYPE) 137AC_SUBST(IFSUBTYPE,$IFSUBTYPE)
138AC_DEFINE_UNQUOTED(IFTYPE,"$IFTYPE",[kernel interface type])
139AC_DEFINE_UNQUOTED(IFSUBTYPE,"$IFSUBTYPE",[kernel interface subtype])
137 140
138AC_CACHE_SAVE 141AC_CACHE_SAVE
139 142
140dnl Checks for libraries. 143dnl Checks for libraries.
141 144
143AC_CHECK_HEADERS(ext/hash_map) 146AC_CHECK_HEADERS(ext/hash_map)
144 147
145dnl Checks for header files. 148dnl Checks for header files.
146AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ 149AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
147 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ 150 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \
148 sys/poll.h sys/mman.h netinet/in.h]) 151 sys/mman.h netinet/in.h])
149AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], 152AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [],
150[ 153[
151#include <sys/types.h> 154#include <sys/types.h>
152#include <sys/socket.h> 155#include <sys/socket.h>
153#ifdef HAVE_NETINET_IN_H 156#ifdef HAVE_NETINET_IN_H
201AC_LANG_PUSH(C) 204AC_LANG_PUSH(C)
202 205
203AC_HEADER_STDC 206AC_HEADER_STDC
204 207
205dnl argl, could somebody catapult darwin into the 21st century??? 208dnl argl, could somebody catapult darwin into the 21st century???
206AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll) 209AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall)
207 210
208AC_FUNC_ALLOCA 211AC_FUNC_ALLOCA
209 212
210dnl Support for SunOS 213dnl Support for SunOS
211 214
264AC_ARG_ENABLE(http-proxy, 267AC_ARG_ENABLE(http-proxy,
265 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])], 268 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])],
266 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) 269 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.])
267) 270)
268 271
269HMAC=12 dnl see also the AC_HELP_STRING 272HMAC=8 dnl see also the AC_HELP_STRING
270AC_ARG_ENABLE(hmac-length, 273AC_ARG_ENABLE(hmac-length,
271 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], 274 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])],
272 HMAC=$enableval 275 HMAC=$enableval
273) 276)
274AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) 277AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.])
326 329
327if $CXX -v --help 2>&1 | grep -q fexceptions; then 330if $CXX -v --help 2>&1 | grep -q fexceptions; then
328 CXXFLAGS="$CXXFLAGS -fno-exceptions" 331 CXXFLAGS="$CXXFLAGS -fno-exceptions"
329fi 332fi
330 333
331if $CXX -v --help 2>&1 | grep -q ffunction-sections; then 334dnl if $CXX -v --help 2>&1 | grep -q ffunction-sections; then
332 CXXFLAGS="$CXXFLAGS -ffunction-sections" 335dnl CXXFLAGS="$CXXFLAGS -ffunction-sections"
333fi 336dnl fi
334 337dnl
335if $LD -v --help 2>&1 | grep -q gc-sections; then 338dnl if $LD -v --help 2>&1 | grep -q gc-sections; then
336 LDFLAGS="$LDFLAGS -Wl,--gc-sections" 339dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections"
337fi 340dnl fi
338 341
339AC_CONFIG_COMMANDS_POST([ 342AC_CONFIG_COMMANDS_POST([
340 343
341echo 344echo
342echo "***" 345echo "***"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines