if test -e main/image/NOINSTALL ; then dnl Not installing so don't test for libjpeg/libpng/libMagick++. STATUS=none else AC_DEFINE(have_jpeg) AC_CHECK_HEADER(jpeglib.h, have_jpeg=yes, have_jpeg=no) if test $have_jpeg = yes ; then OF_CHECK_LIB(jpeg, jpeg_std_error, have_jpeg=yes, have_jpeg=no) if test $have_jpeg = no ; then STATUS="libjpeg not found" else STATUS="jpeg" AC_SUBST(DEFHAVE_JPEG) DEFHAVE_JPEG="HAVE_JPEG=1" fi else STATUS="jpeglib.h not found" fi AC_DEFINE(have_png) AC_CHECK_HEADER(png.h, have_png=yes, have_png=no) if test $have_png = yes ; then OF_CHECK_LIB(png, png_set_sig_bytes, have_png=yes, have_png=no) if test $have_png = no ; then STATUS="$STATUS, libpng not found" else STATUS="$STATUS, png" AC_SUBST(DEFHAVE_PNG) DEFHAVE_PNG="HAVE_PNG=1" fi else STATUS="$STATUS, png.h not found" fi AC_CHECK_PROG(HAVE_MAGICKXX, Magick++-config, yes) if test $HAVE_MAGICKXX ; then STATUS="$STATUS, ImageMagick++" AC_SUBST(DEFHAVE_MAGICKXX) DEFHAVE_MAGICKXX="HAVE_MAGICKXX=1" else STATUS="$STATUS, ImageMagick++ not found" fi fi dnl Append the status message to the global status message. This will dnl be displayed at the end of configuration so that the user doesn't dnl have to scan the list for critical details. STATUS_MSG="$STATUS_MSG read/write image formats: $STATUS"