From 25559ac02ee4642937768cfdf4991a1e6029819d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 24 Nov 2004 15:49:43 +0000 Subject: =?UTF-8?q?Andr=E9s=20Garc=EDa=20fixed=20the=20configure=20script?= =?UTF-8?q?=20to=20detect=20select=20properly=20when=20run=20with=20Msys/M?= =?UTF-8?q?ingw=20on=20Windows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure.ac') 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 ], + [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 -- cgit v1.2.3