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.60 by root, Wed Jul 10 01:51:40 2013 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.59) 3AC_PREREQ(2.69)
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__
45# define CLOCALE <clocale> 45# define CLOCALE <clocale>
46#else 46#else
47# define CLOCALE <locale.h> 47# define CLOCALE <locale.h>
48#endif 48#endif
49]) 49])
50
51dnl Include the macros from the m4/ directory
52AM_ACLOCAL_INCLUDE(m4)
53 50
54AM_GNU_GETTEXT([external]) 51AM_GNU_GETTEXT([external])
55AM_GNU_GETTEXT_VERSION(0.11.5) 52AM_GNU_GETTEXT_VERSION(0.11.5)
56 53
57# Enable GNU extensions. 54# Enable GNU extensions.
243if test "x$openssl_include" != x; then 240if test "x$openssl_include" != x; then
244 CXXFLAGS="$CXXFLAGS -I$openssl_include" 241 CXXFLAGS="$CXXFLAGS -I$openssl_include"
245fi 242fi
246dnl tinc_ZLIB 243dnl tinc_ZLIB
247 244
245AC_ARG_ENABLE(threads,
246 [AS_HELP_STRING(--enable-threads,try to use threads for long-running asynchronous operations (default enabled).)],
247 [try_threads=$enableval],
248 [try_threads=yes]
249)
250
251if test "x$try_threads" = xyes; then
252 AC_CHECK_HEADER(pthread.h,[
253 LIBS="$LIBS -lpthread"
254 AC_COMPILE_IFELSE(
255 [AC_LANG_PROGRAM([#include <pthread.h>], [pthread_t id; pthread_create (&id, 0, 0, 0);])],
256 [AC_DEFINE_UNQUOTED(ENABLE_PTHREADS, 1, [POSIX thread support.])]
257 )
258 ])
259fi
260
248AC_ARG_ENABLE(static-daemon, 261AC_ARG_ENABLE(static-daemon,
249 [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)], 262 [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)],
250 [LDFLAGS_DAEMON=-static] 263 [LDFLAGS_DAEMON=-static]
251) 264)
252AC_SUBST(LDFLAGS_DAEMON) 265AC_SUBST(LDFLAGS_DAEMON)
331 RAND=$enableval 344 RAND=$enableval
332) 345)
333AC_DEFINE_UNQUOTED(RAND_SIZE, $RAND, [Add this many bytes of randomness to each packet.]) 346AC_DEFINE_UNQUOTED(RAND_SIZE, $RAND, [Add this many bytes of randomness to each packet.])
334 347
335MTU=1500 348MTU=1500
336AC_ARG_ENABLE(mtu, 349AC_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.)], 350 [AS_HELP_STRING(--enable-max-mtu=BYTES,enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support.)],
338 MTU=$enableval 351 MTU=$enableval
339) 352)
340AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.]) 353AC_DEFINE_UNQUOTED(MAX_MTU, ($MTU + 14), [Maximum MTU supported.])
341 354
342COMPRESS=1 355COMPRESS=1
343AC_ARG_ENABLE(compression, 356AC_ARG_ENABLE(compression,
344 [AS_HELP_STRING(--disable-compression,Disable compression support.)], 357 [AS_HELP_STRING(--disable-compression,Disable compression support.)],
345 if test "x$enableval" = xno; then 358 if test "x$enableval" = xno; then
420if test "x$DIGEST" = xmd4; then 433if test "x$DIGEST" = xmd4; then
421echo "***" 434echo "***"
422echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" 435echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
423fi 436fi
424 437
438if test "x$DIGEST" = xmd5; then
439echo "***"
440echo "*** WARNING: The digest you have chosen ($DIGEST) is probably insecure"
441fi
442
425if test "$HMAC" -lt 12; then 443if test "$HMAC" -lt 12; then
426echo "***" 444echo "***"
427echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" 445echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure"
428fi 446fi
429 447

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines