summaryrefslogtreecommitdiffstats
path: root/src/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r--src/aclocal.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 2f02c5fe71..50715e5ebe 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -207,12 +207,21 @@ if test "$enable_thread_support" = yes; then
# don't exclude CFLAGS when linking. *sigh*
PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
;;
+ solaris2.[1-9])
+ # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
+ # get the right result. XXX What about Solaris 9 and earlier?
+ if test "$GCC" = yes ; then
+ PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
+ fi
+ ;;
solaris*)
# On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
# get the right result.
if test "$GCC" = yes ; then
PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
fi
+ # On Solaris 10, the thread support is always available in libc.
+ AC_DEFINE(NO_WEAK_PTHREADS,1,[Define if references to pthread routines should be non-weak.])
;;
esac
THREAD_SUPPORT=1