summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-11-22 22:42:47 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2013-11-22 22:42:47 +0100
commit547d3bf45dd430828d597dfb56624bdc1bd798b3 (patch)
treef52bae0f040e3d3f3f07114f82d303bfffd670bb
parent41f8bf57c4d80cbec89b90b901afa9df4d2d76f1 (diff)
Allows pthreads by default on Linux and FreeBSD only.
-rw-r--r--configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 9b5dc3e2..5af574a5 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