… | |
… | |
2 | |
2 | |
3 | AC_PREREQ(2.59) |
3 | AC_PREREQ(2.59) |
4 | AC_INIT |
4 | AC_INIT |
5 | AC_CONFIG_SRCDIR([src/gvpe.C]) |
5 | AC_CONFIG_SRCDIR([src/gvpe.C]) |
6 | AC_CANONICAL_TARGET |
6 | AC_CANONICAL_TARGET |
7 | AM_INIT_AUTOMAKE(gvpe, 2.22) |
7 | AM_INIT_AUTOMAKE(gvpe, 2.24) |
8 | AC_CONFIG_HEADERS([config.h]) |
8 | AC_CONFIG_HEADERS([config.h]) |
9 | AM_MAINTAINER_MODE |
9 | AM_MAINTAINER_MODE |
10 | |
10 | |
11 | AH_TOP([ |
11 | AH_TOP([ |
12 | #ifndef CONFIG_H__ |
12 | #ifndef CONFIG_H__ |
… | |
… | |
243 | if test "x$openssl_include" != x; then |
243 | if test "x$openssl_include" != x; then |
244 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
244 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
245 | fi |
245 | fi |
246 | dnl tinc_ZLIB |
246 | dnl tinc_ZLIB |
247 | |
247 | |
|
|
248 | AC_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 | |
|
|
254 | if 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 | ]) |
|
|
262 | fi |
|
|
263 | |
248 | AC_ARG_ENABLE(static-daemon, |
264 | AC_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 | ) |
252 | AC_SUBST(LDFLAGS_DAEMON) |
268 | AC_SUBST(LDFLAGS_DAEMON) |
… | |
… | |
331 | RAND=$enableval |
347 | RAND=$enableval |
332 | ) |
348 | ) |
333 | AC_DEFINE_UNQUOTED(RAND_SIZE, $RAND, [Add this many bytes of randomness to each packet.]) |
349 | AC_DEFINE_UNQUOTED(RAND_SIZE, $RAND, [Add this many bytes of randomness to each packet.]) |
334 | |
350 | |
335 | MTU=1500 |
351 | MTU=1500 |
336 | AC_ARG_ENABLE(mtu, |
352 | AC_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 | ) |
340 | AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.]) |
356 | AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.]) |
341 | |
357 | |
… | |
… | |
420 | if test "x$DIGEST" = xmd4; then |
436 | if test "x$DIGEST" = xmd4; then |
421 | echo "***" |
437 | echo "***" |
422 | echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" |
438 | echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" |
423 | fi |
439 | fi |
424 | |
440 | |
|
|
441 | if test "x$DIGEST" = xmd5; then |
|
|
442 | echo "***" |
|
|
443 | echo "*** WARNING: The digest you have chosen ($DIGEST) is probably insecure" |
|
|
444 | fi |
|
|
445 | |
425 | if test "$HMAC" -lt 12; then |
446 | if test "$HMAC" -lt 12; then |
426 | echo "***" |
447 | echo "***" |
427 | echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" |
448 | echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" |
428 | fi |
449 | fi |
429 | |
450 | |