From: Ken Raeburn Date: Sun, 11 Jul 2004 06:53:32 +0000 (+0000) Subject: * configure.in: Check krb5_cv_inet6_with_dinet6 as well as krb5_cv_inet6 when X-Git-Tag: krb5-1.4-beta1~229 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=90e38d3b720dc23e8758f3b28b6ae7248e737ee4;p=krb5.git * 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 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index e2d47b73a..acd7a352c 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2004-07-11 Ken Raeburn + + * 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 * k5-thread.h: Test HAVE_PTHREAD instead of HAVE_PTHREAD_H. diff --git a/src/include/configure.in b/src/include/configure.in index b916b4606..98693c837 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....