2005-09-15 09:58:31 -04:00
|
|
|
|
2006-01-11 14:10:27 -05:00
|
|
|
AC_DEFUN([EL_CONFIG_OS_WIN32],
|
2005-09-15 09:58:31 -04:00
|
|
|
[
|
|
|
|
AC_MSG_CHECKING([for win32 threads])
|
|
|
|
|
|
|
|
EL_SAVE_FLAGS
|
|
|
|
|
2007-07-05 09:03:59 -04:00
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>]], [[_beginthread(NULL, NULL, 0, NULL)]])],[cf_result=yes],[cf_result=no])
|
2005-09-15 09:58:31 -04:00
|
|
|
AC_MSG_RESULT($cf_result)
|
|
|
|
|
|
|
|
if test "$cf_result" = yes; then
|
|
|
|
EL_DEFINE(HAVE_BEGINTHREAD, [_beginthread()])
|
|
|
|
else
|
|
|
|
EL_RESTORE_FLAGS
|
|
|
|
fi
|
|
|
|
|
2007-07-17 17:41:08 -04:00
|
|
|
AC_CHECK_HEADERS(windows.h ws2tcpip.h)
|
2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
# TODO: Check this?
|
|
|
|
# TODO: Check -lws2_32 for IPv6 support
|
|
|
|
LIBS="$LIBS -lwsock32"
|
|
|
|
])
|