From: Amos Jeffries Date: Tue, 18 Feb 2014 13:57:16 +0000 (-0700) Subject: Fix pthread library detection on FreeBSD 10 X-Git-Tag: SQUID_3_5_0_1~362 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a76c9c4aace68f08a439eda927892ce9ea48e62;p=thirdparty%2Fsquid.git Fix pthread library detection on FreeBSD 10 We should not be using "cut -b1" anywhere to determine OS version number. It drops digits out of the major version number. --- diff --git a/configure.ac b/configure.ac index ad84d5a278..126b6450cf 100644 --- a/configure.ac +++ b/configure.ac @@ -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