]> granicus.if.org Git - php/commitdiff
Fixed bug #64785 : restore 5.4 behaviour, libpng is mandatory
authorRemi Collet <remi@php.net>
Wed, 8 May 2013 05:37:40 +0000 (07:37 +0200)
committerRemi Collet <remi@php.net>
Wed, 8 May 2013 05:37:40 +0000 (07:37 +0200)
ext/gd/config.m4

index 957284e78fc898bf2108417b948595a7a57ef2a5..50660af6cdeacc95f62e81c4c06c053f78355a66 100644 (file)
@@ -266,6 +266,10 @@ dnl
 dnl Common for both builtin and external GD
 dnl
 if test "$PHP_GD" != "no"; then
+
+dnl PNG is required by GD library
+  test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes
+
 dnl Various checks for GD features
   PHP_GD_ZLIB
   PHP_GD_TTSTR
@@ -292,9 +296,6 @@ if test "$PHP_GD" = "yes"; then
 dnl check for fabsf and floorf which are available since C99
   AC_CHECK_FUNCS(fabsf floorf)
 
-dnl PNG is required by GD library
-  test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes
-
 dnl These are always available with bundled library
   AC_DEFINE(HAVE_GD_BUNDLED,          1, [ ])
   AC_DEFINE(HAVE_GD_PNG,              1, [ ])