@@ -10027,23 +10027,32 @@ fi
10027
10027
echo " $as_me :$LINENO : result: $ac_cv_func_getaddrinfo " >&5
10028
10028
echo " ${ECHO_T} $ac_cv_func_getaddrinfo " >&6
10029
10029
if test $ac_cv_func_getaddrinfo = yes; then
10030
- if test " ${ac_cv_header_netinet_ip6_h+set} " = set ; then
10031
- echo " $as_me :$LINENO : checking for netinet/ip6.h" >&5
10032
- echo $ECHO_N " checking for netinet/ip6.h... $ECHO_C " >&6
10033
- if test " ${ac_cv_header_netinet_ip6_h+set} " = set ; then
10030
+ echo " $as_me :$LINENO : checking for struct sockaddr_in6.sin6_len" >&5
10031
+ echo $ECHO_N " checking for struct sockaddr_in6.sin6_len... $ECHO_C " >&6
10032
+ if test " ${ac_cv_member_struct_sockaddr_in6_sin6_len+set} " = set ; then
10034
10033
echo $ECHO_N " (cached) $ECHO_C " >&6
10035
- fi
10036
- echo " $as_me :$LINENO : result: $ac_cv_header_netinet_ip6_h " >&5
10037
- echo " ${ECHO_T} $ac_cv_header_netinet_ip6_h " >&6
10038
10034
else
10039
- # Is the header compilable?
10040
- echo " $as_me :$LINENO : checking netinet/ip6.h usability" >&5
10041
- echo $ECHO_N " checking netinet/ip6.h usability... $ECHO_C " >&6
10042
- cat > conftest.$ac_ext << _ACEOF
10035
+ cat > conftest.$ac_ext << _ACEOF
10043
10036
#line $LINENO "configure"
10044
10037
#include "confdefs.h"
10045
- $ac_includes_default
10046
- #include <netinet/ip6.h>
10038
+ #include <sys/socket.h>
10039
+ #include <netdb.h>
10040
+
10041
+ #ifdef F77_DUMMY_MAIN
10042
+ # ifdef __cplusplus
10043
+ extern "C"
10044
+ # endif
10045
+ int F77_DUMMY_MAIN() { return 1; }
10046
+ #endif
10047
+ int
10048
+ main ()
10049
+ {
10050
+ static struct sockaddr_in6 ac_aggr;
10051
+ if (ac_aggr.sin6_len)
10052
+ return 0;
10053
+ ;
10054
+ return 0;
10055
+ }
10047
10056
_ACEOF
10048
10057
rm -f conftest.$ac_objext
10049
10058
if { (eval echo " $as_me :$LINENO : \" $ac_compile \" " ) >&5
@@ -10057,85 +10066,28 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057
10066
ac_status=$?
10058
10067
echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
10059
10068
(exit $ac_status ); }; }; then
10060
- ac_header_compiler =yes
10069
+ ac_cv_member_struct_sockaddr_in6_sin6_len =yes
10061
10070
else
10062
10071
echo " $as_me : failed program was:" >&5
10063
10072
cat conftest.$ac_ext >&5
10064
- ac_header_compiler =no
10073
+ ac_cv_member_struct_sockaddr_in6_sin6_len =no
10065
10074
fi
10066
10075
rm -f conftest.$ac_objext conftest.$ac_ext
10067
- echo " $as_me :$LINENO : result: $ac_header_compiler " >&5
10068
- echo " ${ECHO_T} $ac_header_compiler " >&6
10069
-
10070
- # Is the header present?
10071
- echo " $as_me :$LINENO : checking netinet/ip6.h presence" >&5
10072
- echo $ECHO_N " checking netinet/ip6.h presence... $ECHO_C " >&6
10073
- cat > conftest.$ac_ext << _ACEOF
10074
- #line $LINENO "configure"
10075
- #include "confdefs.h"
10076
- #include <netinet/ip6.h>
10077
- _ACEOF
10078
- if { (eval echo " $as_me :$LINENO : \" $ac_cpp conftest.$ac_ext \" " ) >&5
10079
- (eval $ac_cpp conftest.$ac_ext ) 2> conftest.er1
10080
- ac_status=$?
10081
- egrep -v ' ^ *\+' conftest.er1 > conftest.err
10082
- rm -f conftest.er1
10083
- cat conftest.err >&5
10084
- echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
10085
- (exit $ac_status ); } > /dev/null; then
10086
- if test -s conftest.err; then
10087
- ac_cpp_err=$ac_c_preproc_warn_flag
10088
- else
10089
- ac_cpp_err=
10090
- fi
10091
- else
10092
- ac_cpp_err=yes
10093
10076
fi
10094
- if test -z " $ac_cpp_err " ; then
10095
- ac_header_preproc=yes
10096
- else
10097
- echo " $as_me : failed program was:" >&5
10098
- cat conftest.$ac_ext >&5
10099
- ac_header_preproc=no
10100
- fi
10101
- rm -f conftest.err conftest.$ac_ext
10102
- echo " $as_me :$LINENO : result: $ac_header_preproc " >&5
10103
- echo " ${ECHO_T} $ac_header_preproc " >&6
10077
+ echo " $as_me :$LINENO : result: $ac_cv_member_struct_sockaddr_in6_sin6_len " >&5
10078
+ echo " ${ECHO_T} $ac_cv_member_struct_sockaddr_in6_sin6_len " >&6
10079
+ if test $ac_cv_member_struct_sockaddr_in6_sin6_len = yes; then
10104
10080
10105
- # So? What about this header?
10106
- case $ac_header_compiler :$ac_header_preproc in
10107
- yes:no )
10108
- { echo " $as_me :$LINENO : WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!" >&5
10109
- echo " $as_me : WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!" >&2 ; }
10110
- { echo " $as_me :$LINENO : WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&5
10111
- echo " $as_me : WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&2 ; };;
10112
- no:yes )
10113
- { echo " $as_me :$LINENO : WARNING: netinet/ip6.h: present but cannot be compiled" >&5
10114
- echo " $as_me : WARNING: netinet/ip6.h: present but cannot be compiled" >&2 ; }
10115
- { echo " $as_me :$LINENO : WARNING: netinet/ip6.h: check for missing prerequisite headers?" >&5
10116
- echo " $as_me : WARNING: netinet/ip6.h: check for missing prerequisite headers?" >&2 ; }
10117
- { echo " $as_me :$LINENO : WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&5
10118
- echo " $as_me : WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&2 ; };;
10119
- esac
10120
- echo " $as_me :$LINENO : checking for netinet/ip6.h" >&5
10121
- echo $ECHO_N " checking for netinet/ip6.h... $ECHO_C " >&6
10122
- if test " ${ac_cv_header_netinet_ip6_h+set} " = set ; then
10123
- echo $ECHO_N " (cached) $ECHO_C " >&6
10124
- else
10125
- ac_cv_header_netinet_ip6_h=$ac_header_preproc
10126
- fi
10127
- echo " $as_me :$LINENO : result: $ac_cv_header_netinet_ip6_h " >&5
10128
- echo " ${ECHO_T} $ac_cv_header_netinet_ip6_h " >&6
10081
+ cat >> confdefs.h << _ACEOF
10082
+ #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
10083
+ _ACEOF
10129
10084
10130
- fi
10131
- if test $ac_cv_header_netinet_ip6_h = yes; then
10132
- HAVE_IPV6=" yes" ; cat >> confdefs.h << \_ACEOF
10085
+ HAVE_IPV6=" yes" ; cat >> confdefs.h << \_ACEOF
10133
10086
#define HAVE_IPV6 1
10134
10087
_ACEOF
10135
10088
10136
10089
fi
10137
10090
10138
-
10139
10091
fi
10140
10092
10141
10093
0 commit comments