pngdec: fix build with libpng versions between 1.2 and 1.5.1 (revised)
authorAndreas Frisch <afrisch@make.tv>
Fri, 20 Oct 2017 09:08:24 +0000 (11:08 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 20 Oct 2017 09:47:57 +0000 (11:47 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=765927

configure.ac

index 69ae3d1..fe21ba7 100644 (file)
@@ -702,7 +702,7 @@ translit(dnm, m, l) AM_CONDITIONAL(USE_LIBPNG, true)
 AG_GST_CHECK_FEATURE(LIBPNG, [Portable Network Graphics library], png, [
   AG_GST_PKG_CHECK_MODULES(LIBPNG, libpng >= 1.2)
   if test $HAVE_LIBPNG = "yes"; then
-    PKG_CHECK_MODULES(LIBPNG, libpng >= 1.5.1, [
+    PKG_CHECK_MODULES(LIBPNG_1_5, libpng >= 1.5.1, [
         AC_DEFINE(HAVE_LIBPNG_1_5, 1, [Defined if libpng version is 1.5.1 or newer])
       ], [true])
   fi