From c1aaf2abe9c7766730ce3ef093b74f4d81686bb3 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 19 Nov 2025 23:52:34 +0100 Subject: [PATCH] ext/gd: Enable HAVE_GD_GET_INTERPOLATION Bundled libgd has gdImageGetInterpolationMethod() function. It is available as of libgd 2.1.1. --- ext/gd/config.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index 0d024c9ea1cf3..a997238b7f75c 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -265,6 +265,10 @@ if test "$PHP_GD" != "no"; then AC_DEFINE([HAVE_GD_BUNDLED], [1], [Define to 1 if gd extension uses GD library bundled in PHP.]) + AC_DEFINE([HAVE_GD_GET_INTERPOLATION], [1], + [Define to 1 if GD library has the 'gdImageGetInterpolationMethod' + function.]) + dnl Various checks for GD features PHP_SETUP_ZLIB([GD_SHARED_LIBADD]) PHP_GD_PNG