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

Comparing gvpe/configure.ac (file contents):
Revision 1.55 by pcg, Sat Jul 18 05:59:16 2009 UTC vs.
Revision 1.58 by root, Tue Mar 8 17:33:30 2011 UTC

2 2
3AC_PREREQ(2.59) 3AC_PREREQ(2.59)
4AC_INIT 4AC_INIT
5AC_CONFIG_SRCDIR([src/gvpe.C]) 5AC_CONFIG_SRCDIR([src/gvpe.C])
6AC_CANONICAL_TARGET 6AC_CANONICAL_TARGET
7AM_INIT_AUTOMAKE(gvpe, 2.22) 7AM_INIT_AUTOMAKE(gvpe, 2.24)
8AC_CONFIG_HEADERS([config.h]) 8AC_CONFIG_HEADERS([config.h])
9AM_MAINTAINER_MODE 9AM_MAINTAINER_MODE
10 10
11AH_TOP([ 11AH_TOP([
12#ifndef CONFIG_H__ 12#ifndef CONFIG_H__
243if test "x$openssl_include" != x; then 243if test "x$openssl_include" != x; then
244 CXXFLAGS="$CXXFLAGS -I$openssl_include" 244 CXXFLAGS="$CXXFLAGS -I$openssl_include"
245fi 245fi
246dnl tinc_ZLIB 246dnl tinc_ZLIB
247 247
248AC_ARG_ENABLE(threads,
249 [AS_HELP_STRING(--enable-threads,try to use threads for long-running asynchronous operations (default enabled).)],
250 [try_threads=$enableval],
251 [try_threads=yes]
252)
253
254if test "x$try_threads" = xyes; then
255 AC_CHECK_HEADER(pthread.h,[
256 LIBS="$LIBS -lpthread"
257 AC_COMPILE_IFELSE(
258 [AC_LANG_PROGRAM([#include <pthread.h>], [pthread_t id; pthread_create (&id, 0, 0, 0);])],
259 [AC_DEFINE_UNQUOTED(ENABLE_PTHREADS, 1, [POSIX thread support.])]
260 )
261 ])
262fi
263
248AC_ARG_ENABLE(static-daemon, 264AC_ARG_ENABLE(static-daemon,
249 [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)], 265 [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)],
250 [LDFLAGS_DAEMON=-static] 266 [LDFLAGS_DAEMON=-static]
251) 267)
252AC_SUBST(LDFLAGS_DAEMON) 268AC_SUBST(LDFLAGS_DAEMON)
331 RAND=$enableval 347 RAND=$enableval
332) 348)
333AC_DEFINE_UNQUOTED(RAND_SIZE, $RAND, [Add this many bytes of randomness to each packet.]) 349AC_DEFINE_UNQUOTED(RAND_SIZE, $RAND, [Add this many bytes of randomness to each packet.])
334 350
335MTU=1500 351MTU=1500
336AC_ARG_ENABLE(mtu, 352AC_ARG_ENABLE(max-mtu,
337 [AS_HELP_STRING(--enable-max-mtu=BYTES,enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support.)], 353 [AS_HELP_STRING(--enable-max-mtu=BYTES,enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support.)],
338 MTU=$enableval 354 MTU=$enableval
339) 355)
340AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.]) 356AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.])
341 357
420if test "x$DIGEST" = xmd4; then 436if test "x$DIGEST" = xmd4; then
421echo "***" 437echo "***"
422echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" 438echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
423fi 439fi
424 440
441if test "x$DIGEST" = xmd5; then
442echo "***"
443echo "*** WARNING: The digest you have chosen ($DIGEST) is probably insecure"
444fi
445
425if test "$HMAC" -lt 12; then 446if test "$HMAC" -lt 12; then
426echo "***" 447echo "***"
427echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" 448echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure"
428fi 449fi
429 450

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines