This seems to have been lost in the changes from the current emacs-24
branch version.
+2014-05-18 Glenn Morris <rgm@gnu.org>
+
+ * configure.ac: Do not bother testing for png in non-graphical builds.
+
2014-05-18 Paul Eggert <eggert@cs.ucla.edu>
Port ctags+etags build to Sun C 5.12.
# mingw32 loads the library dynamically.
if test "$opsys" = mingw32; then
AC_CHECK_HEADER([png.h], [HAVE_PNG=yes])
- else
+ elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
AC_MSG_CHECKING([for png])
png_cflags=`(libpng-config --cflags) 2>&AS_MESSAGE_LOG_FD` &&
png_libs=`(libpng-config --libs) 2>&AS_MESSAGE_LOG_FD` || {