sniper          Wed Sep 11 11:34:44 2002 EDT

  Modified files:              
    /php4/ext/gd        config.m4 
  Log:
  Added build test. Bug: #19345
  
  
Index: php4/ext/gd/config.m4
diff -u php4/ext/gd/config.m4:1.112 php4/ext/gd/config.m4:1.113
--- php4/ext/gd/config.m4:1.112 Sat Sep  7 15:09:09 2002
+++ php4/ext/gd/config.m4       Wed Sep 11 11:34:44 2002
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: config.m4,v 1.112 2002/09/07 19:09:09 sniper Exp $
+dnl $Id: config.m4,v 1.113 2002/09/11 15:34:44 sniper Exp $
 dnl
 
 dnl
@@ -365,6 +365,10 @@
     GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_FCLAGS"
     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)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to