From: Stuart Henderson Date: Thu, 18 Apr 2013 05:29:31 +0000 (-0600) Subject: OpenBSD: libpthreads requires OpenBSD 5.2 or later X-Git-Tag: SQUID_3_3_4~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23be32a9f3784096838c9fb69148654f745cf4e9;p=thirdparty%2Fsquid.git OpenBSD: libpthreads requires OpenBSD 5.2 or later This patch imported from the OpenBSD ports packaging implements a TODO in DiskThreads component regarding wider system support for libpthreads. --- diff --git a/configure.ac b/configure.ac index 043207dcdf..44be485db9 100644 --- a/configure.ac +++ b/configure.ac @@ -590,6 +590,16 @@ for module in $squid_disk_module_candidates none; do fi fi ;; + openbsd) + if test `echo "$squid_host_os_version" | tr -d .` -lt 52 ; then + AC_MSG_NOTICE(pthread library requires OpenBSD 5.2 or later) + squid_opt_use_diskthreads="no" + else + SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT" + SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT" + LDFLAGS="$LDFLAGS -lpthread" + fi + ;; solaris) if test "x$GCC" = "xyes" ; then SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT -pthreads"