Skip to content

Commit fff6b18

Browse files
committed
improve temporary fix for system libgd
- PHP_GD_PNG needed to set include path for png.h - PHP_GD_JPEG needed to set include path for jpeglib.h
1 parent ef165b4 commit fff6b18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/gd/config.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,13 @@ dnl Various checks for GD features
177177
], [ $GD_SHARED_LIBADD ], [char foobar () {}])
178178

179179
else
180+
dnl for png.h in gd_compat (PNG_LIBPNG_VER_STRING)
181+
PHP_GD_PNG
182+
dnl for jpeglib.h in gd_compat (JPEG_LIB_VERSION)
183+
PHP_GD_JPEG
184+
dnl for X11/xpm.h in gd.c (XpmLibraryVersion)
180185
PHP_GD_XPM
186+
dnl for ft2build.h in gd.c (FREETYPE_MAJOR...)
181187
PHP_GD_FREETYPE2
182188

183189
extra_sources="gd_compat.c"

0 commit comments

Comments
 (0)