]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Allows pthreads by default on Linux and FreeBSD only.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 22 Nov 2013 21:42:47 +0000 (22:42 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 22 Nov 2013 21:42:47 +0000 (22:42 +0100)
configure.in

index 9b5dc3e2b499d290001c2b7e3a1f9ed39c328c64..5af574a5cef60d8072e48c14afa9ffa1eb796310 100644 (file)
@@ -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