diff --git a/configure b/configure
index 05e5d191229fe51773cf20c9a334702ea4117699..995353dc13f6ae491546e2b66c0197f1fa74b8f9 100755
--- a/configure
+++ b/configure
@@ -2173,6 +2173,8 @@ if enabled network; then
         network_extralibs="-lws2_32"
         check_type ws2tcpip.h socklen_t
         check_func_headers winsock2.h closesocket
+    else
+        disable network
     fi
 fi