From: Amos Jeffries Date: Tue, 7 Dec 2010 11:23:40 +0000 (-0700) Subject: FreeBSD 7.x required for pthreads support X-Git-Tag: take1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0f8208543f1f27bd10f83a17f1c39fb6b1d8c8f;p=thirdparty%2Fsquid.git FreeBSD 7.x required for pthreads support --- diff --git a/configure.ac b/configure.ac index 564b80c8cd..b14ad08ccc 100644 --- a/configure.ac +++ b/configure.ac @@ -510,10 +510,15 @@ for module in $squid_disk_module_candidates none; do AC_MSG_NOTICE([Windows threads support automatically enabled]) ;; freebsd) - SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT" - SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT" - if test "x$GCC" = "xyes" -a "x$PRESET_LDFLAGS" = "x" ; then - LDFLAGS="$LDFLAGS -pthread" + if test $squid_host_os_version -lt 7 ; then + AC_MSG_NOTICE(pthread library requires FreeBSD 7 or later) + squid_opt_use_diskthreads="no" + else + SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT" + SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT" + if test "x$GCC" = "xyes" -a "x$PRESET_LDFLAGS" = "x" ; then + LDFLAGS="$LDFLAGS -pthread" + fi fi ;; solaris)