summaryrefslogtreecommitdiff
path: root/ext/gd/config.m4
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2013-04-24 16:15:11 +0200
committerRemi Collet <remi@php.net>2013-04-24 16:15:11 +0200
commit3a8ceed844910146398572d1336ac1c23c5006f2 (patch)
treec36ffc19a9bbbb832553abc2f43428fe19f728aa /ext/gd/config.m4
parentdd0399f5c6d2acfe53621f9e5daf61c57e8e66c6 (diff)
downloadphp-git-3a8ceed844910146398572d1336ac1c23c5006f2.tar.gz
allow use of gdImageCreateFromJpegEx with system libgd
Diffstat (limited to 'ext/gd/config.m4')
-rw-r--r--ext/gd/config.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4
index e27411d5c8..9152c1926f 100644
--- a/ext/gd/config.m4
+++ b/ext/gd/config.m4
@@ -287,6 +287,7 @@ AC_DEFUN([PHP_GD_CHECK_VERSION],[
PHP_CHECK_LIBRARY(gd, gdImageConvolution, [AC_DEFINE(HAVE_GD_IMAGE_CONVOLUTION, 1, [ ])], [], [ -L$GD_LIB $GD_SHARED_LIBADD ])
PHP_CHECK_LIBRARY(gd, gdImagePixelate, [AC_DEFINE(HAVE_GD_IMAGE_PIXELATE, 1, [ ])], [], [ -L$GD_LIB $GD_SHARED_LIBADD ])
PHP_CHECK_LIBRARY(gd, gdImageFlipBoth, [AC_DEFINE(HAVE_GD_IMAGE_FLIP, 1, [ ])], [], [ -L$GD_LIB $GD_SHARED_LIBADD ])
+ PHP_CHECK_LIBRARY(gd, gdImageCreateFromJpegEx,[AC_DEFINE(HAVE_GD_JPGEX, 1, [ ])], [], [ -L$GD_LIB $GD_SHARED_LIBADD ])
])
dnl
@@ -358,6 +359,7 @@ dnl enable the support in bundled GD library
if test -n "$GD_JPEG_DIR"; then
AC_DEFINE(HAVE_GD_JPG, 1, [ ])
+ AC_DEFINE(HAVE_GD_JPGEX, 1, [ ])
GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG"
fi