]> granicus.if.org Git - libevent/commitdiff
Do not check for gethostbyname_r versions if we have getaddrinfo
authorNick Mathewson <nickm@torproject.org>
Mon, 31 Jan 2011 22:36:49 +0000 (17:36 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 31 Jan 2011 22:36:49 +0000 (17:36 -0500)
configure.in

index b14a420ca54604bd972810a5f1b9bc7fe8fefb99..bbed4b94514e939c9dc7fce7f65fe9e2257401d5 100644 (file)
@@ -201,6 +201,8 @@ AC_HEADER_TIME
 dnl Checks for library functions.
 AC_CHECK_FUNCS(gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getaddrinfo getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getservbyname getprotobynumber setenv unsetenv putenv)
 
+if test "$ac_cv_func_getaddrinfo" != "yes" ; then
+
 # Check for gethostbyname_r in all its glorious incompatible versions.
 #   (This is cut-and-pasted from Tor, which based its logic on
 #   Python's configure.in.)
@@ -257,6 +259,7 @@ AC_CHECK_FUNC(gethostbyname_r, [
  CFLAGS=$OLD_CFLAGS
 ])
 
+fi
 
 AC_CHECK_SIZEOF(long)