From 23be32a9f3784096838c9fb69148654f745cf4e9 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Wed, 17 Apr 2013 23:29:31 -0600 Subject: [PATCH] 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. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) 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" -- 2.47.2