summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-10-26 14:52:45 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2013-02-24 14:23:15 +0000
commit4dc834b5d98a6b07bee7ec8d06ed63efe03d1076 (patch)
tree018b93f105776c3959555a91ad389b0f322022f7
parent9316e88c68c2a2189cf90c55e9850d7428bcd356 (diff)
Link with winsock for MinGW
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7cf52a9..be103e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,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])