1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-02 08:57:19 -04:00
elinks/config/m4/win32.m4
Petr Baudis 0f6d4310ad Initial commit of the HEAD branch of the ELinks CVS repository, as of
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00

24 lines
460 B
Plaintext

AC_DEFUN([EL_CONFIG_WIN32],
[
AC_MSG_CHECKING([for win32 threads])
EL_SAVE_FLAGS
AC_TRY_LINK([#include <stdlib.h>],
[_beginthread(NULL, NULL, 0, NULL)], cf_result=yes, cf_result=no)
AC_MSG_RESULT($cf_result)
if test "$cf_result" = yes; then
EL_DEFINE(HAVE_BEGINTHREAD, [_beginthread()])
else
EL_RESTORE_FLAGS
fi
AC_CHECK_HEADERS(windows.h)
# TODO: Check this?
# TODO: Check -lws2_32 for IPv6 support
LIBS="$LIBS -lwsock32"
])