summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 5a914fbdec..a700220fbc 100755
--- a/configure
+++ b/configure
@@ -2216,9 +2216,11 @@ if enabled network; then
if check_header arpa/inet.h ; then
check_func closesocket
elif check_header winsock2.h ; then
- network_extralibs="-lws2_32"
+ check_func_headers winsock2.h closesocket -lws2 && \
+ network_extralibs="-lws2" || \
+ { check_func_headers winsock2.h closesocket -lws2_32 && \
+ network_extralibs="-lws2_32"; }
check_type ws2tcpip.h socklen_t
- check_func_headers winsock2.h closesocket
else
disable network
fi