2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

Check for in6_addr, if missing assume in_addr6 provided we have sockaddr_in6.

This commit is contained in:
Mark Andrews 2001-01-03 13:05:14 +00:00
parent f23afaac09
commit 19cfe6a53b
2 changed files with 151 additions and 88 deletions

212
configure vendored
View File

@ -3631,8 +3631,8 @@ case "$found_ipv6" in
ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
echo "configure:3636: checking for in6addr_any" >&5
echo $ac_n "checking for in6_addr""... $ac_c" 1>&6
echo "configure:3636: checking for in6_addr" >&5
cat > conftest.$ac_ext <<EOF
#line 3638 "configure"
#include "confdefs.h"
@ -3641,11 +3641,47 @@ echo "configure:3636: checking for in6addr_any" >&5
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct in6_addr in6; return (0);
; return 0; }
EOF
if { (eval echo configure:3651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
isc_in_addr6_hack=""
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
isc_in_addr6_hack="#define in6_addr in_addr6"
fi
rm -f conftest*
echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
echo "configure:3669: checking for in6addr_any" >&5
cat > conftest.$ac_ext <<EOF
#line 3671 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
$isc_in_addr6_hack
int main() {
struct in6_addr in6; in6 = in6addr_any; return (0);
; return 0; }
EOF
if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
@ -3661,9 +3697,9 @@ fi
rm -f conftest*
echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
echo "configure:3665: checking for sin6_scope_id in struct sockaddr_in6" >&5
echo "configure:3701: checking for sin6_scope_id in struct sockaddr_in6" >&5
cat > conftest.$ac_ext <<EOF
#line 3667 "configure"
#line 3703 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -3676,7 +3712,7 @@ int main() {
struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
@ -3691,9 +3727,9 @@ rm -f conftest*
LWRES_HAVE_SIN6_SCOPE_ID="$result"
echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
echo "configure:3695: checking for in6_pktinfo" >&5
echo "configure:3731: checking for in6_pktinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3697 "configure"
#line 3733 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -3706,7 +3742,7 @@ int main() {
struct in6_pktinfo xyzzy; return (0);
; return 0; }
EOF
if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
@ -3749,6 +3785,8 @@ esac
#
# Check for network functions that are often missing. We do this
# after the libtool checking, so we can put the right suffix on
@ -3756,9 +3794,9 @@ esac
# which provides some (all?) of the desired functions.
#
echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
echo "configure:3760: checking for inet_ntop" >&5
echo "configure:3798: checking for inet_ntop" >&5
cat > conftest.$ac_ext <<EOF
#line 3762 "configure"
#line 3800 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -3768,7 +3806,7 @@ int main() {
inet_ntop(0, 0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
@ -3783,9 +3821,9 @@ else
fi
rm -f conftest*
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:3787: checking for inet_pton" >&5
echo "configure:3825: checking for inet_pton" >&5
cat > conftest.$ac_ext <<EOF
#line 3789 "configure"
#line 3827 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -3795,7 +3833,7 @@ int main() {
inet_pton(0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
@ -3810,9 +3848,9 @@ else
fi
rm -f conftest*
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:3814: checking for inet_aton" >&5
echo "configure:3852: checking for inet_aton" >&5
cat > conftest.$ac_ext <<EOF
#line 3816 "configure"
#line 3854 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -3822,7 +3860,7 @@ int main() {
struct in_addr in; inet_aton(0, &in); return (0);
; return 0; }
EOF
if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
@ -3855,9 +3893,9 @@ EOF
esac
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:3859: checking for sa_len in struct sockaddr" >&5
echo "configure:3897: checking for sa_len in struct sockaddr" >&5
cat > conftest.$ac_ext <<EOF
#line 3861 "configure"
#line 3899 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -3866,7 +3904,7 @@ int main() {
struct sockaddr sa; sa.sa_len = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
@ -3887,9 +3925,9 @@ rm -f conftest*
# Look for a 4.4BSD or 4.3BSD struct msghdr
#
echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
echo "configure:3891: checking for struct msghdr flavor" >&5
echo "configure:3929: checking for struct msghdr flavor" >&5
cat > conftest.$ac_ext <<EOF
#line 3893 "configure"
#line 3931 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -3898,7 +3936,7 @@ int main() {
struct msghdr msg; msg.msg_flags = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""4.4BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
@ -3916,9 +3954,9 @@ rm -f conftest*
# Look for in_port_t.
#
echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6
echo "configure:3920: checking for type in_port_t" >&5
echo "configure:3958: checking for type in_port_t" >&5
cat > conftest.$ac_ext <<EOF
#line 3922 "configure"
#line 3960 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -3927,7 +3965,7 @@ int main() {
in_port_t port = 25; return (0);
; return 0; }
EOF
if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
@ -3945,9 +3983,9 @@ rm -f conftest*
# Check for addrinfo
#
echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
echo "configure:3949: checking for struct addrinfo" >&5
echo "configure:3987: checking for struct addrinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3951 "configure"
#line 3989 "configure"
#include "confdefs.h"
#include <netdb.h>
@ -3955,7 +3993,7 @@ int main() {
struct addrinfo a; return (0);
; return 0; }
EOF
if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
@ -3974,9 +4012,9 @@ rm -f conftest*
echo $ac_n "checking for int sethostent""... $ac_c" 1>&6
echo "configure:3978: checking for int sethostent" >&5
echo "configure:4016: checking for int sethostent" >&5
cat > conftest.$ac_ext <<EOF
#line 3980 "configure"
#line 4018 "configure"
#include "confdefs.h"
#include <netdb.h>
@ -3984,7 +4022,7 @@ int main() {
int i = sethostent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:3988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
@ -3999,9 +4037,9 @@ rm -f conftest*
echo $ac_n "checking for int endhostent""... $ac_c" 1>&6
echo "configure:4003: checking for int endhostent" >&5
echo "configure:4041: checking for int endhostent" >&5
cat > conftest.$ac_ext <<EOF
#line 4005 "configure"
#line 4043 "configure"
#include "confdefs.h"
#include <netdb.h>
@ -4009,7 +4047,7 @@ int main() {
int i = endhostent(); return(0);
; return 0; }
EOF
if { (eval echo configure:4013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
@ -4024,9 +4062,9 @@ rm -f conftest*
echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
echo "configure:4028: checking for getnetbyaddr(in_addr_t, ...)" >&5
echo "configure:4066: checking for getnetbyaddr(in_addr_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 4030 "configure"
#line 4068 "configure"
#include "confdefs.h"
#include <netdb.h>
@ -4035,7 +4073,7 @@ int main() {
; return 0; }
EOF
if { (eval echo configure:4039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
@ -4050,9 +4088,9 @@ rm -f conftest*
echo $ac_n "checking for int setnetent""... $ac_c" 1>&6
echo "configure:4054: checking for int setnetent" >&5
echo "configure:4092: checking for int setnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 4056 "configure"
#line 4094 "configure"
#include "confdefs.h"
#include <netdb.h>
@ -4060,7 +4098,7 @@ int main() {
int i = setnetent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:4064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
@ -4075,9 +4113,9 @@ rm -f conftest*
echo $ac_n "checking for int endnetent""... $ac_c" 1>&6
echo "configure:4079: checking for int endnetent" >&5
echo "configure:4117: checking for int endnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 4081 "configure"
#line 4119 "configure"
#include "confdefs.h"
#include <netdb.h>
@ -4085,7 +4123,7 @@ int main() {
int i = endnetent(); return(0);
; return 0; }
EOF
if { (eval echo configure:4089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
@ -4100,9 +4138,9 @@ rm -f conftest*
echo $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
echo "configure:4104: checking for gethostbyaddr(const void *, size_t, ...)" >&5
echo "configure:4142: checking for gethostbyaddr(const void *, size_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 4106 "configure"
#line 4144 "configure"
#include "confdefs.h"
#include <netdb.h>
@ -4111,7 +4149,7 @@ int main() {
return(0);
; return 0; }
EOF
if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
@ -4126,9 +4164,9 @@ rm -f conftest*
echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
echo "configure:4130: checking for h_errno in netdb.h" >&5
echo "configure:4168: checking for h_errno in netdb.h" >&5
cat > conftest.$ac_ext <<EOF
#line 4132 "configure"
#line 4170 "configure"
#include "confdefs.h"
#include <netdb.h>
@ -4136,7 +4174,7 @@ int main() {
h_errno = 1; return(0);
; return 0; }
EOF
if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
@ -4151,12 +4189,12 @@ rm -f conftest*
echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
echo "configure:4155: checking for getipnodebyname" >&5
echo "configure:4193: checking for getipnodebyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4160 "configure"
#line 4198 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getipnodebyname(); below. */
@ -4179,7 +4217,7 @@ getipnodebyname();
; return 0; }
EOF
if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=yes"
else
@ -4200,12 +4238,12 @@ ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
fi
echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6
echo "configure:4204: checking for getnameinfo" >&5
echo "configure:4242: checking for getnameinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4209 "configure"
#line 4247 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getnameinfo(); below. */
@ -4228,7 +4266,7 @@ getnameinfo();
; return 0; }
EOF
if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getnameinfo=yes"
else
@ -4249,12 +4287,12 @@ ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
fi
echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
echo "configure:4253: checking for getaddrinfo" >&5
echo "configure:4291: checking for getaddrinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4258 "configure"
#line 4296 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getaddrinfo(); below. */
@ -4277,7 +4315,7 @@ getaddrinfo();
; return 0; }
EOF
if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=yes"
else
@ -4309,9 +4347,9 @@ fi
# Look for a sysctl call to get the list of network interfaces.
#
echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
echo "configure:4313: checking for interface list sysctl" >&5
echo "configure:4351: checking for interface list sysctl" >&5
cat > conftest.$ac_ext <<EOF
#line 4315 "configure"
#line 4353 "configure"
#include "confdefs.h"
#include <sys/param.h>
@ -4341,12 +4379,12 @@ rm -f conftest*
# Check for some other useful functions that are not ever-present.
#
echo $ac_n "checking for strsep""... $ac_c" 1>&6
echo "configure:4345: checking for strsep" >&5
echo "configure:4383: checking for strsep" >&5
if eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4350 "configure"
#line 4388 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strsep(); below. */
@ -4369,7 +4407,7 @@ strsep();
; return 0; }
EOF
if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_strsep=yes"
else
@ -4390,12 +4428,12 @@ ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
echo "configure:4394: checking for vsnprintf" >&5
echo "configure:4432: checking for vsnprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4399 "configure"
#line 4437 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf(); below. */
@ -4418,7 +4456,7 @@ vsnprintf();
; return 0; }
EOF
if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_vsnprintf=yes"
else
@ -4447,17 +4485,17 @@ fi
echo $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
echo "configure:4451: checking for sizeof(long long int) == sizeof(long int)" >&5
echo "configure:4489: checking for sizeof(long long int) == sizeof(long int)" >&5
if test "$cross_compiling" = yes; then
echo "$ac_t""default yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
cat > conftest.$ac_ext <<EOF
#line 4457 "configure"
#line 4495 "configure"
#include "confdefs.h"
main() { exit(!(sizeof(long long int) == sizeof(long int))); }
EOF
if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
@ -4477,12 +4515,12 @@ fi
# Security Stuff
#
echo $ac_n "checking for chroot""... $ac_c" 1>&6
echo "configure:4481: checking for chroot" >&5
echo "configure:4519: checking for chroot" >&5
if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4486 "configure"
#line 4524 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char chroot(); below. */
@ -4505,7 +4543,7 @@ chroot();
; return 0; }
EOF
if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_chroot=yes"
else
@ -4531,17 +4569,17 @@ for ac_hdr in linux/capability.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4535: checking for $ac_hdr" >&5
echo "configure:4573: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4540 "configure"
#line 4578 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:4583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@ -4571,17 +4609,17 @@ for ac_hdr in linux/prctl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4575: checking for $ac_hdr" >&5
echo "configure:4613: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4580 "configure"
#line 4618 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:4623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@ -4612,9 +4650,9 @@ done
# BSD/OS, and perhaps some others, don't define rlim_t.
#
echo $ac_n "checking for type rlim_t""... $ac_c" 1>&6
echo "configure:4616: checking for type rlim_t" >&5
echo "configure:4654: checking for type rlim_t" >&5
cat > conftest.$ac_ext <<EOF
#line 4618 "configure"
#line 4656 "configure"
#include "confdefs.h"
#include <sys/types.h>
@ -4624,7 +4662,7 @@ int main() {
rlim_t rl = 19671212; return (0);
; return 0; }
EOF
if { (eval echo configure:4628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:4666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
@ -4717,7 +4755,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4721: checking for $ac_word" >&5
echo "configure:4759: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -4763,7 +4801,7 @@ test -n "$JADE" || JADE="jade"
SGMLDIR=""
echo $ac_n "checking for SGML files""... $ac_c" 1>&6
echo "configure:4767: checking for SGML files" >&5
echo "configure:4805: checking for SGML files" >&5
for d in /usr/pkg/share/sgml /usr/local/share/sgml
do
if test -f $d/docbook/dsssl/modular/html/docbook.dsl
@ -4789,7 +4827,7 @@ fi
XGMLDIR=""
echo $ac_n "checking for XML files""... $ac_c" 1>&6
echo "configure:4793: checking for XML files" >&5
echo "configure:4831: checking for XML files" >&5
for d in /usr/pkg/share/xml /usr/local/share/xml
do
if test -f $d/dtd/docbook/docbookx.dtd
@ -5106,6 +5144,8 @@ s%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
s%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
s%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
s%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
s%@ISC_PLATFORM_HAVEINADDR6@%$ISC_PLATFORM_HAVEINADDR6%g
s%@LWRES_PLATFORM_HAVEINADDR6@%$LWRES_PLATFORM_HAVEINADDR6%g
s%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
s%@LWRES_PLATFORM_NEEDIN6ADDRANY@%$LWRES_PLATFORM_NEEDIN6ADDRANY%g
s%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g

View File

@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.207 $)
AC_REVISION($Revision: 1.208 $)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
@ -754,12 +754,33 @@ case "$found_ipv6" in
ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
AC_MSG_CHECKING(for in6_addr)
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
],
[struct in6_addr in6; return (0);],
[AC_MSG_RESULT(yes)
ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
isc_in_addr6_hack=""],
[AC_MSG_RESULT(no)
ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
isc_in_addr6_hack="#define in6_addr in_addr6"])
AC_MSG_CHECKING(for in6addr_any)
AC_TRY_LINK([
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack],
$isc_netinetin6_hack
$isc_netinet6in6_hack
$isc_in_addr6_hack
],
[struct in6_addr in6; in6 = in6addr_any; return (0);],
[AC_MSG_RESULT(yes)
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
@ -817,6 +838,8 @@ AC_SUBST(ISC_PLATFORM_NEEDNETINETIN6H)
AC_SUBST(LWRES_PLATFORM_NEEDNETINETIN6H)
AC_SUBST(ISC_PLATFORM_NEEDNETINET6IN6H)
AC_SUBST(LWRES_PLATFORM_NEEDNETINET6IN6H)
AC_SUBST(ISC_PLATFORM_HAVEINADDR6)
AC_SUBST(LWRES_PLATFORM_HAVEINADDR6)
AC_SUBST(ISC_PLATFORM_NEEDIN6ADDRANY)
AC_SUBST(LWRES_PLATFORM_NEEDIN6ADDRANY)
AC_SUBST(ISC_PLATFORM_HAVEIN6PKTINFO)