aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-05-19 16:57:56 +0000
committerYang Tse <yangsita@gmail.com>2008-05-19 16:57:56 +0000
commit9346e55d5af0c0a558b1365eda91f7bb07cba65a (patch)
treed20ffcb033ec8e836ea9943465f2cd0e41c80c49 /configure.ac
parent8fc2f8ef6287e095da91649b17c562c6c7be8f1c (diff)
better select() function detection that works
even when cross compiling a Windows target.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac34
1 files changed, 1 insertions, 33 deletions
diff --git a/configure.ac b/configure.ac
index cdd2d9fcc..3f4e6acc9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1992,7 +1992,7 @@ TYPE_SIG_ATOMIC_T
AC_TYPE_SIGNAL
-AC_FUNC_SELECT_ARGTYPES
+CURL_CHECK_FUNC_SELECT
CURL_CHECK_FUNC_RECV
@@ -2013,7 +2013,6 @@ case $host in
esac
AC_CHECK_FUNCS( strtoll \
socket \
- select \
strdup \
strstr \
strcasestr \
@@ -2067,37 +2066,6 @@ if test "x$skipcheck" != "xyes"; then
fi
)
-dnl For some reason, the check above doesn't properly detect select() with
-dnl Msys/Mingw
-if test "$ac_cv_func_select" = "no"; then
- AC_MSG_CHECKING([for select in $winsock_LIB])
- AC_TRY_LINK([
-#undef inline
-#ifdef HAVE_WINDOWS_H
-#ifndef WIN32_LEAN_AND_MEAN
-#define WIN32_LEAN_AND_MEAN
-#endif
-#include <windows.h>
-#ifdef HAVE_WINSOCK2_H
-#include <winsock2.h>
-#else
-#ifdef HAVE_WINSOCK_H
-#include <winsock.h>
-#endif
-#endif
-#endif
- ],[
- select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL);
- ],[
- AC_MSG_RESULT([yes])
- HAVE_SELECT="1"
- AC_DEFINE_UNQUOTED(HAVE_SELECT, 1,
- [Define to 1 if you have the select function.])
- ],[
- AC_MSG_ERROR([You can't compile without a select])
- ])
-fi
-
dnl sigsetjmp() might be a macro and no function so if it isn't found already
dnl we make an extra check here!
if test "$ac_cv_func_sigsetjmp" != "yes"; then