aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-21 02:42:34 +0000
committerYang Tse <yangsita@gmail.com>2009-06-21 02:42:34 +0000
commite96a9190a3099fe08e64468ecb7bca95121eac25 (patch)
tree4de9c9d3a5a1efbba0620ea8273599882d569bb0 /acinclude.m4
parent1ff4e9008b70ccf521179ad1a2438bdc93554fd4 (diff)
Refactor how libraries are checked for connect() function, follow-up.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8c6f5bbff..d0e28aa74 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2208,6 +2208,7 @@ dnl Verify if network connect function is already available
dnl using current libraries or if another one is required.
AC_DEFUN([CURL_CHECK_LIBS_CONNECT], [
+ AC_REQUIRE([CURL_INCLUDES_WINSOCK2])dnl
AC_MSG_CHECKING([for connect in libraries])
tst_connect_save_LIBS="$LIBS"
tst_connect_need_LIBS="unknown"
@@ -2216,6 +2217,10 @@ AC_DEFUN([CURL_CHECK_LIBS_CONNECT], [
LIBS="$tst_lib $tst_connect_save_LIBS"
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
+ $curl_includes_winsock2
+ #ifndef HAVE_WINDOWS_H
+ int connect(int, void*, int);
+ #endif
]],[[
if(0 != connect(0, 0, 0))
return 1;