diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-12-10 11:45:08 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-12-10 11:45:08 +0000 |
commit | 2b3357edc1017336d3909500404e10f4e61d67bd (patch) | |
tree | 44c05dcdda8ed5c5cc69cbe7e2906cb6df8c6d0b /m4 | |
parent | 419b8982ac26526b050c188c2cfc15f70ffc8563 (diff) |
update macro from autoconf-archive
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1563 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_pthread.m4 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index a6bf596..e20a388 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -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 @@ if test "x$ax_pthread_ok" = xyes; then 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 |