From 3d516b841a5c643e049804c72c9193229535fb30 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 26 Aug 2022 09:12:56 -0700 Subject: [PATCH] Fixed macOS framework detection in sdl2.m4 Fixes https://github.com/libsdl-org/SDL/issues/6141 --- sdl2.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl2.m4 b/sdl2.m4 index 710c2516e..75b60f6ea 100644 --- a/sdl2.m4 +++ b/sdl2.m4 @@ -70,8 +70,8 @@ AC_ARG_VAR(SDL2_FRAMEWORK, [Path to SDL2.framework]) sdl_framework=$SDL2_FRAMEWORK else for d in / ~/ /System/; do - if test -d "$dLibrary/Frameworks/SDL2.framework"; then - sdl_framework="$dLibrary/Frameworks/SDL2.framework" + if test -d "${d}Library/Frameworks/SDL2.framework"; then + sdl_framework="${d}Library/Frameworks/SDL2.framework" fi done fi