summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index aee37a47..be9c9c42 100644
--- a/configure.ac
+++ b/configure.ac
@@ -219,7 +219,10 @@ if test "x$enable_png" = "xyes"; then
dnl Check if the user hasn't set the variable $PNG_CONFIG
if test -z "$PNG_CONFIG"; then
- PNG_CONFIG=`which libpng14-config`
+ PNG_CONFIG=`which libpng16-config`
+ if test -z "$PNG_CONFIG"; then
+ PNG_CONFIG=`which libpng14-config`
+ fi
if test -z "$PNG_CONFIG"; then
PNG_CONFIG=`which libpng12-config`
fi
@@ -245,7 +248,7 @@ dnl For debugging and to be user friendly
AC_MSG_CHECKING([for libpng version])
png_version=`$PNG_CONFIG --version`
case $png_version in
- 1.[[024]].*) AC_MSG_RESULT([$png_version]) ;;
+ 1.[[0246]].*) AC_MSG_RESULT([$png_version]) ;;
*) AC_MSG_RESULT([$png_version (unrecognised version)]) ;;
esac