summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2004-07-11 06:53:32 +0000
committerKen Raeburn <raeburn@mit.edu>2004-07-11 06:53:32 +0000
commit90e38d3b720dc23e8758f3b28b6ae7248e737ee4 (patch)
tree28d20079a880029e7857491e954449e925778e46 /src
parentca8170a64365f267048bed62f126b4e1697ad823 (diff)
downloadkrb5-90e38d3b720dc23e8758f3b28b6ae7248e737ee4.tar.gz
krb5-90e38d3b720dc23e8758f3b28b6ae7248e737ee4.tar.xz
krb5-90e38d3b720dc23e8758f3b28b6ae7248e737ee4.zip
* configure.in: Check krb5_cv_inet6_with_dinet6 as well as krb5_cv_inet6 when
deciding whether to test for in6addr_any. If gcc is in use, suppress pedantic warnings about "inline". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16578 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/include/ChangeLog6
-rw-r--r--src/include/configure.in8
2 files changed, 13 insertions, 1 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog
index e2d47b73a5..acd7a352cb 100644
--- a/src/include/ChangeLog
+++ b/src/include/ChangeLog
@@ -1,3 +1,9 @@
+2004-07-11 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Check krb5_cv_inet6_with_dinet6 as well as
+ krb5_cv_inet6 when deciding whether to test for in6addr_any. If
+ gcc is in use, suppress pedantic warnings about "inline".
+
2004-07-09 Ken Raeburn <raeburn@mit.edu>
* k5-thread.h: Test HAVE_PTHREAD instead of HAVE_PTHREAD_H.
diff --git a/src/include/configure.in b/src/include/configure.in
index b916b46067..98693c837e 100644
--- a/src/include/configure.in
+++ b/src/include/configure.in
@@ -125,7 +125,7 @@ KRB5_AC_INET6
dnl
dnl If compiling with IPv6 support, test if in6addr_any functions.
dnl Irix 6.5.16 defines it, but lacks support in the C library.
-if test $krb5_cv_inet6 = yes ; then
+if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes ; then
AC_CACHE_CHECK([for in6addr_any definition in library],
krb5_cv_var_in6addr_any,
[AC_TRY_LINK([
@@ -230,6 +230,12 @@ fi
AC_SUBST(maybe_kerberosIV)
dnl
AC_C_INLINE
+AH_BOTTOM([
+#if defined(__GNUC__) && !defined(inline)
+/* Silence gcc pedantic warnings about ANSI C. */
+# define inline __inline__
+#endif
+])
dnl
dnl Not used yet, but let's find out what we've got on the platforms
dnl we're working with....