Andrs Garca fixed the configure script to detect select properly when run
with Msys/Mingw on Windows.
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel (24 November 2004)
|
||||||
|
- Andr<64>s Garc<72>a fixed the configure script to detect select properly when run
|
||||||
|
with Msys/Mingw on Windows.
|
||||||
|
|
||||||
Daniel (22 November 2004)
|
Daniel (22 November 2004)
|
||||||
- David Phillips enhanced test 518. I made it depend on a "feature" so that
|
- David Phillips enhanced test 518. I made it depend on a "feature" so that
|
||||||
systems without getrlimit() won't attempt to test 518. configure now checks
|
systems without getrlimit() won't attempt to test 518. configure now checks
|
||||||
|
|||||||
14
configure.ac
14
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 sigsetjmp() might be a macro and no function so if it isn't found already
|
||||||
dnl we make an extra check here!
|
dnl we make an extra check here!
|
||||||
if test "$ac_cv_func_sigsetjmp" != "yes"; then
|
if test "$ac_cv_func_sigsetjmp" != "yes"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user