comparison configure.in @ 33668:a6951040bb8e

(HAVE_PNG): Check for the presence of png_get_channels to rule out older PNG libs.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 21 Nov 2000 10:41:33 +0000
parents cdbdcca9452f
children 8501df083ce8
comparison
equal deleted inserted replaced
33667:646b893652e6 33668:a6951040bb8e
1837 if test "${HAVE_X11}" = "yes"; then 1837 if test "${HAVE_X11}" = "yes"; then
1838 if test "${with_png}" != "no"; then 1838 if test "${with_png}" != "no"; then
1839 old_c_flags="${CFLAGS}" 1839 old_c_flags="${CFLAGS}"
1840 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 1840 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
1841 AC_CHECK_HEADER(png.h, 1841 AC_CHECK_HEADER(png.h,
1842 AC_CHECK_LIB(png, png_set_expand, HAVE_PNG=yes, , -lX11 -lz -lm)) 1842 AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lX11 -lz -lm))
1843 CFLAGS="${old_c_flags}" 1843 CFLAGS="${old_c_flags}"
1844 fi 1844 fi
1845 1845
1846 if test "${HAVE_PNG}" = "yes"; then 1846 if test "${HAVE_PNG}" = "yes"; then
1847 AC_DEFINE(HAVE_PNG) 1847 AC_DEFINE(HAVE_PNG)