comparison configure.in @ 27752:7ee8155d48c5

include -lz and -ljpeg when testing for -ltiff
author Ken Raeburn <raeburn@raeburn.org>
date Thu, 17 Feb 2000 20:04:15 +0000
parents 01121d3b9952
children 6599247a653e
comparison
equal deleted inserted replaced
27751:56bbf1dfa7f2 27752:7ee8155d48c5
1738 if test "${HAVE_X11}" = "yes"; then 1738 if test "${HAVE_X11}" = "yes"; then
1739 if test "${with_tiff}" != "no"; then 1739 if test "${with_tiff}" != "no"; then
1740 old_c_flags="${CFLAGS}" 1740 old_c_flags="${CFLAGS}"
1741 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 1741 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
1742 AC_CHECK_HEADER(tiffio.h, 1742 AC_CHECK_HEADER(tiffio.h,
1743 AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , -lX11 -lm)) 1743 tifflibs="-lX11 -lz -lm"
1744 # At least one tiff package requires the jpeg library.
1745 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
1746 AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , $tifflibs))
1744 CFLAGS="${old_c_flags}" 1747 CFLAGS="${old_c_flags}"
1745 fi 1748 fi
1746 1749
1747 if test "${HAVE_TIFF}" = "yes"; then 1750 if test "${HAVE_TIFF}" = "yes"; then
1748 AC_DEFINE(HAVE_TIFF) 1751 AC_DEFINE(HAVE_TIFF)