SDL_image: updated sdl.m4 for autotools

From 7adb1a70f97d62f1bb307bfb4e6c2fa0bc8c33ab Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 23 Apr 2024 08:10:00 +0300
Subject: [PATCH] updated sdl.m4 for autotools

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

diff --git a/acinclude/sdl.m4 b/acinclude/sdl.m4
index 30e1f214..53f78896 100644
--- a/acinclude/sdl.m4
+++ b/acinclude/sdl.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/configure b/configure
index 1dba3fc3..1a84eb79 100755
--- a/configure
+++ b/configure
@@ -12661,7 +12661,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