From 78cde6dd63222f9345dda38e8b7dca836aa55803 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 8219bda2..19d4d3c1 100755
--- a/configure
+++ b/configure
@@ -15183,7 +15183,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