Pontus Skoeld pont@soua.net writes:
I wouldn't bet that there aren't any systems without AF_INET6 but with getaddrinfo, so I think it's best to keep the test.
I'm tempted to call such systems broken. Simply defining the AF_INET6 constant is cheap, and it's really independent of ipv6 support. The glibc sys/socket.h defines for example AF_X25, AF_IPX, AF_APPLETALK, AF_ROSE, AF_DECnet, AF_ECONET and a bunch of oter families that I've never heard of before.
If really needed, we can add an
#ifndef AF_INET6 #define AF_INET6 4711 #endif
somewhere to take care of that.
Anyway, if we want to test for the AF_INET6 constant, AC_TRY_LINK is also overkill.
/Niels