aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-24 15:49:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-24 15:49:43 +0000
commit25559ac02ee4642937768cfdf4991a1e6029819d (patch)
tree1039215925550872a97a0fc1ba5e2e4707052d10 /configure.ac
parent51a87fa652ee2c00128cec246bd44f6df31e4bf2 (diff)
Andrés García fixed the configure script to detect select properly when run
with Msys/Mingw on Windows.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 019bce231..39264c7f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1260,6 +1260,20 @@ dnl if not found, $ac_func is the name we check for
)
+dnl For some reason, the check above doesn't properly detect select() with
+dnl Msys/Mingw
+if test "$ac_cv_func_select" != "yes"; then
+ AC_MSG_CHECKING([for select in ws2_32])
+ AC_TRY_LINK([#include <winsock2.h>],
+ [select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL);],
+ [ dnl worked!
+ AC_MSG_RESULT([yes])
+ HAVE_SELECT="1"
+ AC_DEFINE_UNQUOTED(HAVE_SELECT,1)],
+ [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