synfig/synfig-0.64.0-libpng-1.6.patch

21 lines
742 B
Diff

--- synfig-0.64.0.orig/configure.ac 2013-05-09 18:32:41.000000000 +0200
+++ synfig-0.64.0/configure.ac 2013-09-20 15:35:06.273090631 +0200
@@ -452,12 +452,13 @@
TARGET_PNG="yes"
TARGET_MNG="yes"
-AC_CHECK_LIB(png14, png_write_row,[
- PNG_LIBS="-lpng14"
- AC_DEFINE(HAVE_LIBPNG14,[], [ Define if PNG 1.4 library is available ])
+AC_CHECK_LIB(png16, png_write_row,[
+ PNG_LIBS="-lpng16"
+ AC_DEFINE(HAVE_LIBPNG16,[], [ Define if PNG 1.6 library is available ])
AC_DEFINE(HAVE_LIBPNG,[], [ Define if PNG library is available ])
AC_SUBST(PNG_LIBS)
- AM_CONDITIONAL(HAVE_LIBPNG14,true)
+ AM_CONDITIONAL(HAVE_LIBPNG16,true)
+ AM_CONDITIONAL(HAVE_LIBPNG14,false)
AM_CONDITIONAL(HAVE_LIBPNG,true)
],[
AC_CHECK_LIB(png12, png_write_row,[