diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-07-11 06:05:24 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-07-11 06:05:24 +0000 |
commit | ca8170a64365f267048bed62f126b4e1697ad823 (patch) | |
tree | 5763ab8214c768c2bc87be8b6ec4a425ddb3a830 | |
parent | 27c59910fe8ad7b41c1ed497038cdd5be6ab0e6a (diff) | |
download | krb5-ca8170a64365f267048bed62f126b4e1697ad823.zip krb5-ca8170a64365f267048bed62f126b4e1697ad823.tar.gz krb5-ca8170a64365f267048bed62f126b4e1697ad823.tar.bz2 |
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Use PTHREAD_CFLAGS and PTHREAD_LIBS when
checking for pthread_mutexattr_setrobust_np availability with thread support
enabled.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16577 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/aclocal.m4 | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 45b63c4..282b795 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2004-07-11 Ken Raeburn <raeburn@mit.edu> + + * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Use PTHREAD_CFLAGS and + PTHREAD_LIBS when checking for pthread_mutexattr_setrobust_np + availability with thread support enabled. + 2004-07-09 Ken Raeburn <raeburn@mit.edu> * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Don't test for pthread.h diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 22610ad..8fce1c9 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -162,16 +162,18 @@ AC_CHECK_FUNCS(pthread_once pthread_mutexattr_setrobust_np) old_CC="$CC" test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC old_CFLAGS="$CFLAGS" -#CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries. +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" AC_SUBST(PTHREAD_CFLAGS) old_LIBS="$LIBS" -#LIBS="$PTHREAD_LIBS $LIBS" +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.])]) ]) LIBS="$old_LIBS" CC="$old_CC" +CFLAGS="$old_CFLAGS" fi dnl This is somewhat gross and should go away when the build system |