Removed definition of CURL_CHECK_WORKING_RESOLVER from acinclude.m4 it has

not been in use since revision 1.81 of configure.in 6 years, 9 months ago.
This commit is contained in:
Yang Tse
2008-08-01 05:24:19 +00:00
parent 296a6f7749
commit 1035469662
2 changed files with 3 additions and 28 deletions

View File

@@ -2524,34 +2524,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
]) # AC_DEFUN
dnl ************************************************************
dnl check for "localhost", if it doesn't exist, we can't do the
dnl gethostbyname_r tests!
dnl
AC_DEFUN([CURL_CHECK_WORKING_RESOLVER],[
AC_MSG_CHECKING([if "localhost" resolves])
AC_TRY_RUN([
#include <string.h>
#include <sys/types.h>
#include <netdb.h>
#ifndef NULL
#define NULL (void *)0
#endif
int
main () {
struct hostent *h;
h = gethostbyname("localhost");
exit (h == NULL ? 1 : 0); }],[
AC_MSG_RESULT(yes)],[
AC_MSG_RESULT(no)
AC_MSG_ERROR([can't figure out gethostbyname_r() since localhost doesn't resolve])
]
)
])
dnl ************************************************************
dnl check for working getaddrinfo() that works with AI_NUMERICHOST
dnl