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.16 by pcg, Wed Oct 15 06:06:41 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"
73 "native/cygwin";
71 Untested combinations are: 74 Untested combinations are:
72 "tincd/freebsd" "tincd/netbsd" "tincd/darwin" "tincd/solaris" 75 "tincd/netbsd"
73 "tincd/openbsd" "tincd/netbsd" "tincd/cygwin"; 76 "tincd/darwin"
77 "tincd/solaris"
78 "tincd/openbsd";
74 Broken combinations are: 79 Broken combinations are:
75 "native/cygwin"; 80 "tincd/cygwin";
76 The default is autodetected. 81 The default is to autodetect.
77 ])], 82 ])],
78 [ 83 [
79 IFTYPE=`echo $enableval | sed s%/.*%%` 84 IFTYPE=`echo $enableval | sed s%/.*%%`
80 IFSUBTYPE=`echo $enableval | sed s%.*/%%` 85 IFSUBTYPE=`echo $enableval | sed s%.*/%%`
81 ] 86 ]
115 IFTYPE=tincd 120 IFTYPE=tincd
116 IFSUBTYPE=netbsd 121 IFSUBTYPE=netbsd
117 AC_DEFINE(HAVE_NETBSD, 1, [NetBSD]) 122 AC_DEFINE(HAVE_NETBSD, 1, [NetBSD])
118 ;; 123 ;;
119 *cygwin*) 124 *cygwin*)
120 IFTYPE=tincd 125 IFTYPE=native
121 IFSUBTYPE=cygwin 126 IFSUBTYPE=cygwin
122 AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin]) 127 AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin])
123 ;; 128 ;;
124 *) 129 *)
125 AC_MSG_ERROR("Unknown operating system.") 130 AC_MSG_ERROR("Unknown operating system.")
137AC_LANG(C++) 142AC_LANG(C++)
138AC_CHECK_HEADERS(ext/hash_map) 143AC_CHECK_HEADERS(ext/hash_map)
139 144
140dnl Checks for header files. 145dnl Checks for header files.
141AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ 146AC_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]) 147 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])
143AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], 149AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [],
144[ 150[
145#include <sys/types.h> 151#include <sys/types.h>
146#include <sys/socket.h> 152#include <sys/socket.h>
147#ifdef HAVE_NETINET_IN_H 153#ifdef HAVE_NETINET_IN_H
194 200
195AC_LANG_PUSH(C) 201AC_LANG_PUSH(C)
196 202
197AC_HEADER_STDC 203AC_HEADER_STDC
198 204
205dnl 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) 206AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll)
200 207
201AC_FUNC_ALLOCA 208AC_FUNC_ALLOCA
202 209
203dnl Support for SunOS 210dnl Support for SunOS
204 211
215 222
216AC_CACHE_SAVE 223AC_CACHE_SAVE
217 224
218dnl These are defined in files in m4/ 225dnl These are defined in files in m4/
219tinc_TUNTAP 226tinc_TUNTAP
227
220tinc_OPENSSL 228tinc_OPENSSL
229if test "x$openssl_include" != x; then
230 CXXFLAGS="$CXXFLAGS -I$openssl_include"
231fi
221dnl tinc_ZLIB 232dnl tinc_ZLIB
222 233
223AC_ARG_ENABLE(rohc, 234AC_ARG_ENABLE(rohc,
224 [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], 235 [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])],
225 [ 236 [
239 echo 250 echo
240 ] 251 ]
241) 252)
242 253
243AC_ARG_ENABLE(icmp, 254AC_ARG_ENABLE(icmp,
244 [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support.])], 255 [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support (default disabled).])],
245 AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) 256 AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.])
246) 257)
247 258
248AC_ARG_ENABLE(tcp, 259AC_ARG_ENABLE(tcp,
249 [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support.])], 260 [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support (default disabled).])],
250 AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.]) 261 AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.])
251) 262)
252 263
253AC_ARG_ENABLE(http-proxy, 264AC_ARG_ENABLE(http-proxy,
254 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support.])], 265 [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.]) 266 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.])
256) 267)
257 268
258HMAC=16 dnl see also the AC_HELP_STRING 269HMAC=12 dnl see also the AC_HELP_STRING
259AC_ARG_ENABLE(hmac-length, 270AC_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.])], 271 [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 272 HMAC=$enableval
262) 273)
263AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) 274AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.])
264 275
265RAND=8 dnl see also the AC_HELP_STRING 276RAND=8 dnl see also the AC_HELP_STRING
287 298
288CIPHER=bf_cbc 299CIPHER=bf_cbc
289AC_ARG_ENABLE(cipher, 300AC_ARG_ENABLE(cipher,
290 [AC_HELP_STRING(--enable-cipher, [ 301 [AC_HELP_STRING(--enable-cipher, [
291 Select the symmetric cipher (default "bf"). Must be one of 302 Select the symmetric cipher (default "bf"). Must be one of
292 "bf" (blowfish), "aes-128", "aes-192" or "aes-256".])], 303 "bf" (blowfish), "aes-128" (rijndael), "aes-192" or "aes-256".])],
293 if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi 304 if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi
294 if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi 305 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 306 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 307 if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi
297) 308)
299 310
300DIGEST=sha1 311DIGEST=sha1
301AC_ARG_ENABLE(digest, 312AC_ARG_ENABLE(digest,
302 [AC_HELP_STRING(--enable-digest, [ 313 [AC_HELP_STRING(--enable-digest, [
303 Select the digets algorithm to use (default "sha1"). Must be one of 314 Select the digets algorithm to use (default "sha1"). Must be one of
304 "sha1", "ripemd160", "md4" or "md5".])], 315 "sha1", "ripemd160", "md5" or "md4" (insecure).])],
305 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi 316 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
306 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi 317 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
318 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
307 if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi 319 if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi
308 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
309) 320)
310AC_DEFINE_UNQUOTED(ENABLE_DIGEST, EVP_${DIGEST}, [Select the digest algorithm to use.]) 321AC_DEFINE_UNQUOTED(ENABLE_DIGEST, EVP_${DIGEST}, [Select the digest algorithm to use.])
311 322
312if $CXX -v --help 2>&1 | grep -q fno-rtti; then 323if $CXX -v --help 2>&1 | grep -q fno-rtti; then
313 CXXFLAGS="$CXXFLAGS -fno-rtti" 324 CXXFLAGS="$CXXFLAGS -fno-rtti"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines