From: 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.4.1~309 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fopensaml2.git;a=commitdiff_plain;h=58f4272d35dd6076ecd4bccac322633fc1bc7b99 How many times am I gonna lose this fix? git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/trunk@311 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0 --- 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