@@ -10321,26 +10321,16 @@ fi
1032110321
1032210322
1032310323
10324- # This exports HAVE_IPV6 to both C files and Makefiles
10325- echo " $as_me :$LINENO : checking for getaddrinfo" >&5
10326- echo $ECHO_N " checking for getaddrinfo...$ECHO_C " >&6
10327- if test " ${ac_cv_func_getaddrinfo+set} " =set ; then
10324+ echo " $as_me :$LINENO : checking for struct sockaddr_in6" >&5
10325+ echo $ECHO_N " checking for struct sockaddr_in6...$ECHO_C " >&6
10326+ if test " ${ac_cv_type_struct_sockaddr_in6+set} " =set ; then
1032810327echo $ECHO_N " (cached)$ECHO_C " >&6
1032910328else
1033010329 cat> conftest.$ac_ext << _ACEOF
1033110330#line$LINENO "configure"
1033210331#include "confdefs.h"
10333- /* System header to define __stub macros and hopefully few prototypes,
10334- which can conflict with char getaddrinfo (); below. */
10335- #include <assert.h>
10336- /* Override any gcc2 internal prototype to avoid an error. */
10337- #ifdef __cplusplus
10338- extern "C"
10339- #endif
10340- /* We use char because int might match the return type of a gcc2
10341- builtin and then its argument prototype would still apply. */
10342- char getaddrinfo ();
10343- char (*f) ();
10332+ $ac_includes_default
10333+ #include <netinet/in.h>
1034410334
1034510335#ifdef F77_DUMMY_MAIN
1034610336# ifdef __cplusplus
@@ -10351,52 +10341,56 @@ char (*f) ();
1035110341int
1035210342main ()
1035310343{
10354- /* The GNU C library defines this for functions which it implements
10355- to always fail with ENOSYS. Some functions are actually named
10356- something starting with __ and the normal name is an alias. */
10357- #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
10358- choke me
10359- #else
10360- f = getaddrinfo;
10361- #endif
10362-
10344+ if ((struct sockaddr_in6 *) 0)
10345+ return 0;
10346+ if (sizeof (struct sockaddr_in6))
10347+ return 0;
1036310348 ;
1036410349 return 0;
1036510350}
1036610351_ACEOF
10367- rm -f conftest.$ac_objext conftest $ac_exeext
10368- if { (evalecho " $as_me :$LINENO :\" $ac_link \" " )>&5
10369- (eval$ac_link )2>&5
10352+ rm -f conftest.$ac_objext
10353+ if { (evalecho " $as_me :$LINENO :\" $ac_compile \" " )>&5
10354+ (eval$ac_compile )2>&5
1037010355 ac_status=$?
1037110356echo " $as_me :$LINENO :\$ ? =$ac_status " >&5
1037210357 (exit$ac_status ); }&&
10373- { ac_try=' test -s conftest$ac_exeext '
10358+ { ac_try=' test -s conftest.$ac_objext '
1037410359 { (evalecho " $as_me :$LINENO :\" $ac_try \" " )>&5
1037510360 (eval$ac_try )2>&5
1037610361 ac_status=$?
1037710362echo " $as_me :$LINENO :\$ ? =$ac_status " >&5
1037810363 (exit$ac_status ); }; }; then
10379- ac_cv_func_getaddrinfo =yes
10364+ ac_cv_type_struct_sockaddr_in6 =yes
1038010365else
1038110366echo " $as_me : failed program was:" >&5
1038210367cat conftest.$ac_ext >&5
10383- ac_cv_func_getaddrinfo =no
10368+ ac_cv_type_struct_sockaddr_in6 =no
1038410369fi
10385- rm -f conftest.$ac_objext conftest$ac_exeext conftest .$ac_ext
10370+ rm -f conftest.$ac_objext conftest.$ac_ext
1038610371fi
10387- echo " $as_me :$LINENO : result:$ac_cv_func_getaddrinfo " >&5
10388- echo " ${ECHO_T} $ac_cv_func_getaddrinfo " >&6
10389- if test $ac_cv_func_getaddrinfo = yes; then
10390- echo " $as_me :$LINENO : checking forstruct sockaddr_in6 " >&5
10391- echo $ECHO_N " checking forstruct sockaddr_in6 ...$ECHO_C " >&6
10392- if test " ${ac_cv_type_struct_sockaddr_in6 +set} " =set ; then
10372+ echo " $as_me :$LINENO : result:$ac_cv_type_struct_sockaddr_in6 " >&5
10373+ echo " ${ECHO_T} $ac_cv_type_struct_sockaddr_in6 " >&6
10374+ if test $ac_cv_type_struct_sockaddr_in6 = yes; then
10375+ echo " $as_me :$LINENO : checking forinet_ntop " >&5
10376+ echo $ECHO_N " checking forinet_ntop ...$ECHO_C " >&6
10377+ if test " ${ac_cv_func_inet_ntop +set} " =set ; then
1039310378echo $ECHO_N " (cached)$ECHO_C " >&6
1039410379else
1039510380 cat> conftest.$ac_ext << _ACEOF
1039610381#line$LINENO "configure"
1039710382#include "confdefs.h"
10398- $ac_includes_default
10399- #include <netinet/in.h>
10383+ /* System header to define __stub macros and hopefully few prototypes,
10384+ which can conflict with char inet_ntop (); below. */
10385+ #include <assert.h>
10386+ /* Override any gcc2 internal prototype to avoid an error. */
10387+ #ifdef __cplusplus
10388+ extern "C"
10389+ #endif
10390+ /* We use char because int might match the return type of a gcc2
10391+ builtin and then its argument prototype would still apply. */
10392+ char inet_ntop ();
10393+ char (*f) ();
1040010394
1040110395#ifdef F77_DUMMY_MAIN
1040210396# ifdef __cplusplus
@@ -10407,38 +10401,43 @@ $ac_includes_default
1040710401int
1040810402main ()
1040910403{
10410- if ((struct sockaddr_in6 *) 0)
10411- return 0;
10412- if (sizeof (struct sockaddr_in6))
10413- return 0;
10404+ /* The GNU C library defines this for functions which it implements
10405+ to always fail with ENOSYS. Some functions are actually named
10406+ something starting with __ and the normal name is an alias. */
10407+ #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
10408+ choke me
10409+ #else
10410+ f = inet_ntop;
10411+ #endif
10412+
1041410413 ;
1041510414 return 0;
1041610415}
1041710416_ACEOF
10418- rm -f conftest.$ac_objext
10419- if { (evalecho " $as_me :$LINENO :\" $ac_compile \" " )>&5
10420- (eval$ac_compile )2>&5
10417+ rm -f conftest.$ac_objext conftest $ac_exeext
10418+ if { (evalecho " $as_me :$LINENO :\" $ac_link \" " )>&5
10419+ (eval$ac_link )2>&5
1042110420 ac_status=$?
1042210421echo " $as_me :$LINENO :\$ ? =$ac_status " >&5
1042310422 (exit$ac_status ); }&&
10424- { ac_try=' test -s conftest.$ac_objext '
10423+ { ac_try=' test -s conftest$ac_exeext '
1042510424 { (evalecho " $as_me :$LINENO :\" $ac_try \" " )>&5
1042610425 (eval$ac_try )2>&5
1042710426 ac_status=$?
1042810427echo " $as_me :$LINENO :\$ ? =$ac_status " >&5
1042910428 (exit$ac_status ); }; }; then
10430- ac_cv_type_struct_sockaddr_in6 =yes
10429+ ac_cv_func_inet_ntop =yes
1043110430else
1043210431echo " $as_me : failed program was:" >&5
1043310432cat conftest.$ac_ext >&5
10434- ac_cv_type_struct_sockaddr_in6 =no
10433+ ac_cv_func_inet_ntop =no
1043510434fi
10436- rm -f conftest.$ac_objext conftest.$ac_ext
10435+ rm -f conftest.$ac_objext conftest$ac_exeext conftest .$ac_ext
1043710436fi
10438- echo " $as_me :$LINENO : result:$ac_cv_type_struct_sockaddr_in6 " >&5
10439- echo " ${ECHO_T} $ac_cv_type_struct_sockaddr_in6 " >&6
10440- if test $ac_cv_type_struct_sockaddr_in6 = yes; then
10441- HAVE_IPV6= " yes " ; cat>> confdefs.h<< \_ACEOF
10437+ echo " $as_me :$LINENO : result:$ac_cv_func_inet_ntop " >&5
10438+ echo " ${ECHO_T} $ac_cv_func_inet_ntop " >&6
10439+ if test $ac_cv_func_inet_ntop = yes; then
10440+ cat>> confdefs.h<< \_ACEOF
1044210441#define HAVE_IPV6 1
1044310442_ACEOF
1044410443
@@ -10447,7 +10446,6 @@ fi
1044710446fi
1044810447
1044910448
10450-
1045110449echo " $as_me :$LINENO : checking for PS_STRINGS" >&5
1045210450echo $ECHO_N " checking for PS_STRINGS...$ECHO_C " >&6
1045310451if test " ${pgac_cv_var_PS_STRINGS+set} " =set ; then
@@ -10952,7 +10950,8 @@ fi
1095210950
1095310951
1095410952
10955- for ac_func in fseeko gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10953+
10954+ for ac_func in fseeko getaddrinfo gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
1095610955do
1095710956as_ac_var=` echo" ac_cv_func_$ac_func " | $as_tr_sh `
1095810957echo " $as_me :$LINENO : checking for$ac_func " >&5
@@ -17013,7 +17012,6 @@ s,@python_moduleexecdir@,$python_moduleexecdir,;t t
1701317012s,@python_includespec@,$python_includespec ,;t t
1701417013s,@python_libspec@,$python_libspec ,;t t
1701517014s,@LIBOBJS@,$LIBOBJS ,;t t
17016- s,@HAVE_IPV6@,$HAVE_IPV6 ,;t t
1701717015s,@HPUXMATHLIB@,$HPUXMATHLIB ,;t t
1701817016s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS ,;t t
1701917017s,@MSGFMT@,$MSGFMT ,;t t