From 767afea2502e2dda76ae837648e0788156467da0 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 7 Oct 2011 19:44:03 -0700 Subject: [PATCH] configure: check for a symbol contained in libpng rather than 'main'. this fixes mis-detection when cross compiling. Change-Id: I9560ca4805ef9eea5bd7370aeef2dcf6ed293478 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7173d51b..4aac268f 100644 --- a/configure.ac +++ b/configure.ac @@ -46,7 +46,7 @@ CPPFLAGS="$PNG_INCLUDES $CPPFLAGS" LIBS="$PNG_LIBS $LIBS" AC_CHECK_HEADER(png.h, - AC_CHECK_LIB(png, main, + AC_CHECK_LIB(png, png_get_libpng_ver, [PNG_LIBS="$PNG_LIBS -lpng" PNG_INCLUDES="$PNG_INCLUDES -DWEBP_HAVE_PNG" AC_DEFINE(WEBP_HAVE_PNG, [1], [Set to 1 if PNG library is installed])