]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix pthread library detection on FreeBSD 10
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 18 Feb 2014 14:00:50 +0000 (07:00 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 18 Feb 2014 14:00:50 +0000 (07:00 -0700)
We should not be using "cut -b1" anywhere to determine OS version
number. It drops digits out of the major version number.

configure.ac

index 3e027125f59667013d06d5b340de3189e7fcb51c..eb1ba037f82621281628c51d8f42fbd7bf71d180 100644 (file)
@@ -606,7 +606,7 @@ for module in $squid_disk_module_candidates none; do
             AC_MSG_NOTICE([Windows threads support automatically enabled])
             ;;
           freebsd)
-            if test `echo "$squid_host_os_version" | cut -b1` -lt 7 ; then
+            if test `echo "$squid_host_os_version" | tr -d .` -lt 70 ; then
                 AC_MSG_NOTICE(pthread library requires FreeBSD 7 or later)
                 squid_opt_use_diskthreads="no"
             else