--- gvpe/configure.ac 2011/02/15 13:31:22 1.57 +++ gvpe/configure.ac 2011/03/08 17:33:30 1.58 @@ -245,6 +245,22 @@ fi dnl tinc_ZLIB +AC_ARG_ENABLE(threads, + [AS_HELP_STRING(--enable-threads,try to use threads for long-running asynchronous operations (default enabled).)], + [try_threads=$enableval], + [try_threads=yes] +) + +if test "x$try_threads" = xyes; then + AC_CHECK_HEADER(pthread.h,[ + LIBS="$LIBS -lpthread" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([#include ], [pthread_t id; pthread_create (&id, 0, 0, 0);])], + [AC_DEFINE_UNQUOTED(ENABLE_PTHREADS, 1, [POSIX thread support.])] + ) + ]) +fi + AC_ARG_ENABLE(static-daemon, [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)], [LDFLAGS_DAEMON=-static] @@ -422,6 +438,11 @@ echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" fi +if test "x$DIGEST" = xmd5; then +echo "***" +echo "*** WARNING: The digest you have chosen ($DIGEST) is probably insecure" +fi + if test "$HMAC" -lt 12; then echo "***" echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure"