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

Comparing gvpe/configure.ac (file contents):
Revision 1.8 by pcg, Tue Oct 14 03:22:09 2003 UTC vs.
Revision 1.14 by pcg, Wed Oct 15 01:35:45 2003 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.0) 6AM_INIT_AUTOMAKE(vpe, 1.2)
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__
65 65
66AC_ARG_ENABLE(iftype, 66AC_ARG_ENABLE(iftype,
67 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ 67 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [
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" "tincd/linux"; 70 "native/linux"
71 "tincd/linux"
72 "tincd/freebsd";
71 Untested combinations are: 73 Untested combinations are:
72 "tincd/freebsd" "tincd/netbsd" "tincd/darwin" "tincd/solaris" 74 "tincd/netbsd"
73 "tincd/openbsd" "tincd/netbsd" "tincd/cygwin"; 75 "tincd/darwin"
76 "tincd/solaris"
77 "tincd/openbsd";
74 Broken combinations are: 78 Broken combinations are:
75 "native/cygwin"; 79 "tincd/cygwin";
76 The default is autodetected. 80 The default is to autodetect.
77 ])], 81 ])],
78 [ 82 [
79 IFTYPE=`echo $enableval | sed s%/.*%%` 83 IFTYPE=`echo $enableval | sed s%/.*%%`
80 IFSUBTYPE=`echo $enableval | sed s%.*/%%` 84 IFSUBTYPE=`echo $enableval | sed s%.*/%%`
81 ] 85 ]
137AC_LANG(C++) 141AC_LANG(C++)
138AC_CHECK_HEADERS(ext/hash_map) 142AC_CHECK_HEADERS(ext/hash_map)
139 143
140dnl Checks for header files. 144dnl Checks for header files.
141AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ 145AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
142 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h cygwin.h arpa/inet.h netinet/in.h]) 146 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \
147 sys/poll.h sys/mman.h netinet/in.h])
143AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], 148AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [],
144[ 149[
145#include <sys/types.h> 150#include <sys/types.h>
146#include <sys/socket.h> 151#include <sys/socket.h>
147#ifdef HAVE_NETINET_IN_H 152#ifdef HAVE_NETINET_IN_H
194 199
195AC_LANG_PUSH(C) 200AC_LANG_PUSH(C)
196 201
197AC_HEADER_STDC 202AC_HEADER_STDC
198 203
204dnl argl, could somebody catapult darwin into the 21st century???
199AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall) 205AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll)
200 206
201AC_FUNC_ALLOCA 207AC_FUNC_ALLOCA
202 208
203dnl Support for SunOS 209dnl Support for SunOS
204 210
216AC_CACHE_SAVE 222AC_CACHE_SAVE
217 223
218dnl These are defined in files in m4/ 224dnl These are defined in files in m4/
219tinc_TUNTAP 225tinc_TUNTAP
220tinc_OPENSSL 226tinc_OPENSSL
227CXXFLAGS="$CXXFLAGS -I$openssl_include"
221dnl tinc_ZLIB 228dnl tinc_ZLIB
222 229
223AC_ARG_ENABLE(rohc, 230AC_ARG_ENABLE(rohc,
224 [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], 231 [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])],
225 [ 232 [
239 echo 246 echo
240 ] 247 ]
241) 248)
242 249
243AC_ARG_ENABLE(icmp, 250AC_ARG_ENABLE(icmp,
244 [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support.])], 251 [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support (default disabled).])],
245 AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) 252 AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.])
246) 253)
247 254
248AC_ARG_ENABLE(tcp, 255AC_ARG_ENABLE(tcp,
249 [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support.])], 256 [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support (default disabled).])],
250 AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.]) 257 AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.])
251) 258)
252 259
253AC_ARG_ENABLE(http-proxy, 260AC_ARG_ENABLE(http-proxy,
254 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support.])], 261 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])],
255 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) 262 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.])
256) 263)
257 264
258HMAC=16 dnl see also the AC_HELP_STRING 265HMAC=12 dnl see also the AC_HELP_STRING
259AC_ARG_ENABLE(hmac-length, 266AC_ARG_ENABLE(hmac-length,
260 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 16). Allowed values are 4, 8, 12, 16.])], 267 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])],
261 HMAC=$enableval 268 HMAC=$enableval
262) 269)
263AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) 270AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.])
264 271
265RAND=8 dnl see also the AC_HELP_STRING 272RAND=8 dnl see also the AC_HELP_STRING
287 294
288CIPHER=bf_cbc 295CIPHER=bf_cbc
289AC_ARG_ENABLE(cipher, 296AC_ARG_ENABLE(cipher,
290 [AC_HELP_STRING(--enable-cipher, [ 297 [AC_HELP_STRING(--enable-cipher, [
291 Select the symmetric cipher (default "bf"). Must be one of 298 Select the symmetric cipher (default "bf"). Must be one of
292 "bf" (blowfish), "aes-128", "aes-192" or "aes-256".])], 299 "bf" (blowfish), "aes-128" (rijndael), "aes-192" or "aes-256".])],
293 if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi 300 if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi
294 if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi 301 if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi
295 if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi 302 if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi
296 if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi 303 if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi
297) 304)
299 306
300DIGEST=sha1 307DIGEST=sha1
301AC_ARG_ENABLE(digest, 308AC_ARG_ENABLE(digest,
302 [AC_HELP_STRING(--enable-digest, [ 309 [AC_HELP_STRING(--enable-digest, [
303 Select the digets algorithm to use (default "sha1"). Must be one of 310 Select the digets algorithm to use (default "sha1"). Must be one of
304 "sha1", "ripemd160", "md4" or "md5".])], 311 "sha1", "ripemd160", "md5" or "md4" (insecure).])],
305 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi 312 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
306 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi 313 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
314 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
307 if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi 315 if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi
308 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
309) 316)
310AC_DEFINE_UNQUOTED(ENABLE_DIGEST, EVP_${DIGEST}, [Select the digest algorithm to use.]) 317AC_DEFINE_UNQUOTED(ENABLE_DIGEST, EVP_${DIGEST}, [Select the digest algorithm to use.])
311 318
312if $CXX -v --help 2>&1 | grep -q fno-rtti; then 319if $CXX -v --help 2>&1 | grep -q fno-rtti; then
313 CXXFLAGS="$CXXFLAGS -fno-rtti" 320 CXXFLAGS="$CXXFLAGS -fno-rtti"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines