You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2007/09/22 05:43:25 UTC
svn commit: r578366 - /xml/security/trunk/c/m4/acx_pthread.m4
Author: scantor
Date: Fri Sep 21 20:43:25 2007
New Revision: 578366
URL: http://svn.apache.org/viewvc?rev=578366&view=rev
Log:
Need -mt fix for Sun CC.
Modified:
xml/security/trunk/c/m4/acx_pthread.m4
Modified: xml/security/trunk/c/m4/acx_pthread.m4
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/m4/acx_pthread.m4?rev=578366&r1=578365&r2=578366&view=diff
==============================================================================
--- xml/security/trunk/c/m4/acx_pthread.m4 (original)
+++ xml/security/trunk/c/m4/acx_pthread.m4 Fri Sep 21 20:43:25 2007
@@ -243,8 +243,15 @@
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