diff --git a/configure b/configure
index dd311a5..fdc482f 100755
--- a/configure
+++ b/configure
@@ -3583,7 +3583,7 @@
MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
-MAGICK_SVN_REVISION=5221
+MAGICK_SVN_REVISION=5245
@@ -30020,7 +30020,6 @@
-if test "$have_zlib" == 'yes'; then
#
# Check for PNG delegate library.
#
@@ -30040,7 +30039,7 @@
have_png='no'
PNG_LIBS=''
-if test "$with_png" != 'no'; then
+if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
$as_echo "-------------------------------------------------------------" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
@@ -30060,12 +30059,12 @@
if test $passed -gt 0; then
for var in 5 4 2 '' ; do
- if test "x${var}" == 'x' ; then
- pnglib='png'
- else
- pnglib="png1${var}"
- fi
if test "$have_png" == 'no' ; then
+ if test "x${var}" == 'x' ; then
+ pnglib='png'
+ else
+ pnglib="png1${var}"
+ fi
# Test for compatible LIBPNG library
failed=0
@@ -30382,18 +30381,18 @@
$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
if test $passed -gt 0 ; then
if test $failed -gt 0 ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
$as_echo "no -- some components failed test" >&6; }
- have_png='no (failed tests)'
+ have_png='no (failed tests)'
else
- PNG_LIBS="-l${pnglib}"
- LIBS="$PNG_LIBS $LIBS"
+ PNG_LIBS="-l${pnglib}"
+ LIBS="$PNG_LIBS $LIBS"
$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
- have_png='yes'
+ have_png='yes'
fi
fi
fi
@@ -30412,10 +30411,7 @@
fi
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: PNG requires zlib support" >&5
-$as_echo "PNG requires zlib support" >&6; }
-fi
+
#