From 6764198159be919a02be9714d264ed0ce4ae0620 Mon Sep 17 00:00:00 2001 From: Gary Houston Date: Fri, 20 Apr 2001 19:14:59 +0000 Subject: [PATCH] * acconfig.h: include HAVE_SIN6_SCOPE_ID. * configure.in: check for sin6_scope_id in sockaddr_in6. --- ChangeLog | 5 +++++ acconfig.h | 3 +++ configure.in | 11 +++++++++++ 3 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5e239740b..6ea0c9c9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-04-20 Gary Houston + + * acconfig.h: include HAVE_SIN6_SCOPE_ID. + * configure.in: check for sin6_scope_id in sockaddr_in6. + 2001-04-19 Mikael Djurfeldt * RELEASE: Added deprecated macro SCM_ARRAY_CONTIGUOUS diff --git a/acconfig.h b/acconfig.h index dd51a227e..3c0e7887e 100644 --- a/acconfig.h +++ b/acconfig.h @@ -122,6 +122,9 @@ /* Define this if you want support for arrays and uniform arrays. */ #undef HAVE_ARRAYS +/* Define this if your IPv6 has sin6_scope_id in sockaddr_in6 struct. */ +#undef HAVE_SIN6_SCOPE_ID + /* This is included as part of a workaround for a autoheader bug. */ #undef HAVE_REGCOMP diff --git a/configure.in b/configure.in index ff584e4da..49e58231d 100644 --- a/configure.in +++ b/configure.in @@ -264,6 +264,17 @@ if test $guile_cv_have_h_errno = yes; then AC_DEFINE(HAVE_H_ERRNO) fi +# included in rfc2553 but not in older implementations, e.g., glibc 2.1.3. +AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id) +AC_CACHE_VAL(guile_cv_have_sin6_scope_id, +[AC_TRY_COMPILE([#include ], +[struct sockaddr_in6 sok; sok.sin6_scope_id = 0;], +guile_cv_have_sin6_scope_id=yes, guile_cv_have_sin6_scope_id=no)]) +AC_MSG_RESULT($guile_cv_have_sin6_scope_id) +if test $guile_cv_have_sin6_scope_id = yes; then + AC_DEFINE(HAVE_SIN6_SCOPE_ID) +fi + AC_MSG_CHECKING(whether localtime caches TZ) AC_CACHE_VAL(guile_cv_localtime_cache, [if test x$ac_cv_func_tzset = xyes; then -- 2.20.1