From a5706f9c086c3513889a58f2a84dd3fe86df390e Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 8 Mar 2019 21:03:34 +0400 Subject: fixed check for ws2_32 and winmm libs --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2bbdaca..b1efcd5 100644 --- a/configure.ac +++ b/configure.ac @@ -19,8 +19,8 @@ AS_CASE([$host], [*-*-freebsd*], [LDFLAGS="$LDFLAGS -L/usr/local/lib" CPPFLAGS="$CPPFLAGS -I/usr/local/include"], [*-apple-darwin*], [LDFLAGS="$LDFLAGS -headerpad_max_install_names"], [*-w64-mingw*], [ - LIBS="$LIBS -lws2_32" - AC_CHECK_LIB([ws2_32], [closesocket], [], []) + AC_CHECK_LIB([ws2_32], [main], [LIBS="$LIBS -lws2_32"], []) + AC_CHECK_LIB([winmm], [main], [LIBS="$LIBS -lwinmm"], []) ], [] ) -- cgit v1.2.1