Disable warning == error for win32
authorTrond Norbye <trond.norbye@gmail.com>
Sun, 1 Aug 2010 21:11:54 +0000 (23:11 +0200)
committerTrond Norbye <trond.norbye@gmail.com>
Sun, 1 Aug 2010 21:11:54 +0000 (23:11 +0200)
configure.ac

index 4beb8a0ac65436dcd53783860225265ac51f7281..e94862af33fe32dda13eae909cd62c94c0386a85 100644 (file)
@@ -139,7 +139,10 @@ AC_CHECK_HEADERS_ONCE(winsock2.h poll.h sys/wait.h fnmatch.h)
 AM_CONDITIONAL(BUILD_POLL, test "x$ac_cv_header_poll_h" = "xno")
 AM_CONDITIONAL(BUILD_WIN32_WRAPPERS, test "x$ac_cv_header_winsock2_h" = "xyes")
 AS_IF(test "x$ac_cv_header_winsock2_h" = "xyes",
-      AM_LDFLAGS="$AM_LDFLAGS -lws2_32")
+      [AM_LDFLAGS="$AM_LDFLAGS -lws2_32"
+       AM_CFLAGS="$AM_CFLAGS $NO_WERROR"
+       AM_CXXFLAGS="$AM_CXXFLAGS $NO_WERROR"
+      ])
 DETECT_EAGAIN
 
 AC_CONFIG_FILES([