]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
FreeBSD 7.x required for pthreads support
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 7 Dec 2010 11:23:40 +0000 (04:23 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 7 Dec 2010 11:23:40 +0000 (04:23 -0700)
configure.ac

index 564b80c8cdb398c379599f9cccd9e9e374fddc13..b14ad08ccc8f440ee4571eda704d3a36c1fe485d 100644 (file)
@@ -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)