1dnl -*- Autoconf -*- 2dnl Tag Image File Format (TIFF) Software 3dnl 4dnl Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu> 5dnl 6dnl Permission to use, copy, modify, distribute, and sell this software and 7dnl its documentation for any purpose is hereby granted without fee, provided 8dnl that (i) the above copyright notices and this permission notice appear in 9dnl all copies of the software and related documentation, and (ii) the names of 10dnl Sam Leffler and Silicon Graphics may not be used in any advertising or 11dnl publicity relating to the software without the specific, prior written 12dnl permission of Sam Leffler and Silicon Graphics. 13dnl 14dnl THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 15dnl EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 16dnl WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 17dnl 18dnl IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 19dnl ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 20dnl OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 21dnl WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 22dnl LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 23dnl OF THIS SOFTWARE. 24 25dnl Process this file with autoconf to produce a configure script. 26 27AC_PREREQ(2.64) 28AC_INIT([LibTIFF Software],[4.0.9],[tiff@lists.maptools.org],[tiff]) 29AC_CONFIG_AUX_DIR(config) 30AC_CONFIG_MACRO_DIR(m4) 31AC_LANG(C) 32 33dnl Compute the canonical host (run-time) system type variable 34AC_CANONICAL_HOST 35 36AM_INIT_AUTOMAKE(tar-pax) 37dnl Do not rebuild generated files every time 38AM_MAINTAINER_MODE 39 40dnl Versioning. 41dnl Don't fill the ALPHA_VERSION field, if not applicable. 42LIBTIFF_MAJOR_VERSION=4 43LIBTIFF_MINOR_VERSION=0 44LIBTIFF_MICRO_VERSION=9 45LIBTIFF_ALPHA_VERSION= 46LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 47dnl This will be used with the 'make release' target 48LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 49 50dnl Libtool library revision control info 51dnl See the libtool documentation under the heading "Libtool's versioning 52dnl system" in order to understand the meaning of these fields 53dnl 54dnl current 55dnl The most recent interface number that this library implements. 56dnl revision 57dnl The implementation number of the current interface. 58dnl age 59dnl The difference between the newest and oldest interfaces that 60dnl this library implements. In other words, the library implements 61dnl all the interface numbers in the range from number current - 62dnl age to current. 63dnl 64dnl Here are a set of rules to help you update your library version 65dnl information: 66dnl 67dnl 1. Start with version information of `0:0:0' for each libtool library. 68dnl 2. Update the version information only immediately before a public 69dnl release of your software. More frequent updates are unnecessary, and 70dnl only guarantee that the current interface number gets larger faster. 71dnl 3. If the library source code has changed at all since the last update, 72dnl then increment revision (`c:r:a' becomes `c:r+1:a'). 73dnl 4. If any interfaces have been added, removed, or changed since the last 74dnl update, increment current, and set revision to 0. 75dnl 5. If any interfaces have been added since the last public release, then 76dnl increment age. 77dnl 6. If any interfaces have been removed since the last public release, 78dnl then set age to 0. 79LIBTIFF_CURRENT=8 80LIBTIFF_REVISION=0 81LIBTIFF_AGE=3 82LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 83 84# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 85# in OpenBSD uses some special semantics for shared libraries. Their soname 86# contains only two numbers, major and minor. 87# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 88#case "$host_os" in 89# openbsd* | mirbsd*) 90# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 91# ;; 92# *) 93# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 94# ;; 95#esac 96 97AC_SUBST(LIBTIFF_MAJOR_VERSION) 98AC_SUBST(LIBTIFF_MINOR_VERSION) 99AC_SUBST(LIBTIFF_MICRO_VERSION) 100AC_SUBST(LIBTIFF_ALPHA_VERSION) 101AC_SUBST(LIBTIFF_VERSION) 102AC_SUBST(LIBTIFF_VERSION_INFO) 103AC_SUBST(LIBTIFF_RELEASE_DATE) 104 105dnl Checks for programs. 106AC_PROG_CC 107AM_PROG_CC_C_O 108 109dnl We want warnings. As many warnings as possible. 110VL_PROG_CC_WARNINGS() 111 112dnl Checks for programs 113AC_PROG_INSTALL 114AC_PROG_LN_S 115# Used only for validating the source distribution during distcheck 116AC_PATH_PROG(CMAKE, cmake) 117 118 119# Check if LD supports linker scripts, and define automake conditional 120# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently 121# constrained to compilers using GNU ld on ELF systems or systems 122# which provide an adequate emulation thereof. 123AC_ARG_ENABLE([ld-version-script], 124 AS_HELP_STRING([--enable-ld-version-script], 125 [enable linker version script (default is disabled)]), 126 [have_ld_version_script=$enableval], [have_ld_version_script=no]) 127if test "$have_ld_version_script" != no; then 128 AC_MSG_CHECKING([if LD -Wl,--version-script works]) 129 save_LDFLAGS="$LDFLAGS" 130 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 131 cat > conftest.map <<EOF 132VERS_1 { 133 global: sym; 134}; 135 136VERS_2 { 137 global: sym; 138} VERS_1; 139EOF 140 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], 141 [have_ld_version_script=yes], [have_ld_version_script=no]) 142 rm -f conftest.map 143 LDFLAGS="$save_LDFLAGS" 144 AC_MSG_RESULT($have_ld_version_script) 145fi 146AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes") 147 148 149dnl Tests for Windows 150AC_EXEEXT 151AC_OBJEXT 152 153dnl initialize libtool 154LT_INIT([win32-dll]) 155LT_LANG([C++]) 156 157# Enable support for silent build rules 158AM_SILENT_RULES 159 160tiff_libs_private= 161AC_SUBST(tiff_libs_private) 162 163dnl We don't need to add math library to all targets 164case "${host_os}" in 165 cygwin* | mingw32* | beos* | darwin*) 166 ;; 167 *) 168 AC_CHECK_LIB(m,sin,[libm_lib=yes], [libm_lib=no],) 169 if test "x$libm_lib" = "xyes" ; then 170 LIBS="-lm $LIBS" 171 tiff_libs_private="-lm ${tiff_libs_private}" 172 fi 173 ;; 174esac 175 176dnl Checks for header files. 177AC_CHECK_HEADERS([assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h]) 178 179dnl Checks for typedefs, structures, and compiler characteristics. 180AC_C_CONST 181AC_C_INLINE 182AC_C_BIGENDIAN 183AC_TYPE_OFF_T 184AC_TYPE_SIZE_T 185AC_HEADER_TIME 186AC_STRUCT_TM 187 188dnl If the `fseeko' function is available, define `HAVE_FSEEKO'. Define 189dnl `_LARGEFILE_SOURCE' if necessary. 190AC_FUNC_FSEEKO 191 192dnl Check if optarg (and presumably related externs) already declared in headers 193AC_CHECK_DECLS([optarg]) 194 195dnl --------------------------------------------------------------------------- 196dnl Compute sized types for current CPU and compiler options 197dnl --------------------------------------------------------------------------- 198 199# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 200AC_CHECK_SIZEOF(signed short) 201 202# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 203AC_CHECK_SIZEOF(unsigned short) 204 205# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 206AC_CHECK_SIZEOF(signed int) 207 208# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 209AC_CHECK_SIZEOF(unsigned int) 210 211# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 212AC_CHECK_SIZEOF(signed long) 213 214# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 215AC_CHECK_SIZEOF(unsigned long) 216 217# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 218# If 'long long' is not supported then the value defined is zero. 219AC_CHECK_SIZEOF(signed long long) 220 221# Obtain size of a 'unsigned long long' and define as 222# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 223# supported then the value defined is zero. 224AC_CHECK_SIZEOF(unsigned long long) 225 226# Obtain the size of an 'unsigned char *' and define as 227# SIZEOF_UNSIGNED_CHAR_P. Result is available in 228# ac_cv_sizeof_unsigned_char_p. 229AC_CHECK_SIZEOF(unsigned char *) 230 231# Obtain the size of 'size_t' and define as SIZEOF_SIZE_T. Result is 232# available in ac_cv_sizeof_size_t 233AC_CHECK_SIZEOF([size_t]) 234 235AC_MSG_CHECKING(for signed 8-bit type) 236INT8_T='signed char' 237AC_MSG_RESULT($INT8_T) 238AC_DEFINE_UNQUOTED(TIFF_INT8_T,$INT8_T,[Signed 8-bit type]) 239 240AC_MSG_CHECKING(for unsigned 8-bit type) 241UINT8_T='unsigned char' 242AC_MSG_RESULT($UINT8_T) 243AC_DEFINE_UNQUOTED(TIFF_UINT8_T,$UINT8_T,[Unsigned 8-bit type]) 244 245AC_MSG_CHECKING(for signed 16-bit type) 246INT16_T='signed short' 247AC_MSG_RESULT($INT16_T) 248AC_DEFINE_UNQUOTED(TIFF_INT16_T,$INT16_T,[Signed 16-bit type]) 249 250 251AC_MSG_CHECKING(for unsigned 16-bit type) 252UINT16_T='unsigned short' 253AC_MSG_RESULT($UINT16_T) 254AC_DEFINE_UNQUOTED(TIFF_UINT16_T,$UINT16_T,[Unsigned 16-bit type]) 255 256AC_MSG_CHECKING(for signed 32-bit type) 257INT32_T='none' 258INT32_FORMAT='none' 259if test $ac_cv_sizeof_signed_int -eq 4 260then 261 INT32_T='signed int' 262 INT32_FORMAT='"%d"' 263elif test $ac_cv_sizeof_signed_long -eq 4 264then 265 INT32_T='signed long' 266 INT32_FORMAT='"%ld"' 267fi 268AC_MSG_RESULT($INT32_T) 269AC_DEFINE_UNQUOTED(TIFF_INT32_T,$INT32_T,[Signed 32-bit type]) 270AC_DEFINE_UNQUOTED(TIFF_INT32_FORMAT,$INT32_FORMAT,[Signed 32-bit type formatter]) 271 272AC_MSG_CHECKING(for unsigned 32-bit type) 273UINT32_T='none' 274UINT32_FORMAT='none' 275if test $ac_cv_sizeof_unsigned_int -eq 4 276then 277 UINT32_T='unsigned int' 278 UINT32_FORMAT='"%u"' 279elif test $ac_cv_sizeof_unsigned_long -eq 4 280then 281 UINT32_T='unsigned long' 282 UINT32_FORMAT='"%lu"' 283fi 284AC_MSG_RESULT($UINT32_T) 285AC_DEFINE_UNQUOTED(TIFF_UINT32_T,$UINT32_T,[Unsigned 32-bit type]) 286AC_DEFINE_UNQUOTED(TIFF_UINT32_FORMAT,$UINT32_FORMAT,[Unsigned 32-bit type formatter]) 287 288AC_MSG_CHECKING(for signed 64-bit type) 289INT64_T='none' 290INT64_FORMAT='none' 291if test $ac_cv_sizeof_signed_long -eq 8 292then 293 INT64_T='signed long' 294 INT64_FORMAT='"%ld"' 295elif test $ac_cv_sizeof_signed_long_long -eq 8 296then 297 INT64_T='signed long long' 298 case "${host_os}" in 299 mingw32*) 300 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 301 INT64_FORMAT='"%I64d"' 302 ;; 303 *) 304 INT64_FORMAT='"%lld"' 305 ;; 306 esac 307fi 308 309 310AC_MSG_RESULT($INT64_T) 311AC_DEFINE_UNQUOTED(TIFF_INT64_T,$INT64_T,[Signed 64-bit type]) 312AC_DEFINE_UNQUOTED(TIFF_INT64_FORMAT,$INT64_FORMAT,[Signed 64-bit type formatter]) 313 314AC_MSG_CHECKING(for unsigned 64-bit type) 315UINT64_T='none' 316UINT64_FORMAT='none' 317if test $ac_cv_sizeof_unsigned_long -eq 8 318then 319 UINT64_T='unsigned long' 320 UINT64_FORMAT='"%lu"' 321elif test $ac_cv_sizeof_unsigned_long_long -eq 8 322then 323 UINT64_T='unsigned long long' 324 case "${host_os}" in 325 mingw32*) 326 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 327 UINT64_FORMAT='"%I64u"' 328 ;; 329 *) 330 UINT64_FORMAT='"%llu"' 331 ;; 332 esac 333fi 334AC_MSG_RESULT($UINT64_T) 335AC_DEFINE_UNQUOTED(TIFF_UINT64_T,$UINT64_T,[Unsigned 64-bit type]) 336AC_DEFINE_UNQUOTED(TIFF_UINT64_FORMAT,$UINT64_FORMAT,[Unsigned 64-bit type formatter]) 337 338# Determine formatting specifier for 'size_t'. While the size should 339# be precise, the type determined may not match the system definition. 340# A named type is provided to allow casting to the type we determined 341# without changing the actual size. 342AC_MSG_CHECKING([for 'size_t' format specifier]) 343SIZE_T='unknown' 344SIZE_FORMAT='unknown' 345if test $ac_cv_sizeof_unsigned_int -eq $ac_cv_sizeof_size_t 346then 347 SIZE_T='unsigned int' 348 SIZE_FORMAT='"%u"' 349elif test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_size_t 350then 351 SIZE_T='unsigned long' 352 SIZE_FORMAT='"%lu"' 353elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_size_t 354then 355 SIZE_T='unsigned long long' 356 case "${host_os}" in 357 mingw32*) 358 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 359 SIZE_FORMAT='"%I64u"' 360 ;; 361 *) 362 SIZE_FORMAT='"%llu"' 363 ;; 364 esac 365fi 366AC_MSG_RESULT([$SIZE_FORMAT]) 367AC_DEFINE_UNQUOTED([TIFF_SIZE_T],[$SIZE_T],[Unsigned size type]) 368AC_DEFINE_UNQUOTED([TIFF_SIZE_FORMAT],[$SIZE_FORMAT],[Size type formatter]) 369 370# Determine TIFF equivalent of ssize_t 371AC_MSG_CHECKING(for signed size type) 372SSIZE_T='unknown' 373SSIZE_FORMAT='unknown' 374if test $ac_cv_sizeof_signed_int -eq $ac_cv_sizeof_unsigned_char_p 375then 376 SSIZE_T='signed int' 377 SSIZE_FORMAT='"%d"' 378elif test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 379then 380 SSIZE_T='signed long' 381 SSIZE_FORMAT='"%ld"' 382elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 383then 384 SSIZE_T='signed long long' 385 case "${host_os}" in 386 mingw32*) 387 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 388 SSIZE_FORMAT='"%I64d"' 389 ;; 390 *) 391 SSIZE_FORMAT='"%lld"' 392 ;; 393 esac 394fi 395AC_MSG_RESULT($SSIZE_T) 396AC_DEFINE_UNQUOTED(TIFF_SSIZE_T,$SSIZE_T,[Signed size type]) 397AC_DEFINE_UNQUOTED(TIFF_SSIZE_FORMAT,$SSIZE_FORMAT,[Signed size type formatter]) 398 399# Determine the type to use for the difference between two pointers. 400# We will default to the POSIX ptrdiff_t if it is available, but will 401# be prepared for the case when it is not. 402PTRDIFF_T='unknown' 403PTRDIFF_FORMAT='"%ld"' 404AC_CHECK_TYPE(ptrdiff_t,[PTRDIFF_T=ptrdiff_t]) 405if test $PTRDIFF_T = unknown 406then 407 PTRDIFF_T=$SSIZE_T 408 PTRDIFF_FORMAT=$SSIZE_FORMAT 409fi 410AC_MSG_CHECKING(for pointer difference type) 411AC_MSG_RESULT($PTRDIFF_T) 412AC_DEFINE_UNQUOTED(TIFF_PTRDIFF_T,$PTRDIFF_T,[Pointer difference type]) 413AC_DEFINE_UNQUOTED(TIFF_PTRDIFF_FORMAT,$PTRDIFF_FORMAT,[Pointer difference type formatter]) 414 415dnl Some compilers (IBM VisualAge) has these types defined, so check it here: 416AC_CHECK_TYPES([int8, int16, int32],,, 417[ 418#if HAVE_INTTYPES_H 419# include <inttypes.h> 420#endif 421]) 422 423dnl Checks for library functions. 424AC_CHECK_FUNCS([floor isascii memmove memset mmap pow setmode snprintf sqrt \ 425strchr strrchr strstr strtol strtoul strtoull]) 426 427dnl Will use local replacements for unavailable functions 428AC_REPLACE_FUNCS(getopt) 429AC_REPLACE_FUNCS(snprintf) 430AC_REPLACE_FUNCS(strcasecmp) 431AC_REPLACE_FUNCS(strtoul) 432AC_REPLACE_FUNCS(strtoull) 433AC_REPLACE_FUNCS(lfind) 434 435dnl --------------------------------------------------------------------------- 436dnl Check the native cpu bit order. 437dnl --------------------------------------------------------------------------- 438AC_MSG_CHECKING([native cpu bit order]) 439case "$host_cpu" in 440 i*86*|x86_64*) 441 HOST_FILLORDER=FILLORDER_LSB2MSB 442 AC_MSG_RESULT([lsb2msb]) 443 ;; 444 *) 445 HOST_FILLORDER=FILLORDER_MSB2LSB 446 AC_MSG_RESULT([msb2lsb]) 447 ;; 448esac 449AC_DEFINE_UNQUOTED(HOST_FILLORDER, $HOST_FILLORDER, [Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB)]) 450 451dnl --------------------------------------------------------------------------- 452dnl Configure legacy tifconf.h HOST_BIGENDIAN. 453dnl --------------------------------------------------------------------------- 454if test "$ac_cv_c_bigendian" = yes ; then 455 HOST_BIGENDIAN=1 456else 457 HOST_BIGENDIAN=0 458fi 459AC_DEFINE_UNQUOTED(HOST_BIGENDIAN,$HOST_BIGENDIAN,[Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian (Intel)]) 460 461dnl --------------------------------------------------------------------------- 462dnl Make the POSIX.2 features available. 463dnl --------------------------------------------------------------------------- 464#_POSIX_C_SOURCE=2 465#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 466 467dnl --------------------------------------------------------------------------- 468dnl Set the floating point format. 469dnl FIXME: write appropriate test. 470dnl --------------------------------------------------------------------------- 471HAVE_IEEEFP=1 472AC_DEFINE_UNQUOTED(HAVE_IEEEFP, $HAVE_IEEEFP, [Define as 0 or 1 according to the floating point format suported by the machine]) 473 474dnl --------------------------------------------------------------------------- 475dnl Enable run-time paths to libraries usage. 476dnl --------------------------------------------------------------------------- 477 478AC_ARG_ENABLE(rpath, 479 AS_HELP_STRING([--enable-rpath], 480 [Enable runtime linker paths (-R libtool option)]), 481 [HAVE_RPATH=$enableval], [HAVE_RPATH=no]) 482AM_CONDITIONAL(HAVE_RPATH, test "$HAVE_RPATH" = "yes") 483 484dnl --------------------------------------------------------------------------- 485dnl Support large files. 486dnl --------------------------------------------------------------------------- 487 488AC_SYS_LARGEFILE 489 490dnl --------------------------------------------------------------------------- 491dnl Point to path where we should install documentation. 492dnl --------------------------------------------------------------------------- 493 494LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 495 496AC_ARG_WITH(docdir, 497 AS_HELP_STRING([--with-docdir=DIR], 498 [directory where documentation should be installed]),,) 499if test "x$with_docdir" != "x" ; then 500 LIBTIFF_DOCDIR=$with_docdir 501fi 502 503AC_SUBST(LIBTIFF_DOCDIR) 504 505dnl --------------------------------------------------------------------------- 506dnl Switch on/off internal codecs. 507dnl --------------------------------------------------------------------------- 508 509AC_ARG_ENABLE(ccitt, 510 AS_HELP_STRING([--disable-ccitt], 511 [disable support for CCITT Group 3 & 4 algorithms]), 512 [HAVE_CCITT=$enableval], [HAVE_CCITT=yes]) 513 514if test "$HAVE_CCITT" = "yes" ; then 515 AC_DEFINE(CCITT_SUPPORT,1,[Support CCITT Group 3 & 4 algorithms]) 516fi 517 518AC_ARG_ENABLE(packbits, 519 AS_HELP_STRING([--disable-packbits], 520 [disable support for Macintosh PackBits algorithm]), 521 [HAVE_PACKBITS=$enableval], [HAVE_PACKBITS=yes]) 522 523if test "$HAVE_PACKBITS" = "yes" ; then 524 AC_DEFINE(PACKBITS_SUPPORT,1,[Support Macintosh PackBits algorithm]) 525fi 526 527AC_ARG_ENABLE(lzw, 528 AS_HELP_STRING([--disable-lzw], 529 [disable support for LZW algorithm]), 530 [HAVE_LZW=$enableval], [HAVE_LZW=yes]) 531 532if test "$HAVE_LZW" = "yes" ; then 533 AC_DEFINE(LZW_SUPPORT,1,[Support LZW algorithm]) 534fi 535 536AC_ARG_ENABLE(thunder, 537 AS_HELP_STRING([--disable-thunder], 538 [disable support for ThunderScan 4-bit RLE algorithm]), 539 [HAVE_THUNDER=$enableval], [HAVE_THUNDER=yes]) 540 541if test "$HAVE_THUNDER" = "yes" ; then 542 AC_DEFINE(THUNDER_SUPPORT,1,[Support ThunderScan 4-bit RLE algorithm]) 543fi 544 545HAVE_NEXT=yes 546 547AC_ARG_ENABLE(next, 548 AS_HELP_STRING([--disable-next], 549 [disable support for NeXT 2-bit RLE algorithm]), 550 [HAVE_NEXT=$enableval], [HAVE_NEXT=yes]) 551 552if test "$HAVE_NEXT" = "yes" ; then 553 AC_DEFINE(NEXT_SUPPORT,1,[Support NeXT 2-bit RLE algorithm]) 554fi 555 556AC_ARG_ENABLE(logluv, 557 AS_HELP_STRING([--disable-logluv], 558 [disable support for LogLuv high dynamic range encoding]), 559 [HAVE_LOGLUV=$enableval], [HAVE_LOGLUV=yes]) 560 561if test "$HAVE_LOGLUV" = "yes" ; then 562 AC_DEFINE(LOGLUV_SUPPORT,1,[Support LogLuv high dynamic range encoding]) 563fi 564 565dnl --------------------------------------------------------------------------- 566dnl Switch on/off support for Microsoft Document Imaging 567dnl --------------------------------------------------------------------------- 568 569AC_ARG_ENABLE(mdi, 570 AS_HELP_STRING([--disable-mdi], 571 [disable support for Microsoft Document Imaging]), 572 [HAVE_MDI=$enableval], [HAVE_MDI=yes]) 573 574if test "$HAVE_MDI" = "yes" ; then 575 AC_DEFINE(MDI_SUPPORT,1,[Support Microsoft Document Imaging format]) 576fi 577 578dnl --------------------------------------------------------------------------- 579dnl Check for ZLIB. 580dnl --------------------------------------------------------------------------- 581 582HAVE_ZLIB=no 583 584AC_ARG_ENABLE(zlib, 585 AS_HELP_STRING([--disable-zlib], 586 [disable Zlib usage (required for Deflate compression, enabled by default)]),,) 587AC_ARG_WITH(zlib-include-dir, 588 AS_HELP_STRING([--with-zlib-include-dir=DIR], 589 [location of Zlib headers]),,) 590AC_ARG_WITH(zlib-lib-dir, 591 AS_HELP_STRING([--with-zlib-lib-dir=DIR], 592 [location of Zlib library binary]),,) 593 594if test "x$enable_zlib" != "xno" ; then 595 596 if test "x$with_zlib_lib_dir" != "x" ; then 597 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 598 fi 599 600 AC_CHECK_LIB(z, inflateEnd, [zlib_lib=yes], [zlib_lib=no],) 601 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 602 AC_MSG_ERROR([Zlib library not found at $with_zlib_lib_dir]) 603 fi 604 605 if test "x$with_zlib_include_dir" != "x" ; then 606 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 607 fi 608 AC_CHECK_HEADER(zlib.h, [zlib_h=yes], [zlib_h=no]) 609 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 610 AC_MSG_ERROR([Zlib headers not found at $with_zlib_include_dir]) 611 fi 612 613 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 614 HAVE_ZLIB=yes 615 fi 616 617fi 618 619if test "$HAVE_ZLIB" = "yes" ; then 620 AC_DEFINE(ZIP_SUPPORT,1,[Support Deflate compression]) 621 LIBS="-lz $LIBS" 622 tiff_libs_private="-lz ${tiff_libs_private}" 623 624 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 625 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 626 fi 627 628fi 629 630dnl --------------------------------------------------------------------------- 631dnl Check for Pixar log-format algorithm. 632dnl --------------------------------------------------------------------------- 633 634AC_ARG_ENABLE(pixarlog, 635 AS_HELP_STRING([--disable-pixarlog], 636 [disable support for Pixar log-format algorithm (requires Zlib)]), 637 [HAVE_PIXARLOG=$enableval], [HAVE_PIXARLOG=yes]) 638 639if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 640 AC_DEFINE(PIXARLOG_SUPPORT, 1, 641 [Support Pixar log-format algorithm (requires Zlib)]) 642else 643 HAVE_PIXARLOG=no 644fi 645 646dnl --------------------------------------------------------------------------- 647dnl Check for JPEG. 648dnl --------------------------------------------------------------------------- 649 650HAVE_JPEG=no 651 652AC_ARG_ENABLE(jpeg, 653 AS_HELP_STRING([--disable-jpeg], 654 [disable IJG JPEG library usage (required for JPEG compression, enabled by default)]),,) 655AC_ARG_WITH(jpeg-include-dir, 656 AS_HELP_STRING([--with-jpeg-include-dir=DIR], 657 [location of IJG JPEG library headers]),,) 658AC_ARG_WITH(jpeg-lib-dir, 659 AS_HELP_STRING([--with-jpeg-lib-dir=DIR], 660 [location of IJG JPEG library binary]),,) 661 662if test "x$enable_jpeg" != "xno" ; then 663 664 if test "x$with_jpeg_lib_dir" != "x" ; then 665 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 666 667 fi 668 669 AC_CHECK_LIB(jpeg, jpeg_read_scanlines, [jpeg_lib=yes], [jpeg_lib=no],) 670 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 671 AC_MSG_ERROR([IJG JPEG library not found at $with_jpeg_lib_dir]) 672 fi 673 674 if test "x$with_jpeg_include_dir" != "x" ; then 675 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 676 fi 677 AC_CHECK_HEADER(jpeglib.h, [jpeg_h=yes], [jpeg_h=no]) 678 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 679 AC_MSG_ERROR([IJG JPEG library headers not found at $with_jpeg_include_dir]) 680 fi 681 682 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 683 HAVE_JPEG=yes 684 fi 685 686fi 687 688if test "$HAVE_JPEG" = "yes" ; then 689 AC_DEFINE(JPEG_SUPPORT,1,[Support JPEG compression (requires IJG JPEG library)]) 690 LIBS="-ljpeg $LIBS" 691 tiff_libs_private="-ljpeg ${tiff_libs_private}" 692 693 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 694 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 695 fi 696 697fi 698 699AM_CONDITIONAL(HAVE_JPEG, test "$HAVE_JPEG" = 'yes') 700 701dnl --------------------------------------------------------------------------- 702dnl Check for Old JPEG. 703dnl --------------------------------------------------------------------------- 704 705AC_ARG_ENABLE(old-jpeg, 706 AS_HELP_STRING([--disable-old-jpeg], 707 [disable support for Old JPEG compresson (read-only, enabled by default)]), 708 [HAVE_OJPEG=${enableval}], [HAVE_OJPEG=yes]) 709 710if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 711 AC_DEFINE(OJPEG_SUPPORT, 1, 712 [Support Old JPEG compresson (read-only)]) 713else 714 HAVE_OJPEG=no 715fi 716 717dnl --------------------------------------------------------------------------- 718dnl Check for JBIG-KIT. 719dnl --------------------------------------------------------------------------- 720 721HAVE_JBIG=no 722 723AC_ARG_ENABLE(jbig, 724 AS_HELP_STRING([--disable-jbig], 725 [disable JBIG-KIT usage (required for ISO JBIG compression, enabled by default)]),,) 726AC_ARG_WITH(jbig-include-dir, 727 AS_HELP_STRING([--with-jbig-include-dir=DIR], 728 [location of JBIG-KIT headers]),,) 729AC_ARG_WITH(jbig-lib-dir, 730 AS_HELP_STRING([--with-jbig-lib-dir=DIR], 731 [location of JBIG-KIT library binary]),,) 732 733if test "x$enable_jbig" != "xno" ; then 734 735 if test "x$with_jbig_lib_dir" != "x" ; then 736 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 737 738 fi 739 740 AC_CHECK_LIB(jbig, jbg_dec_init, [jbig_lib=yes], [jbig_lib=no],) 741 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 742 AC_MSG_ERROR([JBIG-KIT library not found at $with_jbig_lib_dir]) 743 fi 744 745 if test "x$with_jbig_include_dir" != "x" ; then 746 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 747 fi 748 AC_CHECK_HEADER(jbig.h, [jbig_h=yes], [jbig_h=no]) 749 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 750 AC_MSG_ERROR([JBIG-KIT library headers not found at $with_jbig_include_dir]) 751 fi 752 753 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 754 HAVE_JBIG=yes 755 fi 756 757fi 758 759if test "$HAVE_JBIG" = "yes" ; then 760 AC_DEFINE(JBIG_SUPPORT,1,[Support ISO JBIG compression (requires JBIG-KIT library)]) 761 LIBS="-ljbig $LIBS" 762 tiff_libs_private="-ljbig ${tiff_libs_private}" 763 764 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 765 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 766 fi 767 768 # Older versions of jbigkit lack jbg_newlen 769 AC_CHECK_FUNCS([jbg_newlen]) 770 771fi 772 773AM_CONDITIONAL(HAVE_JBIG, test "$HAVE_JBIG" = 'yes') 774 775dnl --------------------------------------------------------------------------- 776dnl Check for liblzma2. 777dnl --------------------------------------------------------------------------- 778 779HAVE_LZMA=no 780 781AC_ARG_ENABLE(lzma, 782 AS_HELP_STRING([--disable-lzma], 783 [disable liblzma usage (required for LZMA2 compression, enabled by default)]),,) 784AC_ARG_WITH(lzma-include-dir, 785 AS_HELP_STRING([--with-lzma-include-dir=DIR], 786 [location of liblzma headers]),,) 787AC_ARG_WITH(lzma-lib-dir, 788 AS_HELP_STRING([--with-lzma-lib-dir=DIR], 789 [location of liblzma library binary]),,) 790 791if test "x$enable_lzma" != "xno" ; then 792 793 if test "x$with_lzma_lib_dir" != "x" ; then 794 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 795 fi 796 797 AC_CHECK_LIB(lzma, lzma_code, [lzma_lib=yes], [lzma_lib=no],) 798 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 799 AC_MSG_ERROR([lzma library not found at $with_lzma_lib_dir]) 800 fi 801 802 if test "x$with_lzma_include_dir" != "x" ; then 803 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 804 fi 805 AC_CHECK_HEADER(lzma.h, [lzma_h=yes], [lzma_h=no]) 806 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 807 AC_MSG_ERROR([Liblzma headers not found at $with_lzma_include_dir]) 808 fi 809 810 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 811 HAVE_LZMA=yes 812 fi 813 814fi 815 816if test "$HAVE_LZMA" = "yes" ; then 817 AC_DEFINE(LZMA_SUPPORT,1,[Support LZMA2 compression]) 818 LIBS="-llzma $LIBS" 819 tiff_libs_private="-llzma ${tiff_libs_private}" 820 821 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 822 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 823 fi 824 825fi 826 827AM_CONDITIONAL(HAVE_LZMA, test "$HAVE_LZMA" = 'yes') 828 829dnl --------------------------------------------------------------------------- 830dnl Should 8/12 bit jpeg mode be enabled? 831dnl --------------------------------------------------------------------------- 832 833HAVE_JPEG12=no 834 835AC_ARG_ENABLE(jpeg12, 836 AS_HELP_STRING([--enable-jpeg12], 837 [enable libjpeg 8/12bit dual mode]),,) 838AC_ARG_WITH(jpeg12-include-dir, 839 AS_HELP_STRING([--with-jpeg12-include-dir=DIR], 840 [location of libjpeg 12bit headers]),,) 841AC_ARG_WITH(jpeg12-lib, 842 AS_HELP_STRING([--with-jpeg12-lib=LIBRARY], 843 [path to libjpeg 12bit library]),,) 844 845if test "x$enable_jpeg12" = "xyes" ; then 846 847 if test "x$with_jpeg12_lib" != "x" ; then 848 LIBS="$with_jpeg12_lib $LIBS" 849 fi 850 851 HAVE_JPEG12=yes 852 853 AC_DEFINE(JPEG_DUAL_MODE_8_12,1,[8/12 bit libjpeg dual mode enabled]) 854 if test "x$with_jpeg12_include_dir" != "x" ; then 855 AC_DEFINE_UNQUOTED(LIBJPEG_12_PATH,"$with_jpeg12_include_dir/jpeglib.h",[12bit libjpeg primary include file with path]) 856 fi 857fi 858 859 860dnl --------------------------------------------------------------------------- 861dnl Check for C++. 862dnl --------------------------------------------------------------------------- 863 864AC_ARG_ENABLE(cxx, 865 AS_HELP_STRING([--enable-cxx], 866 [enable C++ stream API building (requires C++ compiler)]), 867 [HAVE_CXX=$enableval], [HAVE_CXX=yes]) 868 869if test "$HAVE_CXX" = "yes" ; then 870 AC_DEFINE(CXX_SUPPORT, 1, [Support C++ stream API (requires C++ compiler)]) 871else 872 HAVE_CXX=no 873fi 874 875AM_CONDITIONAL(HAVE_CXX, test "$HAVE_CXX" = "yes") 876 877dnl --------------------------------------------------------------------------- 878dnl Check for OpenGL and GLUT. 879dnl --------------------------------------------------------------------------- 880 881HAVE_OPENGL=no 882 883 884AC_PATH_XTRA 885 886dnl AX_CHECK_GL sets GL_CFLAGS & GL_LIBS. Also PTHREAD_LIBS, 887dnl PTHREAD_CFLAGS, & PTHREAD_CC as a side-effect 888AX_CHECK_GL 889 890dnl AX_CHECK_GLU sets GLU_CFLAGS & GLU_LIBS 891AX_CHECK_GLU 892 893dnl AX_CHECK_GLUT sets GLUT_CFLAGS & GLUT_LIBS 894AX_CHECK_GLUT 895 896if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 897 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 898 HAVE_OPENGL=yes 899fi 900 901AM_CONDITIONAL(HAVE_OPENGL, test "$HAVE_OPENGL" = "yes") 902 903dnl --------------------------------------------------------------------------- 904dnl Check for Win32 IO: make sure we have windows.h but not cygwin 905dnl this must be after the ogl test, since that looks for windows.h and we 906dnl test it 907dnl --------------------------------------------------------------------------- 908 909AC_ARG_ENABLE(win32-io, 910 AS_HELP_STRING([--disable-win32-io], 911 [disable Win32 I/O (Windows only, enabled by default except for Cygwin)]),,) 912 913win32_io_ok=no 914case "${host_os}" in 915 cygwin*) 916 if test x"$ac_cv_header_windows_h" = xyes -a "x$enable_win32_io" = xyes ; then 917 win32_io_ok=yes 918 fi 919 ;; 920 *) 921 if test x"$ac_cv_header_windows_h" = xyes -a ! "x$enable_win32_io" = xno ; then 922 win32_io_ok=yes 923 fi 924 ;; 925esac 926 927if test "$win32_io_ok" = "yes" ; then 928 AC_DEFINE(USE_WIN32_FILEIO,1,[define to use win32 IO system]) 929fi 930 931AM_CONDITIONAL([WIN32_IO], [test "$win32_io_ok" = yes]) 932 933dnl --------------------------------------------------------------------------- 934dnl Check for X Athena Widgets 935dnl --------------------------------------------------------------------------- 936 937dnl HAVE_XAW=no 938 939dnl ICE_FIND_ATHENA 940 941dnl if test "$no_xaw" != "yes" ; then 942dnl HAVE_XAW=yes 943dnl fi 944 945dnl AM_CONDITIONAL(HAVE_XAW, test "$HAVE_XAW" = "yes") 946 947dnl =========================================================================== 948dnl ``Orthogonal Features'' 949dnl =========================================================================== 950 951dnl --------------------------------------------------------------------------- 952dnl Default handling of strip chopping support. 953dnl --------------------------------------------------------------------------- 954 955AC_ARG_ENABLE(strip-chopping, 956 AS_HELP_STRING([--disable-strip-chopping], 957 [disable support for strip chopping (whether or not to convert single-strip uncompressed images to mutiple strips of specified size to reduce memory usage)]), 958 [HAVE_STRIPCHOP=$enableval], [HAVE_STRIPCHOP=yes]) 959AC_ARG_WITH(default-strip-size, 960 AS_HELP_STRING([--with-default-strip-size=SIZE], 961 [default size of the strip in bytes (when strip chopping enabled) [[default=8192]]]),,) 962 963if test "$HAVE_STRIPCHOP" = "yes" \ 964 -a "x$with_default_strip_size" != "xno"; then 965 AC_DEFINE(STRIPCHOP_DEFAULT,TIFF_STRIPCHOP,[Support strip chopping (whether or not to convert single-strip uncompressed images to mutiple strips of specified size to reduce memory usage)]) 966 967 if test "x$with_default_strip_size" = "x" \ 968 -o "x$with_default_strip_size" = "xyes"; then 969 with_default_strip_size="8192" 970 fi 971 972 AC_DEFINE_UNQUOTED(STRIP_SIZE_DEFAULT,$with_default_strip_size,[Default size of the strip in bytes (when strip chopping enabled)]) 973 974fi 975 976dnl --------------------------------------------------------------------------- 977dnl Should we try to defer loading of strip/tile offsets and sizes to 978dnl optimize directory scanning? These is an experimental feature for 979dnl libtiff 4.0. 980dnl --------------------------------------------------------------------------- 981 982AC_ARG_ENABLE(defer-strile-load, 983 AS_HELP_STRING([--enable-defer-strile-load], 984 [enable deferred strip/tile offset/size loading (experimental)]), 985 [HAVE_DEFER_STRILE_LOAD=$enableval], [HAVE_DEFER_STRILE_LOAD=no]) 986 987if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 988 AC_DEFINE(DEFER_STRILE_LOAD,1,[enable deferred strip/tile offset/size loading (experimental)]) 989 990fi 991 992dnl --------------------------------------------------------------------------- 993dnl Check for support of CHUNKY_STRIP_READ_SUPPORT, a mechanism to allowing 994dnl reading large strips (usually one strip files) in chunks when using 995dnl TIFFReadScanline(). This is an experimental feature in libtiff 4.0. 996dnl --------------------------------------------------------------------------- 997 998AC_ARG_ENABLE(chunky-strip-read, 999 AS_HELP_STRING([--enable-chunky-strip-read], 1000 [enable reading large strips in chunks for TIFFReadScanline() (experimental)]), 1001 [HAVE_CHUNKY_STRIP_READ=$enableval], [HAVE_CHUNKY_STRIP_READ=no]) 1002 1003if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 1004 AC_DEFINE(CHUNKY_STRIP_READ_SUPPORT,1,[enable partial strip reading for large strips (experimental)]) 1005 1006fi 1007 1008dnl --------------------------------------------------------------------------- 1009dnl Default subifd support. 1010dnl --------------------------------------------------------------------------- 1011AC_DEFINE(SUBIFD_SUPPORT,1,[Enable SubIFD tag (330) support]) 1012 1013dnl --------------------------------------------------------------------------- 1014dnl Default handling of ASSOCALPHA support. 1015dnl --------------------------------------------------------------------------- 1016 1017AC_ARG_ENABLE(extrasample-as-alpha, 1018 AS_HELP_STRING([--disable-extrasample-as-alpha], 1019 [the RGBA interface will treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA files but don't mark the alpha properly]), 1020 [HAVE_EXTRASAMPLE_AS_ALPHA=$enableval], 1021 [HAVE_EXTRASAMPLE_AS_ALPHA=yes]) 1022 1023if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 1024 AC_DEFINE(DEFAULT_EXTRASAMPLE_AS_ALPHA, 1, 1025 [Treat extra sample as alpha (default enabled). The RGBA interface will treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA files but don't mark the alpha properly.]) 1026fi 1027 1028dnl --------------------------------------------------------------------------- 1029dnl Default handling of YCbCr subsampling support. 1030dnl See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details. 1031dnl --------------------------------------------------------------------------- 1032 1033AC_ARG_ENABLE(check-ycbcr-subsampling, 1034 AS_HELP_STRING([--disable-check-ycbcr-subsampling], 1035 [disable picking up YCbCr subsampling info from the JPEG data stream to support files lacking the tag]), 1036 [CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval], 1037 [CHECK_JPEG_YCBCR_SUBSAMPLING=yes]) 1038 1039if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 1040 AC_DEFINE(CHECK_JPEG_YCBCR_SUBSAMPLING, 1, 1041 [Pick up YCbCr subsampling info from the JPEG data stream to support files lacking the tag (default enabled).]) 1042fi 1043 1044dnl --------------------------------------------------------------------------- 1045 1046AC_SUBST(LIBDIR) 1047 1048AC_CONFIG_HEADERS([libtiff/tif_config.h libtiff/tiffconf.h]) 1049 1050AC_CONFIG_FILES([Makefile \ 1051 build/Makefile \ 1052 contrib/Makefile \ 1053 contrib/addtiffo/Makefile \ 1054 contrib/dbs/Makefile \ 1055 contrib/dbs/xtiff/Makefile \ 1056 contrib/iptcutil/Makefile \ 1057 contrib/mfs/Makefile \ 1058 contrib/pds/Makefile \ 1059 contrib/ras/Makefile \ 1060 contrib/stream/Makefile \ 1061 contrib/tags/Makefile \ 1062 contrib/win_dib/Makefile \ 1063 html/Makefile \ 1064 html/images/Makefile \ 1065 html/man/Makefile \ 1066 libtiff-4.pc \ 1067 libtiff/Makefile \ 1068 man/Makefile \ 1069 port/Makefile \ 1070 test/Makefile \ 1071 tools/Makefile]) 1072AC_OUTPUT 1073 1074dnl --------------------------------------------------------------------------- 1075dnl Display configuration status 1076dnl --------------------------------------------------------------------------- 1077 1078LOC_MSG() 1079LOC_MSG([Libtiff is now configured for ${host}]) 1080LOC_MSG() 1081LOC_MSG([ Installation directory: ${prefix}]) 1082LOC_MSG([ Documentation directory: ${LIBTIFF_DOCDIR}]) 1083LOC_MSG([ C compiler: ${CC} ${CFLAGS}]) 1084LOC_MSG([ C++ compiler: ${CXX} ${CXXFLAGS}]) 1085LOC_MSG([ Enable runtime linker paths: ${HAVE_RPATH}]) 1086LOC_MSG([ Enable linker symbol versioning: ${have_ld_version_script}]) 1087LOC_MSG([ Support Microsoft Document Imaging: ${HAVE_MDI}]) 1088LOC_MSG([ Use win32 IO: ${win32_io_ok}]) 1089LOC_MSG() 1090LOC_MSG([ Support for internal codecs:]) 1091LOC_MSG([ CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}]) 1092LOC_MSG([ Macintosh PackBits algorithm: ${HAVE_PACKBITS}]) 1093LOC_MSG([ LZW algorithm: ${HAVE_LZW}]) 1094LOC_MSG([ ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}]) 1095LOC_MSG([ NeXT 2-bit RLE algorithm: ${HAVE_NEXT}]) 1096LOC_MSG([ LogLuv high dynamic range encoding: ${HAVE_LOGLUV}]) 1097LOC_MSG() 1098LOC_MSG([ Support for external codecs:]) 1099LOC_MSG([ ZLIB support: ${HAVE_ZLIB}]) 1100LOC_MSG([ Pixar log-format algorithm: ${HAVE_PIXARLOG}]) 1101LOC_MSG([ JPEG support: ${HAVE_JPEG}]) 1102LOC_MSG([ Old JPEG support: ${HAVE_OJPEG}]) 1103LOC_MSG([ JPEG 8/12 bit dual mode: ${HAVE_JPEG12}]) 1104LOC_MSG([ ISO JBIG support: ${HAVE_JBIG}]) 1105LOC_MSG([ LZMA2 support: ${HAVE_LZMA}]) 1106LOC_MSG() 1107LOC_MSG([ C++ support: ${HAVE_CXX}]) 1108LOC_MSG() 1109dnl LOC_MSG([ X Athena Widgets support: ${HAVE_XAW}]) 1110LOC_MSG([ OpenGL support: ${HAVE_OPENGL}]) 1111LOC_MSG() 1112 1113