From d67eb6ff651e86e4501f282ade8f0d7300f8c269 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Tue, 21 Aug 2018 20:00:47 +0100 Subject: [PATCH] Check for bundled libgd --- config.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.m4 b/config.m4 index 873841f..11aa3ac 100644 --- a/config.m4 +++ b/config.m4 @@ -95,6 +95,15 @@ if test $PHP_ZBARCODE != "no"; then AC_MSG_ERROR(not found. Run with --disable-zbarcode-gd to disable this feature) fi + AC_MSG_CHECKING(bundled libgd) + + PHP_GD_BUNDLED_LIBGD_CHECK_HEADER="`$PHP_CONFIG --include-dir`/ext/gd/libgd/gd.h" + + if test -r $PHP_GD_BUNDLED_LIBGD_CHECK_HEADER; then + AC_MSG_RESULT(found.) + AC_DEFINE(HAVE_GD_BUNDLED,1,[ ]) + fi + PHP_ADD_EXTENSION_DEP(zbarcode, gd) AC_DEFINE(HAVE_ZBARCODE_GD,1,[ ]) fi