From dd3f2509499e0e6aac4ebf8dab72b5d496c5bfbc Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Mon, 15 Sep 2025 22:38:04 +0200
Subject: [PATCH] Don't link with unnecessary and now removed AGL framework

This framework has apparently been deprecated since quite some time and
was removed from macOS 26, so linking with it resulted in an error.

Don't do this any longer.

Closes #25798.

Upstream-Status: Backport [https://github.com/wxWidgets/wxWidgets/commit/dd3f2509499e0e6aac4ebf8dab72b5d496c5bfbc]
---
 configure    | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 02147ce0254c..7ad2bbeea576 100755
--- ./configure
+++ ./configure
@@ -30865,7 +30865,7 @@ if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
 
 
     if test "$wxUSE_OSX_COCOA" = 1; then
-        OPENGL_LIBS="-framework OpenGL -framework AGL"
+        OPENGL_LIBS="-framework OpenGL"
     elif test "$wxUSE_MSW" = 1; then
         OPENGL_LIBS="-lopengl32"
     elif test "$wxUSE_X11" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_QT" = 1; then
