diff options
Diffstat (limited to 'ares/configure.ac')
-rw-r--r-- | ares/configure.ac | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/ares/configure.ac b/ares/configure.ac index 5c43e006a..97d830434 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -661,6 +661,7 @@ CURL_CHECK_MSG_NOSIGNAL CARES_CHECK_FUNC_GETHOSTNAME CARES_CHECK_FUNC_GETSERVBYPORT_R CARES_CHECK_FUNC_INET_NTOP +CARES_CHECK_FUNC_INET_PTON CARES_CHECK_FUNC_STRCASECMP CARES_CHECK_FUNC_STRCMPI CARES_CHECK_FUNC_STRDUP @@ -860,35 +861,6 @@ AC_CHECK_FUNCS([bitncmp \ ]) -dnl check for inet_pton -AC_CHECK_FUNCS(inet_pton) -dnl Some systems have it, but not IPv6 -if test "$ac_cv_func_inet_pton" = "yes" ; then -AC_MSG_CHECKING(if inet_pton supports IPv6) -AC_TRY_RUN( - [ -#ifdef HAVE_SYS_TYPES_H -#include <sys/types.h> -#endif -#ifdef HAVE_SYS_SOCKET_H -#include <sys/socket.h> -#endif -#ifdef HAVE_NETINET_IN_H -#include <netinet/in.h> -#endif -int main() - { - struct in6_addr addr6; - if (inet_pton(AF_INET6, "::1", &addr6) < 1) - exit(1); - else - exit(0); - } - ], [ - AC_MSG_RESULT(yes) - AC_DEFINE_UNQUOTED(HAVE_INET_PTON_IPV6,1,[Define to 1 if inet_pton supports IPv6.]) - ], AC_MSG_RESULT(no),AC_MSG_RESULT(no)) -fi dnl Check for inet_net_pton AC_CHECK_FUNCS(inet_net_pton) dnl Again, some systems have it, but not IPv6 |