]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
--use-pthreads needs to add thread compiler options on Solaris
authorhno <>
Wed, 17 Oct 2001 20:54:36 +0000 (20:54 +0000)
committerhno <>
Wed, 17 Oct 2001 20:54:36 +0000 (20:54 +0000)
configure.in

index 5d452957dbb27e970c72a6640e35e270ace00016..a1bef7939b9e80a85a3777b76f6da13449dffc86 100644 (file)
@@ -3,7 +3,7 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.235 2001/10/03 09:02:24 hno Exp $
+dnl  $Id: configure.in,v 1.236 2001/10/17 14:54:36 hno Exp $
 dnl
 dnl
 dnl
@@ -11,7 +11,7 @@ AC_INIT(src/main.c)
 AC_CONFIG_AUX_DIR(cfgaux)
 AM_INIT_AUTOMAKE(Squid, 2.5-DEVEL)
 AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.235 $)dnl
+AC_REVISION($Revision: 1.236 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AM_MAINTAINER_MODE
 
@@ -299,6 +299,13 @@ if test "$with_pthreads"; then
             fi
         fi
     ;;
+    *-solaris2.*)
+        if test "$GCC" = "yes" ; then
+           CFLAGS="$CFLAGS -pthreads"
+       else
+           CFLAGS="$CFLAGS -mt"
+        fi
+    ;;
     esac
 fi
 AC_SUBST(SQUID_PTHREAD_LIB)