From 72db748dd996b463daf7896d287417c97149c5ac Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Thu, 30 Jun 2022 06:59:03 -0700 Subject: Updates the MinGW configure.ac check for the Winsock library (#1837) Ubuntu 22.04 complains about AC_HAVE_LIBRARY being deprecated. This updates the macro to AC_CHECK_LIB, where the specified function is GetUserName(). This change only affects MinGW --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 575628f..c25b711 100644 --- a/configure.ac +++ b/configure.ac @@ -1352,7 +1352,8 @@ esac ## Windows case "`uname`" in MINGW*) - AC_HAVE_LIBRARY([ws2_32]) + # The Winsock library + AC_CHECK_LIB([ws2_32], [GetUserName]) ;; esac -- cgit v0.12