* aclocal.m4 (KRB5_AC_PRAGMA_WEAK_REF): Fix to work with AIX compiler when optimizing
authorKen Raeburn <raeburn@mit.edu>
Tue, 24 Aug 2004 15:49:01 +0000 (15:49 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 24 Aug 2004 15:49:01 +0000 (15:49 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16684 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 2834d332ce7b864e76ca3cba89fb16cd617e3bd4..8965c5fb0fdbcbcd4b26ca2f18bd4c97cff6e883 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-24  Ken Raeburn  <raeburn@mit.edu>
+
+       * aclocal.m4 (KRB5_AC_PRAGMA_WEAK_REF): Fix to work with AIX
+       compiler when optimizing.
+
 2004-08-18  Ken Raeburn  <raeburn@mit.edu>
 
        * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Check for
index 273bf0d0d3f31783795e1fa1f85802186b151c6b..69a0e45ad26ad435f1fe14c9b54a5f2f67573cd3 100644 (file)
@@ -1672,7 +1672,7 @@ AC_DEFUN([KRB5_AC_PRAGMA_WEAK_REF],
 [AC_CACHE_CHECK([whether pragma weak references are supported],
 krb5_cv_pragma_weak_ref,
 [AC_TRY_LINK([#pragma weak flurbl
-extern int flurbl(void);],[if (&flurbl != 0) return 1;],
+extern int flurbl(void);],[if (&flurbl != 0) return flurbl();],
 krb5_cv_pragma_weak_ref=yes,krb5_cv_pragma_weak_ref=no)])
 if test $krb5_cv_pragma_weak_ref = yes ; then
   AC_DEFINE(HAVE_PRAGMA_WEAK_REF,1,[Define if #pragma weak references work])