From e96a9190a3099fe08e64468ecb7bca95121eac25 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 21 Jun 2009 02:42:34 +0000 Subject: Refactor how libraries are checked for connect() function, follow-up. --- ares/acinclude.m4 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ares') diff --git a/ares/acinclude.m4 b/ares/acinclude.m4 index 4c5e8c736..336dfabb6 100644 --- a/ares/acinclude.m4 +++ b/ares/acinclude.m4 @@ -1676,6 +1676,7 @@ dnl Verify if network connect function is already available dnl using current libraries or if another one is required. AC_DEFUN([CARES_CHECK_LIBS_CONNECT], [ + AC_REQUIRE([CARES_INCLUDES_WINSOCK2])dnl AC_MSG_CHECKING([for connect in libraries]) tst_connect_save_LIBS="$LIBS" tst_connect_need_LIBS="unknown" @@ -1684,6 +1685,10 @@ AC_DEFUN([CARES_CHECK_LIBS_CONNECT], [ LIBS="$tst_lib $tst_connect_save_LIBS" AC_LINK_IFELSE([ AC_LANG_PROGRAM([[ + $cares_includes_winsock2 + #ifndef HAVE_WINDOWS_H + int connect(int, void*, int); + #endif ]],[[ if(0 != connect(0, 0, 0)) return 1; -- cgit v1.2.3