From cfa38d82790664fe638a5edf0bdbfba9dfc42bb0 Mon Sep 17 00:00:00 2001 From: Nelson Ferreira Date: Mon, 2 Jan 2012 17:45:22 -0500 Subject: [PATCH] Fix detection of MacOS X native provided libpng * m4/sxe-mm.m4 (_SXE_MM_CHECK_PNG_VERSION): Use the previously detected PNG LDFLAGS, CFLAGS and LIBS when determining version. Signed-off-by: Nelson Ferreira --- m4/sxe-mm.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/m4/sxe-mm.m4 b/m4/sxe-mm.m4 index a96b1a9..cc67a7f 100644 --- a/m4/sxe-mm.m4 +++ b/m4/sxe-mm.m4 @@ -186,8 +186,9 @@ AC_DEFUN([_SXE_MM_CHECK_PNG_VERSION], [dnl SXE_MSG_CHECKING([for workable png version information]) SXE_DUMP_LIBS - LDFLAGS="$LDFLAGS $PNG_LDFLAGS" - LIBS="$LIBS $PNG_LIBS" + CPPFLAGS="$PNG_CPPFLAGS" + LDFLAGS="$PNG_LDFLAGS" + LIBS="$PNG_LIBS" AC_RUN_IFELSE([AC_LANG_SOURCE([[ #if defined HAVE_PNG_H # include -- 2.25.1