SDL-1.2: test/acinclude.m4 (AM_PATH_SDL): apply recent sdl.m4 PKG_CONFIG patch.

From ac5c29be587b671728a99ec91198e7fe3300dfab Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 10 Jan 2024 20:23:51 +0300
Subject: [PATCH] test/acinclude.m4 (AM_PATH_SDL): apply recent sdl.m4
 PKG_CONFIG patch.

---
 test/acinclude.m4 | 4 ++--
 test/configure    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/acinclude.m4 b/test/acinclude.m4
index 5a2aeeafd..97a814485 100644
--- a/test/acinclude.m4
+++ b/test/acinclude.m4
@@ -5,7 +5,7 @@
 # stolen from Manish Singh
 # Shamelessly stolen from Owen Taylor
 
-# serial 2
+# serial 3
 
 dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
 dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
@@ -45,7 +45,7 @@ AC_ARG_ENABLE(sdltest, [  --disable-sdltest       Do not try to compile and run
 
   if test "x$sdl_pc" = xyes ; then
     no_sdl=""
-    SDL_CONFIG="pkg-config sdl"
+    SDL_CONFIG="$PKG_CONFIG sdl"
   else
     as_save_PATH="$PATH"
     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
diff --git a/test/configure b/test/configure
index c3b83cde8..1e0dc1f7e 100755
--- a/test/configure
+++ b/test/configure
@@ -3217,7 +3217,7 @@ fi
 
   if test "x$sdl_pc" = xyes ; then
     no_sdl=""
-    SDL_CONFIG="pkg-config sdl"
+    SDL_CONFIG="$PKG_CONFIG sdl"
   else
     as_save_PATH="$PATH"
     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then