summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9a0288c..a7100a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,7 +91,10 @@ AC_SUBST(PYTHON)
dnl Decide which extra win32 libs we need
EXTRA_LIBS=
-AS_IF([test "x$windows" = xyes], [EXTRA_LIBS="-lws2_32 $EXTRA_LIBS"])
+AS_IF([test "x$windows" = xyes],
+ [AS_IF([test "x$GCC" = xyes],
+ [EXTRA_LIBS="-lws2_32 $EXTRA_LIBS"],
+ [EXTRA_LIBS="ws2_32.lib $EXTRA_LIBS"])])
AC_SUBST(EXTRA_LIBS)
dnl Check for libpopt, which we need to build the tools