This patch modifies configure.in to check for
winsock2.h and if present, link against libwsock32.a.
Checking for the link-ability of libwsock32.a alone is tough
to do with autoconf, since you need to compile a test
program against winsock2.h. If winsock2.h is not present,
the test reverts to checking for libsocket.a. The
incorrect test making gettimeofday mandatory has been
removed since on mingw it doesn't exist and there are
Log in to post a comment.