shithub: sox

Download patch

ref: 4f64ef5595d8cd6ee1760ba76420d74f7bd1ea95
parent: 7924732ce02d464f2557b6df5c393edc5194ffb0
author: cbagwell <cbagwell>
date: Tue Jul 29 22:50:22 EDT 2008

Give missing -lz hint when looking for png.  Needed for static png libraries and strict linking.

--- a/configure.ac
+++ b/configure.ac
@@ -427,7 +427,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)],
+        [AC_CHECK_LIB(png, png_set_rows, PNG_LIBS="$PNG_LIBS -lpng -lz" ,using_png=no, -lz)],
         using_png=no)
     if test "$with_png" = "yes" -a "$using_png" = "no"; then
         AC_MSG_FAILURE([cannot find png])