[build] Look for libpng.pc as well when configuring.

The OpenBSD png package installs only libpng.pc and not
any of libpng{13,12,10}.pc.
This commit is contained in:
M Joonas Pihlaja 2009-06-20 06:16:51 -06:00
parent 5733d8d6c3
commit d544828934

View file

@ -176,7 +176,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 ; do
for l in libpng12 libpng13 libpng10 libpng; do
if $PKG_CONFIG --exists $l ; then
png_REQUIRES=$l
use_png=yes