* configure.in: Check krb5_cv_inet6_with_dinet6 as well as krb5_cv_inet6 when
authorKen Raeburn <raeburn@mit.edu>
Sun, 11 Jul 2004 06:53:32 +0000 (06:53 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 11 Jul 2004 06:53:32 +0000 (06:53 +0000)
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

src/include/ChangeLog
src/include/configure.in

index e2d47b73a5a6cf744cea951bf6855af330a8caad..acd7a352cb0c1a28daf4c65aecb408a7ad7551e8 100644 (file)
@@ -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.
index b916b460674ac1029346e97794a1a009c3cc7e3f..98693c837e7a8abb9baf53b6c8b923991ced881c 100644 (file)
@@ -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....