aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog6
-rw-r--r--src/aclocal.m410
2 files changed, 15 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0ed80f0..b843fdf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-08 Ken Raeburn <raeburn@mit.edu>
+
+ * aclocal.m4 (KRB5_AC_ENABLE_THREADS): On AIX and OSF/1, always
+ add $PTHREAD_CFLAGS to CFLAGS for use in later tests.
+ (WITH_CC): If on AIX and not using gcc, add -qhalt=e to CFLAGS.
+
2004-07-16 Ken Raeburn <raeburn@mit.edu>
* aclocal.m4 (KRB5_AC_INET6, KRB5_AC_CHECK_SOCKADDR_STORAGE,
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 82ce7f4..1d106dd 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -151,7 +151,7 @@ if test "$enable_thread_support" = yes; then
# AIX and Tru64 don't support weak references, and don't have
# stub versions of the pthread code in libc.
case "${host_os}" in
- aix* | osf*) LIBS="$LIBS $PTHREAD_LIBS" ;;
+ aix* | osf*) LIBS="$LIBS $PTHREAD_LIBS" ; CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ;;
esac
fi
dnl We want to know where these routines live, so on systems with weak
@@ -569,6 +569,14 @@ if test "$GCC" = yes ; then
*) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
esac
fi
+else
+ if test "`uname -s`" = AIX ; then
+ # Using AIX but not GCC, assume native compiler.
+ # The native compiler appears not to give a nonzero exit
+ # status for certain classes of errors, like missing arguments
+ # in function calls. Let's try to fix that.
+ CFLAGS="$CFLAGS -qhalt=e"
+ fi
fi
])dnl
dnl