From: foobar Date: Wed, 11 Sep 2002 15:34:44 +0000 (+0000) Subject: Added build test. Bug: #19345 X-Git-Tag: MODERN_SYMMETRIC_SESSION_BEHAVIOUR_20021003~372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e54bc671dd89ed1d1593e41d68414e2990e6bff8;p=php Added build test. Bug: #19345 --- 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