22366
# Check whether --with-tiff was given.
22367
if test "${with_tiff+set}" = set; then :
22368
withval=$with_tiff;
22371
# Treat --without-tiff like --without-tiff-includes --without-tiff-libraries.
22372
if test "$with_tiff" = "no"; then
22378
# Check whether --with-tiff-includes was given.
22379
if test "${with_tiff_includes+set}" = set; then :
22380
withval=$with_tiff_includes; TIFF_INCLUDES="-I$withval"
22384
# Check whether --with-tiff-libraries was given.
22385
if test "${with_tiff_libraries+set}" = set; then :
22386
withval=$with_tiff_libraries; TIFF_LIBS="-L$withval -ltiff"
22390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
22391
$as_echo_n "checking for TIFF... " >&6; }
22394
if test "$TIFF_INCLUDES" = ""; then
22395
# Check the standard search path
22396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397
/* end confdefs.h. */
22407
if ac_fn_c_try_compile "$LINENO"; then :
22413
# tiff.h is not in the standard search path, try
22415
tiff_save_INCLUDES="$INCLUDES"
22417
INCLUDES="-I${prefix}/include $INCLUDES"
22419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22420
/* end confdefs.h. */
22430
if ac_fn_c_try_compile "$LINENO"; then :
22432
TIFF_INCLUDES="-I${prefix}/include"
22439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441
INCLUDES=$tiff_save_INCLUDES
22444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447
# Now for the libraries
22448
if test "$TIFF_LIBS" = ""; then
22449
tiff_save_LIBS="$LIBS"
22450
tiff_save_INCLUDES="$INCLUDES"
22452
LIBS="-ltiff -lm $LIBS"
22453
INCLUDES="$TIFF_INCLUDES $INCLUDES"
22455
# Try the standard search path first
22456
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22457
/* end confdefs.h. */
22467
if ac_fn_c_try_link "$LINENO"; then :
22473
# libtiff is not in the standard search path, try $prefix
22475
LIBS="-L${prefix}/lib $LIBS"
22477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22478
/* end confdefs.h. */
22488
if ac_fn_c_try_link "$LINENO"; then :
22490
TIFF_LIBS="-L${prefix}/lib -ltiff"
22497
rm -f core conftest.err conftest.$ac_objext \
22498
conftest$ac_exeext conftest.$ac_ext
22501
rm -f core conftest.err conftest.$ac_objext \
22502
conftest$ac_exeext conftest.$ac_ext
22504
LIBS="$tiff_save_LIBS"
22505
INCLUDES="$tiff_save_INCLUDES"
22511
# Print a helpful message
22512
tiff_libraries_result="$TIFF_LIBS"
22513
tiff_includes_result="$TIFF_INCLUDES"
22515
if test x"$tiff_libraries_result" = x""; then
22516
tiff_libraries_result="in default path"
22518
if test x"$tiff_includes_result" = x""; then
22519
tiff_includes_result="in default path"
22522
if test "$tiff_libraries_result" = "no"; then
22523
tiff_libraries_result="(none)"
22525
if test "$tiff_includes_result" = "no"; then
22526
tiff_includes_result="(none)"
22529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $tiff_libraries_result, headers $tiff_includes_result" >&5
22530
$as_echo "libraries $tiff_libraries_result, headers $tiff_includes_result" >&6; }
22532
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22533
if test "$TIFF_INCLUDES" != "no" && test "$TIFF_LIBS" != "no"; then
22535
$as_echo "#define HAVE_TIFF 1" >>confdefs.h
22541
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtiff not found; disabling TIFF support" >&5
22542
$as_echo "$as_me: WARNING: libtiff not found; disabling TIFF support" >&2;}
22552
22432
ZIP_INCLUDES=""
22619
# look for TIFF with pkg-config ... fall back to our tester
22620
# pkgconfig support for libtiff starts with libtiff-4
22622
# Check whether --with-tiff was given.
22623
if test "${with_tiff+set}" = set; then :
22624
withval=$with_tiff;
22628
if test x"$with_tiff" != "xno"; then
22631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
22632
$as_echo_n "checking for TIFF... " >&6; }
22634
if test -n "$TIFF_CFLAGS"; then
22635
pkg_cv_TIFF_CFLAGS="$TIFF_CFLAGS"
22636
elif test -n "$PKG_CONFIG"; then
22637
if test -n "$PKG_CONFIG" && \
22638
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5
22639
($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5
22641
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22642
test $ac_status = 0; }; then
22643
pkg_cv_TIFF_CFLAGS=`$PKG_CONFIG --cflags "libtiff-4" 2>/dev/null`
22644
test "x$?" != "x0" && pkg_failed=yes
22651
if test -n "$TIFF_LIBS"; then
22652
pkg_cv_TIFF_LIBS="$TIFF_LIBS"
22653
elif test -n "$PKG_CONFIG"; then
22654
if test -n "$PKG_CONFIG" && \
22655
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5
22656
($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5
22658
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22659
test $ac_status = 0; }; then
22660
pkg_cv_TIFF_LIBS=`$PKG_CONFIG --libs "libtiff-4" 2>/dev/null`
22661
test "x$?" != "x0" && pkg_failed=yes
22671
if test $pkg_failed = yes; then
22672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22673
$as_echo "no" >&6; }
22675
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22676
_pkg_short_errors_supported=yes
22678
_pkg_short_errors_supported=no
22680
if test $_pkg_short_errors_supported = yes; then
22681
TIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtiff-4" 2>&1`
22683
TIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtiff-4" 2>&1`
22685
# Put the nasty error message in config.log where it belongs
22686
echo "$TIFF_PKG_ERRORS" >&5
22695
# Check whether --with-tiff was given.
22696
if test "${with_tiff+set}" = set; then :
22697
withval=$with_tiff;
22700
# Treat --without-tiff like --without-tiff-includes --without-tiff-libraries.
22701
if test "$with_tiff" = "no"; then
22707
# Check whether --with-tiff-includes was given.
22708
if test "${with_tiff_includes+set}" = set; then :
22709
withval=$with_tiff_includes; TIFF_INCLUDES="-I$withval"
22713
# Check whether --with-tiff-libraries was given.
22714
if test "${with_tiff_libraries+set}" = set; then :
22715
withval=$with_tiff_libraries; TIFF_LIBS="-L$withval -ltiff"
22719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
22720
$as_echo_n "checking for TIFF... " >&6; }
22723
if test "$TIFF_INCLUDES" = ""; then
22724
# Check the standard search path
22725
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22726
/* end confdefs.h. */
22736
if ac_fn_c_try_compile "$LINENO"; then :
22742
# tiff.h is not in the standard search path, try
22744
tiff_save_INCLUDES="$INCLUDES"
22746
INCLUDES="-I${prefix}/include $INCLUDES"
22748
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749
/* end confdefs.h. */
22759
if ac_fn_c_try_compile "$LINENO"; then :
22761
TIFF_INCLUDES="-I${prefix}/include"
22768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22770
INCLUDES=$tiff_save_INCLUDES
22773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22776
# Now for the libraries
22777
if test "$TIFF_LIBS" = ""; then
22778
tiff_save_LIBS="$LIBS"
22779
tiff_save_INCLUDES="$INCLUDES"
22781
LIBS="-ltiff -lm $LIBS"
22782
INCLUDES="$TIFF_INCLUDES $INCLUDES"
22784
# Try the standard search path first
22785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786
/* end confdefs.h. */
22796
if ac_fn_c_try_link "$LINENO"; then :
22802
# libtiff is not in the standard search path, try $prefix
22804
LIBS="-L${prefix}/lib $LIBS"
22806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22807
/* end confdefs.h. */
22817
if ac_fn_c_try_link "$LINENO"; then :
22819
TIFF_LIBS="-L${prefix}/lib -ltiff"
22826
rm -f core conftest.err conftest.$ac_objext \
22827
conftest$ac_exeext conftest.$ac_ext
22830
rm -f core conftest.err conftest.$ac_objext \
22831
conftest$ac_exeext conftest.$ac_ext
22833
LIBS="$tiff_save_LIBS"
22834
INCLUDES="$tiff_save_INCLUDES"
22840
# Print a helpful message
22841
tiff_libraries_result="$TIFF_LIBS"
22842
tiff_includes_result="$TIFF_INCLUDES"
22844
if test x"$tiff_libraries_result" = x""; then
22845
tiff_libraries_result="in default path"
22847
if test x"$tiff_includes_result" = x""; then
22848
tiff_includes_result="in default path"
22851
if test "$tiff_libraries_result" = "no"; then
22852
tiff_libraries_result="(none)"
22854
if test "$tiff_includes_result" = "no"; then
22855
tiff_includes_result="(none)"
22858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $tiff_libraries_result, headers $tiff_includes_result" >&5
22859
$as_echo "libraries $tiff_libraries_result, headers $tiff_includes_result" >&6; }
22861
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22862
if test "$TIFF_INCLUDES" != "no" && test "$TIFF_LIBS" != "no"; then
22864
$as_echo "#define HAVE_TIFF 1" >>confdefs.h
22870
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtiff not found; disabling TIFF support" >&5
22871
$as_echo "$as_me: WARNING: libtiff not found; disabling TIFF support" >&2;}
22878
elif test $pkg_failed = untried; then
22879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22880
$as_echo "no" >&6; }
22888
# Check whether --with-tiff was given.
22889
if test "${with_tiff+set}" = set; then :
22890
withval=$with_tiff;
22893
# Treat --without-tiff like --without-tiff-includes --without-tiff-libraries.
22894
if test "$with_tiff" = "no"; then
22900
# Check whether --with-tiff-includes was given.
22901
if test "${with_tiff_includes+set}" = set; then :
22902
withval=$with_tiff_includes; TIFF_INCLUDES="-I$withval"
22906
# Check whether --with-tiff-libraries was given.
22907
if test "${with_tiff_libraries+set}" = set; then :
22908
withval=$with_tiff_libraries; TIFF_LIBS="-L$withval -ltiff"
22912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
22913
$as_echo_n "checking for TIFF... " >&6; }
22916
if test "$TIFF_INCLUDES" = ""; then
22917
# Check the standard search path
22918
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22919
/* end confdefs.h. */
22929
if ac_fn_c_try_compile "$LINENO"; then :
22935
# tiff.h is not in the standard search path, try
22937
tiff_save_INCLUDES="$INCLUDES"
22939
INCLUDES="-I${prefix}/include $INCLUDES"
22941
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942
/* end confdefs.h. */
22952
if ac_fn_c_try_compile "$LINENO"; then :
22954
TIFF_INCLUDES="-I${prefix}/include"
22961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963
INCLUDES=$tiff_save_INCLUDES
22966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969
# Now for the libraries
22970
if test "$TIFF_LIBS" = ""; then
22971
tiff_save_LIBS="$LIBS"
22972
tiff_save_INCLUDES="$INCLUDES"
22974
LIBS="-ltiff -lm $LIBS"
22975
INCLUDES="$TIFF_INCLUDES $INCLUDES"
22977
# Try the standard search path first
22978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22979
/* end confdefs.h. */
22989
if ac_fn_c_try_link "$LINENO"; then :
22995
# libtiff is not in the standard search path, try $prefix
22997
LIBS="-L${prefix}/lib $LIBS"
22999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000
/* end confdefs.h. */
23010
if ac_fn_c_try_link "$LINENO"; then :
23012
TIFF_LIBS="-L${prefix}/lib -ltiff"
23019
rm -f core conftest.err conftest.$ac_objext \
23020
conftest$ac_exeext conftest.$ac_ext
23023
rm -f core conftest.err conftest.$ac_objext \
23024
conftest$ac_exeext conftest.$ac_ext
23026
LIBS="$tiff_save_LIBS"
23027
INCLUDES="$tiff_save_INCLUDES"
23033
# Print a helpful message
23034
tiff_libraries_result="$TIFF_LIBS"
23035
tiff_includes_result="$TIFF_INCLUDES"
23037
if test x"$tiff_libraries_result" = x""; then
23038
tiff_libraries_result="in default path"
23040
if test x"$tiff_includes_result" = x""; then
23041
tiff_includes_result="in default path"
23044
if test "$tiff_libraries_result" = "no"; then
23045
tiff_libraries_result="(none)"
23047
if test "$tiff_includes_result" = "no"; then
23048
tiff_includes_result="(none)"
23051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $tiff_libraries_result, headers $tiff_includes_result" >&5
23052
$as_echo "libraries $tiff_libraries_result, headers $tiff_includes_result" >&6; }
23054
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23055
if test "$TIFF_INCLUDES" != "no" && test "$TIFF_LIBS" != "no"; then
23057
$as_echo "#define HAVE_TIFF 1" >>confdefs.h
23063
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtiff not found; disabling TIFF support" >&5
23064
$as_echo "$as_me: WARNING: libtiff not found; disabling TIFF support" >&2;}
23072
TIFF_CFLAGS=$pkg_cv_TIFF_CFLAGS
23073
TIFF_LIBS=$pkg_cv_TIFF_LIBS
23074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23075
$as_echo "yes" >&6; }
23077
$as_echo "#define HAVE_TIFF 1" >>confdefs.h
23080
PACKAGES_USED="$PACKAGES_USED libtiff-4"
22739
23084
# look for PNG with pkg-config ... fall back to our tester
22741
23086
# Check whether --with-png was given.