[PATCH] build: prefer libpng14 over older versions

Maarten Bosmans mkbosmans at gmail.com
Sat Aug 28 04:39:21 PDT 2010

Also move libpng to the front of the list, so that the default
version of the system is first checked.
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index ce5afc1..beaad9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -279,7 +279,7 @@ CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [
   AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for
using pkg-config])
   if test "x$png_REQUIRES" = x; then
     # libpng13 is GnuWin32's libpng-1.2.8 :-(
-    for l in libpng12 libpng13 libpng10 libpng; do
+    for l in libpng libpng14 libpng12 libpng13 libpng10; do
       if $PKG_CONFIG --exists $l ; then

More information about the cairo mailing list