]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix pthread library detection on FreeBSD 10
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 9 Mar 2014 02:07:51 +0000 (19:07 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 9 Mar 2014 02:07:51 +0000 (19:07 -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 cd4c17734083ef06469cb4784e5455eb13b9b180..1cf6b5f76ee1e2e5e50dc1847c20e72d270e9874 100644 (file)
@@ -582,7 +582,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