From 5eb0b5d627bf821b410db46affe513a168a35c7d 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
(cherry picked from commit 0795d677a133c42b0ccb1a3a0952998839ee2d56)
---
acinclude/sdl2.m4 | 2 +-
configure | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/acinclude/sdl2.m4 b/acinclude/sdl2.m4
index af101a84f..b87437af8 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 d050102b5..8a16b7fe7 100755
--- a/configure
+++ b/configure
@@ -16747,7 +16747,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