diff options
author | foobar <sniper@php.net> | 2003-01-20 10:39:29 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-01-20 10:39:29 +0000 |
commit | f6cee90129eca155642030fdae98384feddbf7de (patch) | |
tree | 1a17c91bf97a94cfec3447d20a2e676969fd71a7 | |
parent | 7eeea7e55d10ccb06b721aa4c519026bcaf41e4b (diff) | |
download | php-git-f6cee90129eca155642030fdae98384feddbf7de.tar.gz |
Add test for png.h
-rw-r--r-- | ext/gd/config.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index fcbedc73e7..ddea19921e 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -83,7 +83,11 @@ AC_DEFUN(PHP_GD_PNG,[ if test "$PHP_ZLIB_DIR" = "no"; then AC_MSG_ERROR([PNG support requires ZLIB. Use --with-zlib-dir=<DIR>]) fi - + + if test ! -f $GD_PNG_DIR/include/png.h; then + AC_MSG_ERROR([png.h not found.]) + fi + PHP_CHECK_LIBRARY(png,png_write_image, [ PHP_ADD_INCLUDE($GD_PNG_DIR/include) |