summaryrefslogtreecommitdiff
path: root/ext/gd/config.m4
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2019-07-22 09:11:32 +0200
committerRemi Collet <remi@php.net>2019-07-22 09:11:32 +0200
commitfff6b18657c26d18a4154d974908101770c7b66d (patch)
tree78da16a89c4f1746205be6b39b30d3d461a719b6 /ext/gd/config.m4
parentef165b4422f4cef60f963833dddffa26fe1b2759 (diff)
downloadphp-git-fff6b18657c26d18a4154d974908101770c7b66d.tar.gz
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
Diffstat (limited to 'ext/gd/config.m4')
-rw-r--r--ext/gd/config.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4
index 662a9c8c2e..8271eb27b1 100644
--- a/ext/gd/config.m4
+++ b/ext/gd/config.m4
@@ -177,7 +177,13 @@ dnl Various checks for GD features
], [ $GD_SHARED_LIBADD ], [char foobar () {}])
else
+ dnl for png.h in gd_compat (PNG_LIBPNG_VER_STRING)
+ PHP_GD_PNG
+ dnl for jpeglib.h in gd_compat (JPEG_LIB_VERSION)
+ PHP_GD_JPEG
+ dnl for X11/xpm.h in gd.c (XpmLibraryVersion)
PHP_GD_XPM
+ dnl for ft2build.h in gd.c (FREETYPE_MAJOR...)
PHP_GD_FREETYPE2
extra_sources="gd_compat.c"