From: Ondrej Zajicek Date: Fri, 22 Nov 2013 21:42:47 +0000 (+0100) Subject: Allows pthreads by default on Linux and FreeBSD only. X-Git-Tag: v1.4.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=547d3bf45dd430828d597dfb56624bdc1bd798b3;p=thirdparty%2Fbird.git Allows pthreads by default on Linux and FreeBSD only. --- diff --git a/configure.in b/configure.in index 9b5dc3e2b..5af574a5c 100644 --- a/configure.in +++ b/configure.in @@ -83,6 +83,14 @@ if test -z "$GCC" ; then AC_MSG_ERROR([This program requires the GNU C Compiler.]) fi +# Enable threads by default just in Linux and FreeBSD +if test "$enable_pthreads" = try ; then + case "$host_os" in + (linux* | freebsd*) enable_pthreads=try ;; + (*) enable_pthreads=no ;; + esac +fi + if test "$enable_pthreads" != no ; then BIRD_CHECK_PTHREADS