lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1563 - nss-pam-ldapd/m4

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1563 - nss-pam-ldapd/m4



Author: arthur
Date: Sat Dec 10 12:45:08 2011
New Revision: 1563
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1563&view=revision

Log:
update macro from autoconf-archive

Modified:
   nss-pam-ldapd/m4/ax_pthread.m4

Modified: nss-pam-ldapd/m4/ax_pthread.m4
==============================================================================
--- nss-pam-ldapd/m4/ax_pthread.m4      Fri Dec  9 14:58:20 2011        (r1562)
+++ nss-pam-ldapd/m4/ax_pthread.m4      Sat Dec 10 12:45:08 2011        (r1563)
@@ -82,7 +82,7 @@
 #   modified version of the Autoconf Macro, you may extend this special
 #   exception to the GPL to apply to your modified version as well.
 
-#serial 16
+#serial 17
 
 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
 AC_DEFUN([AX_PTHREAD], [
@@ -256,7 +256,14 @@
         flag=no
         case "${host_cpu}-${host_os}" in
             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
-            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
+            *-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
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/