From 7e5d654f3d4420d970d0462d08e5c52b6451a529 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 25 Aug 2011 23:04:02 +0900 Subject: [PATCH] Fix the accidental nukage of PNG_LIBS. Kind of silly setting PNG_LIBS to -lpng after going to the effort of using pkg-config now, isn't it :P --- config.d/compression.m4 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config.d/compression.m4 b/config.d/compression.m4 index 3b7484a2b..b13574f64 100644 --- a/config.d/compression.m4 +++ b/config.d/compression.m4 @@ -80,12 +80,11 @@ if test "x$enable_png" != "xno"; then else AC_CHECK_LIB(png, png_set_read_fn, HAVE_PNG=yes, HAVE_PNG=no, [$LIBS]) if test "x$HAVE_PNG" = "xyes"; then - AC_CHECK_HEADER(png.h, HAVE_PNG=yes, HAVE_PNG=no) + AC_CHECK_HEADER(png.h, HAVE_PNG=yes PNG_LIBS="-lpng", HAVE_PNG=no) fi fi fi AC_SUBST(PNG_LIBS) if test "x$HAVE_PNG" = "xyes"; then - PNG_LIBS="-lpng" AC_DEFINE(HAVE_PNG, 1, [Define if you have libpng]) fi