@@ -7723,8 +7723,7 @@ $as_echo "yes" >&6; }
77237723fi
77247724
77257725if test " $enable_channel " = " yes" ; then
7726-
7727- if test " x$HAIKU " = " xyes" ; then
7726+ if test " x$HAIKU " = " xyes" ; then
77287727 { $as_echo " $as_me :${as_lineno-$LINENO } : checking for socket in -lnetwork" >&5
77297728$as_echo_n " checking for socket in -lnetwork... " >&6 ; }
77307729if ${ac_cv_lib_network_socket+: } false ; then :
@@ -7818,7 +7817,63 @@ fi
78187817
78197818 fi
78207819
7821- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for gethostbyname in -lnsl" >&5
7820+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking whether compiling with IPv6 networking is possible" >&5
7821+ $as_echo_n " checking whether compiling with IPv6 networking is possible... " >&6 ; }
7822+ if ${vim_cv_ipv6_networking+: } false ; then :
7823+ $as_echo_n " (cached) " >&6
7824+ else
7825+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
7826+ /* end confdefs.h. */
7827+
7828+ #include <stdio.h>
7829+ #include <stdlib.h>
7830+ #include <stdarg.h>
7831+ #include <fcntl.h>
7832+ #include <netdb.h>
7833+ #include <netinet/in.h>
7834+ #include <errno.h>
7835+ #include <sys/types.h>
7836+ #include <sys/socket.h>
7837+ /* Check bitfields */
7838+ struct nbbuf {
7839+ unsigned int initDone:1;
7840+ unsigned short signmaplen;
7841+ };
7842+
7843+ int
7844+ main ()
7845+ {
7846+
7847+ /* Check creating a socket. */
7848+ struct sockaddr_in server;
7849+ struct addrinfo *res;
7850+ (void)socket(AF_INET, SOCK_STREAM, 0);
7851+ (void)htons(100);
7852+ (void)getaddrinfo("microsoft.com", NULL, NULL, &res);
7853+ if (errno == ECONNREFUSED)
7854+ (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7855+ (void)freeaddrinfo(res);
7856+
7857+ ;
7858+ return 0;
7859+ }
7860+ _ACEOF
7861+ if ac_fn_c_try_link " $LINENO " ; then :
7862+ vim_cv_ipv6_networking=" yes"
7863+ else
7864+ vim_cv_ipv6_networking=" no"
7865+ fi
7866+ rm -f core conftest.err conftest.$ac_objext \
7867+ conftest$ac_exeext conftest.$ac_ext
7868+ fi
7869+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $vim_cv_ipv6_networking " >&5
7870+ $as_echo " $vim_cv_ipv6_networking " >&6 ; }
7871+
7872+ if test " x$vim_cv_ipv6_networking " = " xyes" ; then
7873+ $as_echo " #define FEAT_IPV6 1" >> confdefs.h
7874+
7875+ else
7876+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for gethostbyname in -lnsl" >&5
78227877$as_echo_n " checking for gethostbyname in -lnsl... " >&6 ; }
78237878if ${ac_cv_lib_nsl_gethostbyname+: } false ; then :
78247879 $as_echo_n " (cached) " >&6
@@ -7863,8 +7918,11 @@ _ACEOF
78637918
78647919fi
78657920
7866- { $as_echo " $as_me :${as_lineno-$LINENO } : checking whether compiling with process communication is possible" >&5
7867- $as_echo_n " checking whether compiling with process communication is possible... " >&6 ; }
7921+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking whether compiling with IPv4 networking is possible" >&5
7922+ $as_echo_n " checking whether compiling with IPv4 networking is possible... " >&6 ; }
7923+ if ${vim_cv_ipv4_networking+: } false ; then :
7924+ $as_echo_n " (cached) " >&6
7925+ else
78687926 cat confdefs.h - << _ACEOF >conftest.$ac_ext
78697927/* end confdefs.h. */
78707928
@@ -7900,15 +7958,17 @@ main ()
79007958}
79017959_ACEOF
79027960if ac_fn_c_try_link " $LINENO " ; then :
7903- { $as_echo " $as_me :${as_lineno-$LINENO } : result: yes" >&5
7904- $as_echo " yes" >&6 ; }
7961+ vim_cv_ipv4_networking=" yes"
79057962else
7906- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
7907- $as_echo " no" >&6 ; }; enable_netbeans=" no" ; enable_channel=" no"
7963+ vim_cv_ipv4_networking=" no" ; enable_netbeans=" no" ; enable_channel=" no"
79087964fi
79097965rm -f core conftest.err conftest.$ac_objext \
79107966 conftest$ac_exeext conftest.$ac_ext
79117967fi
7968+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $vim_cv_ipv4_networking " >&5
7969+ $as_echo " $vim_cv_ipv4_networking " >&6 ; }
7970+ fi
7971+ fi
79127972if test " $enable_netbeans " = " yes" ; then
79137973 $as_echo " #define FEAT_NETBEANS_INTG 1" >> confdefs.h
79147974
0 commit comments