AC_MSG_NOTICE([Windows threads support automatically enabled])
;;
i386-unknown-freebsd*)
- SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT"
- SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT"
- if test "$GCC" = "yes" ; then
- if test -z "$PRESET_LDFLAGS"; then
- LDFLAGS="$LDFLAGS -pthread"
- fi
+ if test `echo "$squid_host_os_version" | cut -b1` -lt 7 ; then
+ AC_MSG_NOTICE(pthread library requires FreeBSD 7 or later)
+ squid_opt_use_diskthreads="no"
+ else
+ SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT"
+ SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT"
+ if test "x$GCC" = "xyes" -a "x$PRESET_LDFLAGS" = "x" ; then
+ LDFLAGS="$LDFLAGS -pthread"
+ fi
fi
;;
*-solaris2.*)