SDL_ttf: autotools: link to CoreText, CoreGraphics and CoreFoundation frameworks for all Apple targets

From e74edbc52ccae38ef5d60e2ea97a9b1e366f93eb Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 5 Jul 2026 05:01:02 +0300
Subject: [PATCH] autotools: link to CoreText, CoreGraphics and CoreFoundation
 frameworks for all Apple targets

---
 configure    | 8 +-------
 configure.ac | 8 +-------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/configure b/configure
index c5128b41..306b7aa6 100755
--- a/configure
+++ b/configure
@@ -20004,14 +20004,8 @@ printf "%s\n" "#define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__" >>con
 			TTF_LIBS="$TTF_LIBS -lusp10 -lgdi32 -lrpcrt4"
 			PC_LIBS="$PC_LIBS -lusp10 -lgdi32 -lrpcrt4"
 		  ;;
-		  *-*-darwin*)
+		  *-*-darwin*|*-ios-*))
 			# for coretext support:
-			TTF_LIBS="$TTF_LIBS -framework ApplicationServices"
-			PC_LIBS="$PC_LIBS -framework ApplicationServices"
-		  ;;
-		  *-ios-*)
-			# for coretext support:
-			# On iOS CoreText and CoreGraphics are stand-alone frameworks
 			TTF_LIBS="$TTF_LIBS -framework CoreText -framework CoreGraphics -framework CoreFoundation"
 			PC_LIBS="$PC_LIBS -framework CoreText -framework CoreGraphics -framework CoreFoundation"
 		  ;;
diff --git a/configure.ac b/configure.ac
index f813fb0e..97a49638 100644
--- a/configure.ac
+++ b/configure.ac
@@ -248,14 +248,8 @@ if test x$enable_harfbuzz = xyes; then
 			TTF_LIBS="$TTF_LIBS -lusp10 -lgdi32 -lrpcrt4"
 			PC_LIBS="$PC_LIBS -lusp10 -lgdi32 -lrpcrt4"
 		  ;;
-		  *-*-darwin*)
+		  *-*-darwin*|*-ios-*))
 			# for coretext support:
-			TTF_LIBS="$TTF_LIBS -framework ApplicationServices"
-			PC_LIBS="$PC_LIBS -framework ApplicationServices"
-		  ;;
-		  *-ios-*)
-			# for coretext support:
-			# On iOS CoreText and CoreGraphics are stand-alone frameworks
 			TTF_LIBS="$TTF_LIBS -framework CoreText -framework CoreGraphics -framework CoreFoundation"
 			PC_LIBS="$PC_LIBS -framework CoreText -framework CoreGraphics -framework CoreFoundation"
 		  ;;