From: Scott Cantor Date: Sat, 22 Sep 2007 03:42:42 +0000 (+0000) Subject: How many times am I gonna lose this fix? X-Git-Tag: 2.0-beta2~39 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=7445199a3ba778ba6a079a4abf0aa99fd45a1578 How many times am I gonna lose this fix? --- diff --git a/acx_pthread.m4 b/acx_pthread.m4 index 7ac8ffd..33f1d29 100644 --- a/acx_pthread.m4 +++ b/acx_pthread.m4 @@ -243,8 +243,15 @@ if test "x$acx_pthread_ok" = xyes; then AC_MSG_CHECKING([if more special flags are required for pthreads]) flag=no case "${host_cpu}-${host_os}" in - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; - *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; + *-osf* | *-hpux*) flag="-D_REENTRANT";; + *solaris*) + if test "$GCC" = "yes"; then + flag="-D_REENTRANT" + else + flag="-mt -D_REENTRANT" + fi + ;; esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then