[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.21-584-g1e41756
eric at webkit.org
eric at webkit.org
Fri Feb 26 22:18:30 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit 830df558e7c317a1912d39df08497236365f09d2
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Feb 12 07:52:40 2010 +0000
2010-02-11 Fridrich Strba <fridrich.strba at bluewin.ch>
Reviewed by Gustavo Noronha Silva.
Detect properly different versions of libpng out there.
* configure.ac:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/ChangeLog b/ChangeLog
index 28e5c4e..ddae0cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-02-11 Fridrich Strba <fridrich.strba at bluewin.ch>
+
+ Reviewed by Gustavo Noronha Silva.
+
+ Detect properly different versions of libpng out there.
+
+ * configure.ac:
+
2010-02-11 Xan Lopez <xlopez at igalia.com>
Try to fix GTK+ build.
diff --git a/configure.ac b/configure.ac
index 67536f6..d46da24 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,12 +131,19 @@ fi
AC_SUBST([JPEG_LIBS])
# Check for libpng the way Gtk+ does it
-AC_MSG_CHECKING(for libpng12)
-if $PKG_CONFIG --exists libpng12 ; then
+for l in libpng libpng14 libpng12; do
+ AC_MSG_CHECKING(for $l)
+ if $PKG_CONFIG --exists $l ; then
AC_MSG_RESULT(yes)
- PNG_LIBS=`$PKG_CONFIG --libs libpng12`
-else
- AC_MSG_RESULT(no)
+ PNG_LIBS=`$PKG_CONFIG --libs $l`
+ png_ok=yes
+ break
+ else
+ AC_MSG_RESULT(no)
+ png_ok=no
+ fi
+done
+if test "$png_ok" != yes; then
AC_CHECK_LIB(png, png_read_info,
[AC_CHECK_HEADER(png.h,
png_ok=yes,
@@ -155,7 +162,7 @@ else
AC_MSG_ERROR([PNG library (libpng) not found])
fi
else
- AC_MSG_ERROR([PNG library (libpng) not found])
+ AC_MSG_ERROR([PNG library (libpng) not found])
fi
fi
AC_SUBST([PNG_LIBS])
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list