Fix bug 8153 found when building on an IPv6-only system by Kai Blin.
authorJeremy Allison <jra@samba.org>
Thu, 19 May 2011 19:32:15 +0000 (12:32 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 20 May 2011 19:15:50 +0000 (21:15 +0200)
commit85468960ebdb3d813bd863e57f6dca6bab61bec2
treed7c3b890c5645f566e65bad21b0a684adaa57c08
parent72e50d34eeac4cd72ec2f6b3609b5373f1f1ec15
Fix bug 8153 found when building on an IPv6-only system by Kai Blin.

When building on IPv6-only, doing:

hints.ai_family = AF_INET;
getaddrinfo("0.0.0.0", NULL, &hints, &ppres)

fails as AF_INET is unavailable on an IPv6-only system. This
causes us to fallback to our replacement getaddrinfo code
which is IPv4-only.

As we're only trying to detect a specific AIX bug here,
broaden the tests to find that bug, and also test for
working getaddrinfo in an IPv6-only safe way.
lib/replace/libreplace_network.m4