Signed-off-by: Jon TURNEY <[email protected]>
---
 configure.ac |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1b069e8..ae3ef74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,15 @@ XTRANS_CONNECTION_FLAGS
 # Secure RPC detection macro from xtrans.m4
 XTRANS_SECURE_RPC_FLAGS
 
+# Link with winsock if mingw target
+case $host_os in
+ *mingw*)
+  AC_CHECK_LIB([ws2_32],[main])
+  ;;
+ *)
+  ;;
+esac
+
 AC_CONFIG_FILES([
        Makefile
        man/Makefile])
-- 
1.7.9

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to