From 25dfe4a2efd0db5995427e5a5b816dbe1d65e3da Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 31 May 2024 12:23:29 +0200 Subject: [PATCH] configure: always use ws2_32 and iphlpapi for Windows networking There is no reason to test connect is in some system library. And the detection fails for mingw-12 UWP. --- configure.ac | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index ac1a64cfef..6380848432 100644 --- a/configure.ac +++ b/configure.ac @@ -803,13 +803,13 @@ AC_CHECK_TYPES([max_align_t],,, dnl Checks for socket stuff VLC_SAVE_FLAGS SOCKET_LIBS="" -AC_SEARCH_LIBS(connect, [socket], [ - AS_IF([test "$ac_cv_search_connect" != "none required"], [ - SOCKET_LIBS="$ac_cv_search_connect" - ]) -], [ - AS_IF([test "${SYS}" = "mingw32"], [ - SOCKET_LIBS="-lws2_32 -liphlpapi" +AS_IF([test "${SYS}" = "mingw32"], [ + SOCKET_LIBS="-lws2_32 -liphlpapi" +],[ + AC_SEARCH_LIBS(connect, [socket], [ + AS_IF([test "$ac_cv_search_connect" != "none required"], [ + SOCKET_LIBS="$ac_cv_search_connect" + ]) ]) ])