How many times am I gonna lose this fix?
authorcantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Sat, 22 Sep 2007 03:42:42 +0000 (03:42 +0000)
committercantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Sat, 22 Sep 2007 03:42:42 +0000 (03:42 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/trunk@311 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0

acx_pthread.m4

index 7ac8ffd..33f1d29 100644 (file)
@@ -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