shithub: sox

Download patch

ref: a6c3f58f5949de71121b31a4469f2bfc42566442
parent: 5847d3534307109550012fe725a4d35ef094fedf
author: cbagwell <cbagwell>
date: Wed Dec 9 23:23:32 EST 2009

Look for libpng12 as backup to libpng since some people may not package
up both versions.

--- a/configure.ac
+++ b/configure.ac
@@ -241,7 +241,7 @@
 if test "$with_png" != "no"; then
     using_png=yes
     AC_CHECK_HEADER(png.h,
-        [AC_CHECK_LIB(png, png_set_rows, PNG_LIBS="$PNG_LIBS -lpng -lz" ,using_png=no, -lz)],
+        [AC_CHECK_LIB(png, png_set_rows, PNG_LIBS="$PNG_LIBS -lpng -lz" ,[AC_CHECK_LIB(png12, png_set_rows, PNG_LIBS="$PNG_LIBS -lpng12 -lz" ,using_png=no, -lz)], -lz)],
         using_png=no)
     if test "$with_png" = "yes" -a "$using_png" = "no"; then
         AC_MSG_FAILURE([cannot find png])