@@ -7169,6 +7169,80 @@ fi
71697169done
71707170
71717171
7172+ # This exports HAVE_IPV6 to both C files and Makefiles
7173+ echo " $as_me :$LINENO : checking for getaddrinfo" >&5
7174+ echo $ECHO_N " checking for getaddrinfo...$ECHO_C " >&6
7175+ if test " ${ac_cv_func_getaddrinfo+set} " =set ; then
7176+ echo $ECHO_N " (cached)$ECHO_C " >&6
7177+ else
7178+ cat> conftest.$ac_ext << _ACEOF
7179+ #line$LINENO "configure"
7180+ #include "confdefs.h"
7181+ /* System header to define __stub macros and hopefully few prototypes,
7182+ which can conflict with char getaddrinfo (); below. */
7183+ #include <assert.h>
7184+ /* Override any gcc2 internal prototype to avoid an error. */
7185+ #ifdef __cplusplus
7186+ extern "C"
7187+ #endif
7188+ /* We use char because int might match the return type of a gcc2
7189+ builtin and then its argument prototype would still apply. */
7190+ char getaddrinfo ();
7191+ char (*f) ();
7192+
7193+ #ifdef F77_DUMMY_MAIN
7194+ # ifdef __cplusplus
7195+ extern "C"
7196+ # endif
7197+ int F77_DUMMY_MAIN() { return 1; }
7198+ #endif
7199+ int
7200+ main ()
7201+ {
7202+ /* The GNU C library defines this for functions which it implements
7203+ to always fail with ENOSYS. Some functions are actually named
7204+ something starting with __ and the normal name is an alias. */
7205+ #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
7206+ choke me
7207+ #else
7208+ f = getaddrinfo;
7209+ #endif
7210+
7211+ ;
7212+ return 0;
7213+ }
7214+ _ACEOF
7215+ rm -f conftest.$ac_objext conftest$ac_exeext
7216+ if { (evalecho " $as_me :$LINENO :\" $ac_link \" " )>&5
7217+ (eval$ac_link )2>&5
7218+ ac_status=$?
7219+ echo " $as_me :$LINENO :\$ ? =$ac_status " >&5
7220+ (exit$ac_status ); }&&
7221+ { ac_try=' test -s conftest$ac_exeext'
7222+ { (evalecho " $as_me :$LINENO :\" $ac_try \" " )>&5
7223+ (eval$ac_try )2>&5
7224+ ac_status=$?
7225+ echo " $as_me :$LINENO :\$ ? =$ac_status " >&5
7226+ (exit$ac_status ); }; }; then
7227+ ac_cv_func_getaddrinfo=yes
7228+ else
7229+ echo " $as_me : failed program was:" >&5
7230+ cat conftest.$ac_ext >&5
7231+ ac_cv_func_getaddrinfo=no
7232+ fi
7233+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7234+ fi
7235+ echo " $as_me :$LINENO : result:$ac_cv_func_getaddrinfo " >&5
7236+ echo " ${ECHO_T} $ac_cv_func_getaddrinfo " >&6
7237+ if test $ac_cv_func_getaddrinfo = yes; then
7238+ HAVE_IPV6=" yes" ; cat>> confdefs.h<< \_ACEOF
7239+ #define HAVE_IPV6 1
7240+ _ACEOF
7241+
7242+ fi
7243+
7244+
7245+
71727246if test " $with_readline " = yes; then
71737247
71747248for ac_header in readline/readline.h
@@ -16427,6 +16501,7 @@ s,@python_moduledir@,$python_moduledir,;t t
1642716501s,@python_moduleexecdir@,$python_moduleexecdir ,;t t
1642816502s,@python_includespec@,$python_includespec ,;t t
1642916503s,@python_libspec@,$python_libspec ,;t t
16504+ s,@HAVE_IPV6@,$HAVE_IPV6 ,;t t
1643016505s,@LIBOBJS@,$LIBOBJS ,;t t
1643116506s,@HPUXMATHLIB@,$HPUXMATHLIB ,;t t
1643216507s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS ,;t t