Fix detection of MacOS X native provided libpng
authorNelson Ferreira <nelson.ferreira@ieee.org>
Mon, 2 Jan 2012 22:45:22 +0000 (17:45 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Mon, 2 Jan 2012 22:45:22 +0000 (17:45 -0500)
* 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 <nelson.ferreira@ieee.org>
m4/sxe-mm.m4

index a96b1a9..cc67a7f 100644 (file)
@@ -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 <png.h>