From c32b927c2af50474aeada116fa11dc42950a90bf Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 8 Mar 2014 19:07:51 -0700 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cd4c177340..1cf6b5f76e 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- 2.47.2