SDL_image: updated sdl2.m4 for autotools

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

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

diff --git a/acinclude/sdl2.m4 b/acinclude/sdl2.m4
index af101a84..b87437af 100644
--- a/acinclude/sdl2.m4
+++ b/acinclude/sdl2.m4
@@ -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=""
-    SDL2_CONFIG="pkg-config sdl2"
+    SDL2_CONFIG="$PKG_CONFIG sdl2"
   else
     as_save_PATH="$PATH"
     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
diff --git a/configure b/configure
index dcbefec4..1baf8a06 100755
--- a/configure
+++ b/configure
@@ -14093,7 +14093,7 @@ fi
 
   if test "x$sdl_pc" = xyes ; then
     no_sdl=""
-    SDL2_CONFIG="pkg-config sdl2"
+    SDL2_CONFIG="$PKG_CONFIG sdl2"
   else
     as_save_PATH="$PATH"
     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then