From f4c13872492b1b5ea3d1d06b7b70f4d3562aa985 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 14 Jul 2009 14:02:09 +0000 Subject: Improve linker check for Winsock library name. On Windows CE, the Winsock library name is ws2, not ws2_32. patch by Martin Storsjö, martin martin st MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 19431 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 5a914fbdec..a700220fbc 100755 --- a/configure +++ b/configure @@ -2216,9 +2216,11 @@ if enabled network; then if check_header arpa/inet.h ; then check_func closesocket elif check_header winsock2.h ; then - network_extralibs="-lws2_32" + check_func_headers winsock2.h closesocket -lws2 && \ + network_extralibs="-lws2" || \ + { check_func_headers winsock2.h closesocket -lws2_32 && \ + network_extralibs="-lws2_32"; } check_type ws2tcpip.h socklen_t - check_func_headers winsock2.h closesocket else disable network fi -- cgit v1.2.3