aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2004-08-19 00:56:53 +0000
committerKen Raeburn <raeburn@mit.edu>2004-08-19 00:56:53 +0000
commit36c985dd1a1ea6b3728d21f9dce6456bc19b231c (patch)
tree770e8334053d6bf64a18a112383c01beccf98bd6
parent6ecd93648f210e43bc4214fbd626a6b93d0e6db3 (diff)
downloadkrb5-36c985dd1a1ea6b3728d21f9dce6456bc19b231c.zip
krb5-36c985dd1a1ea6b3728d21f9dce6456bc19b231c.tar.gz
krb5-36c985dd1a1ea6b3728d21f9dce6456bc19b231c.tar.bz2
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Check for pthread_rwlock_init, with and
without the thread library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16670 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/ChangeLog5
-rw-r--r--src/aclocal.m44
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bbbfc49..2834d33 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-18 Ken Raeburn <raeburn@mit.edu>
+
+ * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Check for
+ pthread_rwlock_init, with and without the thread library.
+
2004-08-08 Ken Raeburn <raeburn@mit.edu>
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): On AIX and OSF/1, always
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 97b0050..273bf0d 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -165,7 +165,7 @@ dnl We want to know where these routines live, so on systems with weak
dnl reference support we can figure out whether or not the pthread library
dnl has been linked in.
dnl If we don't add any libraries for thread support, don't bother.
-AC_CHECK_FUNCS(pthread_once pthread_mutexattr_setrobust_np)
+AC_CHECK_FUNCS(pthread_once pthread_mutexattr_setrobust_np pthread_rwlock_init)
old_CC="$CC"
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
old_CFLAGS="$CFLAGS"
@@ -177,6 +177,8 @@ LIBS="$PTHREAD_LIBS $LIBS"
AC_MSG_NOTICE(rechecking with PTHREAD_... options)
AC_CHECK_LIB(c, pthread_mutexattr_setrobust_np,
[AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB,1,[Define if pthread_mutexattr_setrobust_np is provided in the thread library.])])
+AC_CHECK_LIB(c, pthread_rwlock_init,
+ [AC_DEFINE(HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB,1,[Define if pthread_rwlock_init is provided in the thread library.])])
LIBS="$old_LIBS"
CC="$old_CC"
CFLAGS="$old_CFLAGS"