summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/config.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4
index ba9f2b383b..0791fa90b9 100644
--- a/ext/gd/config.m4
+++ b/ext/gd/config.m4
@@ -366,6 +366,10 @@ if test "$PHP_GD" != "no"; then
PHP_ADD_INCLUDE($GD_INCLUDE)
fi
+ PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [
+ AC_MSG_ERROR([GD build test failed. Please check the config.log for details.])
+ ], [ -L$GD_LIB $GD_SHARED_LIBADD ])
+
PHP_SUBST(GDLIB_CFLAGS)
PHP_SUBST(GD_SHARED_LIBADD)
fi