apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr CHANGES configure.in
Date Thu, 03 Oct 2002 15:31:49 GMT
trawick     2002/10/03 08:31:49

  Modified:    .        CHANGES configure.in
  Log:
  Disable IPv6 support on Darwin.  The current IPv6 support has a
  problem in getnameinfo() which breaks certain applications.
  
  Debugged by:	 Sander Temme <sctemme@covalent.net>
  Change coded by: Jeff Trawick
  
  Revision  Changes    Path
  1.341     +4 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.340
  retrieving revision 1.341
  diff -u -r1.340 -r1.341
  --- CHANGES	3 Oct 2002 05:39:27 -0000	1.340
  +++ CHANGES	3 Oct 2002 15:31:49 -0000	1.341
  @@ -1,5 +1,9 @@
   Changes with APR 0.9.2
   
  +  *) Disable IPv6 support on Darwin.  The current IPv6 support has a
  +     problem in getnameinfo() which breaks certain applications.
  +     [Sander Temme <sctemme@covalent.net>, Jeff Trawick]
  +
     *) Support for SCO OpenServer Release 5 [Kean Johnston <jkj@caldera.com>]
   
     *) Faster (inline and mutex-free) implementations of all apr_atomic
  
  
  
  1.484     +23 -8     apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.483
  retrieving revision 1.484
  diff -u -r1.483 -r1.484
  --- configure.in	22 Sep 2002 19:26:41 -0000	1.483
  +++ configure.in	3 Oct 2002 15:31:49 -0000	1.484
  @@ -1748,6 +1748,17 @@
       fi ],
     [ user_disabled_ipv6=0 ] )
   
  +case $host in
  +  *apple-darwin*)
  +    dnl # It appears that Jaguar has all the right features, but
  +    dnl # getnameinfo() fails to find the hostname for a mapped
  +    dnl # address.
  +    broken_ipv6=1
  +    ;;
  +  *)
  +    broken_ipv6=0
  +esac
  +
   AC_SEARCH_LIBS(getaddrinfo, inet6)
   AC_SEARCH_LIBS(gai_strerror, inet6)
   AC_SEARCH_LIBS(getnameinfo, inet6)
  @@ -1762,19 +1773,23 @@
   if test "$user_disabled_ipv6" = 1; then
       AC_MSG_RESULT("no -- disabled by user")
   else
  -    if test "x$have_sockaddr_in6" = "x1"; then
  -        if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
  -            if test "x$ac_cv_working_getnameinfo" = "xyes"; then
  -                have_ipv6="1"
  -                AC_MSG_RESULT("yes")
  +    if test "x$broken_ipv6" = "x0"; then
  +        if test "x$have_sockaddr_in6" = "x1"; then
  +            if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
  +                if test "x$ac_cv_working_getnameinfo" = "xyes"; then
  +                    have_ipv6="1"
  +                    AC_MSG_RESULT("yes")
  +                else
  +                    AC_MSG_RESULT("no -- no getnameinfo")
  +                fi
               else
  -                AC_MSG_RESULT("no -- no getnameinfo")
  +                AC_MSG_RESULT("no -- no working getaddrinfo")
               fi
           else
  -            AC_MSG_RESULT("no -- no working getaddrinfo")
  +            AC_MSG_RESULT("no -- no sockaddr_in6");
           fi
       else
  -        AC_MSG_RESULT("no -- no sockaddr_in6");
  +        AC_MSG_RESULT("no -- the platform has problems supporting IPv6");
       fi
   fi
   
  
  
  

Mime
View raw message