|
kusano |
7d535a |
dnl -*- Autoconf -*-
|
|
kusano |
7d535a |
dnl Tag Image File Format (TIFF) Software
|
|
kusano |
7d535a |
dnl
|
|
kusano |
7d535a |
dnl Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu></dron@ak4719.spb.edu>
|
|
kusano |
7d535a |
dnl
|
|
kusano |
7d535a |
dnl Permission to use, copy, modify, distribute, and sell this software and
|
|
kusano |
7d535a |
dnl its documentation for any purpose is hereby granted without fee, provided
|
|
kusano |
7d535a |
dnl that (i) the above copyright notices and this permission notice appear in
|
|
kusano |
7d535a |
dnl all copies of the software and related documentation, and (ii) the names of
|
|
kusano |
7d535a |
dnl Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
kusano |
7d535a |
dnl publicity relating to the software without the specific, prior written
|
|
kusano |
7d535a |
dnl permission of Sam Leffler and Silicon Graphics.
|
|
kusano |
7d535a |
dnl
|
|
kusano |
7d535a |
dnl THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
kusano |
7d535a |
dnl EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
kusano |
7d535a |
dnl WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
kusano |
7d535a |
dnl
|
|
kusano |
7d535a |
dnl IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
kusano |
7d535a |
dnl ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
kusano |
7d535a |
dnl OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
kusano |
7d535a |
dnl WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
kusano |
7d535a |
dnl LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
kusano |
7d535a |
dnl OF THIS SOFTWARE.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Process this file with autoconf to produce a configure script.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_PREREQ(2.64)
|
|
kusano |
7d535a |
AC_INIT([LibTIFF Software],[4.0.3],[tiff@lists.maptools.org],[tiff])
|
|
kusano |
7d535a |
AC_CONFIG_AUX_DIR(config)
|
|
kusano |
7d535a |
AC_CONFIG_MACRO_DIR(m4)
|
|
kusano |
7d535a |
AC_LANG(C)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Compute the canonical host (run-time) system type variable
|
|
kusano |
7d535a |
AC_CANONICAL_HOST
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AM_INIT_AUTOMAKE
|
|
kusano |
7d535a |
dnl Do not rebuild generated files every time
|
|
kusano |
7d535a |
AM_MAINTAINER_MODE
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Versioning.
|
|
kusano |
7d535a |
dnl Don't fill the ALPHA_VERSION field, if not applicable.
|
|
kusano |
7d535a |
LIBTIFF_MAJOR_VERSION=4
|
|
kusano |
7d535a |
LIBTIFF_MINOR_VERSION=0
|
|
kusano |
7d535a |
LIBTIFF_MICRO_VERSION=3
|
|
kusano |
7d535a |
LIBTIFF_ALPHA_VERSION=
|
|
kusano |
7d535a |
LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
|
|
kusano |
7d535a |
dnl This will be used with the 'make release' target
|
|
kusano |
7d535a |
LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Libtool library revision control info
|
|
kusano |
7d535a |
dnl See the libtool documentation under the heading "Libtool's versioning
|
|
kusano |
7d535a |
dnl system" in order to understand the meaning of these fields
|
|
kusano |
7d535a |
dnl
|
|
kusano |
7d535a |
dnl current
|
|
kusano |
7d535a |
dnl The most recent interface number that this library implements.
|
|
kusano |
7d535a |
dnl revision
|
|
kusano |
7d535a |
dnl The implementation number of the current interface.
|
|
kusano |
7d535a |
dnl age
|
|
kusano |
7d535a |
dnl The difference between the newest and oldest interfaces that
|
|
kusano |
7d535a |
dnl this library implements. In other words, the library implements
|
|
kusano |
7d535a |
dnl all the interface numbers in the range from number current -
|
|
kusano |
7d535a |
dnl age to current.
|
|
kusano |
7d535a |
dnl
|
|
kusano |
7d535a |
dnl Here are a set of rules to help you update your library version
|
|
kusano |
7d535a |
dnl information:
|
|
kusano |
7d535a |
dnl
|
|
kusano |
7d535a |
dnl 1. Start with version information of `0:0:0' for each libtool library.
|
|
kusano |
7d535a |
dnl 2. Update the version information only immediately before a public
|
|
kusano |
7d535a |
dnl release of your software. More frequent updates are unnecessary, and
|
|
kusano |
7d535a |
dnl only guarantee that the current interface number gets larger faster.
|
|
kusano |
7d535a |
dnl 3. If the library source code has changed at all since the last update,
|
|
kusano |
7d535a |
dnl then increment revision (`c:r:a' becomes `c:r+1:a').
|
|
kusano |
7d535a |
dnl 4. If any interfaces have been added, removed, or changed since the last
|
|
kusano |
7d535a |
dnl update, increment current, and set revision to 0.
|
|
kusano |
7d535a |
dnl 5. If any interfaces have been added since the last public release, then
|
|
kusano |
7d535a |
dnl increment age.
|
|
kusano |
7d535a |
dnl 6. If any interfaces have been removed since the last public release,
|
|
kusano |
7d535a |
dnl then set age to 0.
|
|
kusano |
7d535a |
LIBTIFF_CURRENT=7
|
|
kusano |
7d535a |
LIBTIFF_REVISION=0
|
|
kusano |
7d535a |
LIBTIFF_AGE=2
|
|
kusano |
7d535a |
LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
|
|
kusano |
7d535a |
# in OpenBSD uses some special semantics for shared libraries. Their soname
|
|
kusano |
7d535a |
# contains only two numbers, major and minor.
|
|
kusano |
7d535a |
# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
|
|
kusano |
7d535a |
#case "$host_os" in
|
|
kusano |
7d535a |
# openbsd* | mirbsd*)
|
|
kusano |
7d535a |
# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
|
|
kusano |
7d535a |
# ;;
|
|
kusano |
7d535a |
# *)
|
|
kusano |
7d535a |
# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
|
|
kusano |
7d535a |
# ;;
|
|
kusano |
7d535a |
#esac
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_SUBST(LIBTIFF_MAJOR_VERSION)
|
|
kusano |
7d535a |
AC_SUBST(LIBTIFF_MINOR_VERSION)
|
|
kusano |
7d535a |
AC_SUBST(LIBTIFF_MICRO_VERSION)
|
|
kusano |
7d535a |
AC_SUBST(LIBTIFF_ALPHA_VERSION)
|
|
kusano |
7d535a |
AC_SUBST(LIBTIFF_VERSION)
|
|
kusano |
7d535a |
AC_SUBST(LIBTIFF_VERSION_INFO)
|
|
kusano |
7d535a |
AC_SUBST(LIBTIFF_RELEASE_DATE)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Checks for programs.
|
|
kusano |
7d535a |
AC_PROG_CC
|
|
kusano |
7d535a |
AM_PROG_CC_C_O
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl We want warnings. As many warnings as possible.
|
|
kusano |
7d535a |
VL_PROG_CC_WARNINGS()
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_PROG_INSTALL
|
|
kusano |
7d535a |
AC_PROG_LN_S
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Check if LD supports linker scripts, and define automake conditional
|
|
kusano |
7d535a |
# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently
|
|
kusano |
7d535a |
# constrained to compilers using GNU ld on ELF systems or systems
|
|
kusano |
7d535a |
# which provide an adequate emulation thereof.
|
|
kusano |
7d535a |
AC_ARG_ENABLE([ld-version-script],
|
|
kusano |
7d535a |
AS_HELP_STRING([--enable-ld-version-script],
|
|
kusano |
7d535a |
[enable linker version script (default is disabled)]),
|
|
kusano |
7d535a |
[have_ld_version_script=$enableval], [have_ld_version_script=no])
|
|
kusano |
7d535a |
if test "$have_ld_version_script" != no; then
|
|
kusano |
7d535a |
AC_MSG_CHECKING([if LD -Wl,--version-script works])
|
|
kusano |
7d535a |
save_LDFLAGS="$LDFLAGS"
|
|
kusano |
7d535a |
LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
|
|
kusano |
7d535a |
cat > conftest.map <
|
|
kusano |
7d535a |
VERS_1 {
|
|
kusano |
7d535a |
global: sym;
|
|
kusano |
7d535a |
};
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
VERS_2 {
|
|
kusano |
7d535a |
global: sym;
|
|
kusano |
7d535a |
} VERS_1;
|
|
kusano |
7d535a |
EOF
|
|
kusano |
7d535a |
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
|
|
kusano |
7d535a |
[have_ld_version_script=yes], [have_ld_version_script=no])
|
|
kusano |
7d535a |
rm -f conftest.map
|
|
kusano |
7d535a |
LDFLAGS="$save_LDFLAGS"
|
|
kusano |
7d535a |
AC_MSG_RESULT($have_ld_version_script)
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Tests for Windows
|
|
kusano |
7d535a |
AC_EXEEXT
|
|
kusano |
7d535a |
AC_OBJEXT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl initialize libtool
|
|
kusano |
7d535a |
LT_INIT([win32-dll])
|
|
kusano |
7d535a |
LT_LANG([C++])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Enable support for silent build rules
|
|
kusano |
7d535a |
AM_SILENT_RULES
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl We don't need to add math library to all targets
|
|
kusano |
7d535a |
case "${host_os}" in
|
|
kusano |
7d535a |
cygwin* | mingw32* | beos* | darwin*)
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
*)
|
|
kusano |
7d535a |
AC_CHECK_LIB(m,sin,,,)
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
esac
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiff_libs_private=
|
|
kusano |
7d535a |
AC_SUBST(tiff_libs_private)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Checks for header files.
|
|
kusano |
7d535a |
AC_CHECK_HEADERS([assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
kusano |
7d535a |
AC_C_CONST
|
|
kusano |
7d535a |
AC_C_INLINE
|
|
kusano |
7d535a |
AC_C_BIGENDIAN
|
|
kusano |
7d535a |
AC_TYPE_OFF_T
|
|
kusano |
7d535a |
AC_TYPE_SIZE_T
|
|
kusano |
7d535a |
AC_HEADER_TIME
|
|
kusano |
7d535a |
AC_STRUCT_TM
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Compute sized types for current CPU and compiler options
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(signed short)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(unsigned short)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(signed int)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(unsigned int)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(signed long)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(unsigned long)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
|
|
kusano |
7d535a |
# If 'long long' is not supported then the value defined is zero.
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(signed long long)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain size of a 'unsigned long long' and define as
|
|
kusano |
7d535a |
# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
|
|
kusano |
7d535a |
# supported then the value defined is zero.
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(unsigned long long)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Obtain the size of an 'unsigned char *' and define as
|
|
kusano |
7d535a |
# SIZEOF_UNSIGNED_CHAR_P. Result is available in
|
|
kusano |
7d535a |
# ac_cv_sizeof_unsigned_char_p.
|
|
kusano |
7d535a |
AC_CHECK_SIZEOF(unsigned char *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for signed 8-bit type)
|
|
kusano |
7d535a |
INT8_T='signed char'
|
|
kusano |
7d535a |
AC_MSG_RESULT($INT8_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_INT8_T,$INT8_T,[Signed 8-bit type])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for unsigned 8-bit type)
|
|
kusano |
7d535a |
UINT8_T='unsigned char'
|
|
kusano |
7d535a |
AC_MSG_RESULT($UINT8_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_UINT8_T,$UINT8_T,[Unsigned 8-bit type])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for signed 16-bit type)
|
|
kusano |
7d535a |
INT16_T='signed short'
|
|
kusano |
7d535a |
AC_MSG_RESULT($INT16_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_INT16_T,$INT16_T,[Signed 16-bit type])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for unsigned 16-bit type)
|
|
kusano |
7d535a |
UINT16_T='unsigned short'
|
|
kusano |
7d535a |
AC_MSG_RESULT($UINT16_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_UINT16_T,$UINT16_T,[Unsigned 16-bit type])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for signed 32-bit type)
|
|
kusano |
7d535a |
INT32_T='none'
|
|
kusano |
7d535a |
INT32_FORMAT='none'
|
|
kusano |
7d535a |
if test $ac_cv_sizeof_signed_int -eq 4
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
INT32_T='signed int'
|
|
kusano |
7d535a |
INT32_FORMAT='"%d"'
|
|
kusano |
7d535a |
elif test $ac_cv_sizeof_signed_long -eq 4
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
INT32_T='signed long'
|
|
kusano |
7d535a |
INT32_FORMAT='"%ld"'
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_MSG_RESULT($INT32_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_INT32_T,$INT32_T,[Signed 32-bit type])
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_INT32_FORMAT,$INT32_FORMAT,[Signed 32-bit type formatter])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for unsigned 32-bit type)
|
|
kusano |
7d535a |
UINT32_T='none'
|
|
kusano |
7d535a |
UINT32_FORMAT='none'
|
|
kusano |
7d535a |
if test $ac_cv_sizeof_unsigned_int -eq 4
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
UINT32_T='unsigned int'
|
|
kusano |
7d535a |
UINT32_FORMAT='"%u"'
|
|
kusano |
7d535a |
elif test $ac_cv_sizeof_unsigned_long -eq 4
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
UINT32_T='unsigned long'
|
|
kusano |
7d535a |
UINT32_FORMAT='"%lu"'
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_MSG_RESULT($UINT32_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_UINT32_T,$UINT32_T,[Unsigned 32-bit type])
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_UINT32_FORMAT,$UINT32_FORMAT,[Unsigned 32-bit type formatter])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for signed 64-bit type)
|
|
kusano |
7d535a |
INT64_T='none'
|
|
kusano |
7d535a |
INT64_FORMAT='none'
|
|
kusano |
7d535a |
if test $ac_cv_sizeof_signed_long -eq 8
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
INT64_T='signed long'
|
|
kusano |
7d535a |
INT64_FORMAT='"%ld"'
|
|
kusano |
7d535a |
elif test $ac_cv_sizeof_signed_long_long -eq 8
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
INT64_T='signed long long'
|
|
kusano |
7d535a |
case "${host_os}" in
|
|
kusano |
7d535a |
mingw32*)
|
|
kusano |
7d535a |
# MinGW32 understands 'long long', but uses printf from WIN32 CRT
|
|
kusano |
7d535a |
INT64_FORMAT='"%I64d"'
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
*)
|
|
kusano |
7d535a |
INT64_FORMAT='"%lld"'
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
esac
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_RESULT($INT64_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_INT64_T,$INT64_T,[Signed 64-bit type])
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_INT64_FORMAT,$INT64_FORMAT,[Signed 64-bit type formatter])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for unsigned 64-bit type)
|
|
kusano |
7d535a |
UINT64_T='none'
|
|
kusano |
7d535a |
UINT64_FORMAT='none'
|
|
kusano |
7d535a |
if test $ac_cv_sizeof_unsigned_long -eq 8
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
UINT64_T='unsigned long'
|
|
kusano |
7d535a |
UINT64_FORMAT='"%lu"'
|
|
kusano |
7d535a |
elif test $ac_cv_sizeof_unsigned_long_long -eq 8
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
UINT64_T='unsigned long long'
|
|
kusano |
7d535a |
case "${host_os}" in
|
|
kusano |
7d535a |
mingw32*)
|
|
kusano |
7d535a |
# MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
|
|
kusano |
7d535a |
UINT64_FORMAT='"%I64u"'
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
*)
|
|
kusano |
7d535a |
UINT64_FORMAT='"%llu"'
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
esac
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_MSG_RESULT($UINT64_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_UINT64_T,$UINT64_T,[Unsigned 64-bit type])
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_UINT64_FORMAT,$UINT64_FORMAT,[Unsigned 64-bit type formatter])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Determine TIFF equivalent of ssize_t
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for signed size type)
|
|
kusano |
7d535a |
SSIZE_T='unknown'
|
|
kusano |
7d535a |
SSIZE_FORMAT='unknown'
|
|
kusano |
7d535a |
if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
SSIZE_T='signed long'
|
|
kusano |
7d535a |
SSIZE_FORMAT='"%ld"'
|
|
kusano |
7d535a |
elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
SSIZE_T='signed long long'
|
|
kusano |
7d535a |
SSIZE_FORMAT='"%lld"'
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_MSG_RESULT($SSIZE_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_SSIZE_T,$SSIZE_T,[Signed size type])
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_SSIZE_FORMAT,$SSIZE_FORMAT,[Signed size type formatter])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Determine the type to use for the difference between two pointers.
|
|
kusano |
7d535a |
# We will default to the POSIX ptrdiff_t if it is available, but will
|
|
kusano |
7d535a |
# be prepared for the case when it is not.
|
|
kusano |
7d535a |
PTRDIFF_T='unknown'
|
|
kusano |
7d535a |
PTRDIFF_FORMAT='"%ld"'
|
|
kusano |
7d535a |
AC_CHECK_TYPE(ptrdiff_t,[PTRDIFF_T=ptrdiff_t])
|
|
kusano |
7d535a |
if test $PTRDIFF_T = unknown
|
|
kusano |
7d535a |
then
|
|
kusano |
7d535a |
PTRDIFF_T=$SSIZE_T
|
|
kusano |
7d535a |
PTRDIFF_FORMAT=$SSIZE_FORMAT
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_MSG_CHECKING(for pointer difference type)
|
|
kusano |
7d535a |
AC_MSG_RESULT($PTRDIFF_T)
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_PTRDIFF_T,$PTRDIFF_T,[Pointer difference type])
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(TIFF_PTRDIFF_FORMAT,$PTRDIFF_FORMAT,[Pointer difference type formatter])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Some compilers (IBM VisualAge) has these types defined, so check it here:
|
|
kusano |
7d535a |
AC_CHECK_TYPES([int8, int16, int32],,,
|
|
kusano |
7d535a |
[
|
|
kusano |
7d535a |
#if HAVE_INTTYPES_H
|
|
kusano |
7d535a |
# include <inttypes.h></inttypes.h>
|
|
kusano |
7d535a |
#endif
|
|
kusano |
7d535a |
])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Checks for library functions.
|
|
kusano |
7d535a |
AC_CHECK_FUNCS([floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl Will use local replacements for unavailable functions
|
|
kusano |
7d535a |
AC_REPLACE_FUNCS(getopt)
|
|
kusano |
7d535a |
AC_REPLACE_FUNCS(strcasecmp)
|
|
kusano |
7d535a |
AC_REPLACE_FUNCS(strtoul)
|
|
kusano |
7d535a |
AC_REPLACE_FUNCS(strtoull)
|
|
kusano |
7d535a |
AC_REPLACE_FUNCS(lfind)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check the native cpu bit order.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
AC_MSG_CHECKING([native cpu bit order])
|
|
kusano |
7d535a |
case "$host_cpu" in
|
|
kusano |
7d535a |
i*86*|x86_64*)
|
|
kusano |
7d535a |
HOST_FILLORDER=FILLORDER_LSB2MSB
|
|
kusano |
7d535a |
AC_MSG_RESULT([lsb2msb])
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
*)
|
|
kusano |
7d535a |
HOST_FILLORDER=FILLORDER_MSB2LSB
|
|
kusano |
7d535a |
AC_MSG_RESULT([msb2lsb])
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
esac
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(HOST_FILLORDER, $HOST_FILLORDER, [Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB)])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Configure legacy tifconf.h HOST_BIGENDIAN.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
if test "$ac_cv_c_bigendian" = yes ; then
|
|
kusano |
7d535a |
HOST_BIGENDIAN=1
|
|
kusano |
7d535a |
else
|
|
kusano |
7d535a |
HOST_BIGENDIAN=0
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(HOST_BIGENDIAN,$HOST_BIGENDIAN,[Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian (Intel)])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Make the POSIX.2 features available.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
#_POSIX_C_SOURCE=2
|
|
kusano |
7d535a |
#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Set the floating point format.
|
|
kusano |
7d535a |
dnl FIXME: write appropriate test.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
HAVE_IEEEFP=1
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(HAVE_IEEEFP, $HAVE_IEEEFP, [Define as 0 or 1 according to the floating point format suported by the machine])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Enable run-time paths to libraries usage.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(rpath,
|
|
kusano |
7d535a |
AS_HELP_STRING([--enable-rpath],
|
|
kusano |
7d535a |
[Enable runtime linker paths (-R libtool option)]),
|
|
kusano |
7d535a |
[HAVE_RPATH=$enableval], [HAVE_RPATH=no])
|
|
kusano |
7d535a |
AM_CONDITIONAL(HAVE_RPATH, test "$HAVE_RPATH" = "yes")
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Support large files.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_SYS_LARGEFILE
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Point to path where we should install documentation.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_WITH(docdir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-docdir=DIR],
|
|
kusano |
7d535a |
[directory where documentation should be installed]),,)
|
|
kusano |
7d535a |
if test "x$with_docdir" != "x" ; then
|
|
kusano |
7d535a |
LIBTIFF_DOCDIR=$with_docdir
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_SUBST(LIBTIFF_DOCDIR)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Switch on/off internal codecs.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(ccitt,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-ccitt],
|
|
kusano |
7d535a |
[disable support for CCITT Group 3 & 4 algorithms]),
|
|
kusano |
7d535a |
[HAVE_CCITT=$enableval], [HAVE_CCITT=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_CCITT" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(CCITT_SUPPORT,1,[Support CCITT Group 3 & 4 algorithms])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(packbits,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-packbits],
|
|
kusano |
7d535a |
[disable support for Macintosh PackBits algorithm]),
|
|
kusano |
7d535a |
[HAVE_PACKBITS=$enableval], [HAVE_PACKBITS=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_PACKBITS" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(PACKBITS_SUPPORT,1,[Support Macintosh PackBits algorithm])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(lzw,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-lzw],
|
|
kusano |
7d535a |
[disable support for LZW algorithm]),
|
|
kusano |
7d535a |
[HAVE_LZW=$enableval], [HAVE_LZW=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_LZW" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(LZW_SUPPORT,1,[Support LZW algorithm])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(thunder,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-thunder],
|
|
kusano |
7d535a |
[disable support for ThunderScan 4-bit RLE algorithm]),
|
|
kusano |
7d535a |
[HAVE_THUNDER=$enableval], [HAVE_THUNDER=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_THUNDER" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(THUNDER_SUPPORT,1,[Support ThunderScan 4-bit RLE algorithm])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
HAVE_NEXT=yes
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(next,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-next],
|
|
kusano |
7d535a |
[disable support for NeXT 2-bit RLE algorithm]),
|
|
kusano |
7d535a |
[HAVE_NEXT=$enableval], [HAVE_NEXT=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_NEXT" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(NEXT_SUPPORT,1,[Support NeXT 2-bit RLE algorithm])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(logluv,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-logluv],
|
|
kusano |
7d535a |
[disable support for LogLuv high dynamic range encoding]),
|
|
kusano |
7d535a |
[HAVE_LOGLUV=$enableval], [HAVE_LOGLUV=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_LOGLUV" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(LOGLUV_SUPPORT,1,[Support LogLuv high dynamic range encoding])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Switch on/off support for Microsoft Document Imaging
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(mdi,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-mdi],
|
|
kusano |
7d535a |
[disable support for Microsoft Document Imaging]),
|
|
kusano |
7d535a |
[HAVE_MDI=$enableval], [HAVE_MDI=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_MDI" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(MDI_SUPPORT,1,[Support Microsoft Document Imaging format])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for ZLIB.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
HAVE_ZLIB=no
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(zlib,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-zlib],
|
|
kusano |
7d535a |
[disable Zlib usage (required for Deflate compression, enabled by default)]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(zlib-include-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-zlib-include-dir=DIR],
|
|
kusano |
7d535a |
[location of Zlib headers]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(zlib-lib-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-zlib-lib-dir=DIR],
|
|
kusano |
7d535a |
[location of Zlib library binary]),,)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$enable_zlib" != "xno" ; then
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_zlib_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_CHECK_LIB(z, inflateEnd, [zlib_lib=yes], [zlib_lib=no],)
|
|
kusano |
7d535a |
if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
|
|
kusano |
7d535a |
AC_MSG_ERROR([Zlib library not found at $with_zlib_lib_dir])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_zlib_include_dir" != "x" ; then
|
|
kusano |
7d535a |
CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_CHECK_HEADER(zlib.h, [zlib_h=yes], [zlib_h=no])
|
|
kusano |
7d535a |
if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
|
|
kusano |
7d535a |
AC_MSG_ERROR([Zlib headers not found at $with_zlib_include_dir])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
|
|
kusano |
7d535a |
HAVE_ZLIB=yes
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_ZLIB" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(ZIP_SUPPORT,1,[Support Deflate compression])
|
|
kusano |
7d535a |
LIBS="-lz $LIBS"
|
|
kusano |
7d535a |
tiff_libs_private="-lz ${tiff_libs_private}"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for Pixar log-format algorithm.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(pixarlog,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-pixarlog],
|
|
kusano |
7d535a |
[disable support for Pixar log-format algorithm (requires Zlib)]),
|
|
kusano |
7d535a |
[HAVE_PIXARLOG=$enableval], [HAVE_PIXARLOG=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(PIXARLOG_SUPPORT, 1,
|
|
kusano |
7d535a |
[Support Pixar log-format algorithm (requires Zlib)])
|
|
kusano |
7d535a |
else
|
|
kusano |
7d535a |
HAVE_PIXARLOG=no
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for JPEG.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
HAVE_JPEG=no
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(jpeg,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-jpeg],
|
|
kusano |
7d535a |
[disable IJG JPEG library usage (required for JPEG compression, enabled by default)]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(jpeg-include-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-jpeg-include-dir=DIR],
|
|
kusano |
7d535a |
[location of IJG JPEG library headers]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(jpeg-lib-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-jpeg-lib-dir=DIR],
|
|
kusano |
7d535a |
[location of IJG JPEG library binary]),,)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$enable_jpeg" != "xno" ; then
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_jpeg_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_CHECK_LIB(jpeg, jpeg_read_scanlines, [jpeg_lib=yes], [jpeg_lib=no],)
|
|
kusano |
7d535a |
if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
AC_MSG_ERROR([IJG JPEG library not found at $with_jpeg_lib_dir])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_jpeg_include_dir" != "x" ; then
|
|
kusano |
7d535a |
CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_CHECK_HEADER(jpeglib.h, [jpeg_h=yes], [jpeg_h=no])
|
|
kusano |
7d535a |
if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
|
|
kusano |
7d535a |
AC_MSG_ERROR([IJG JPEG library headers not found at $with_jpeg_include_dir])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
|
|
kusano |
7d535a |
HAVE_JPEG=yes
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_JPEG" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(JPEG_SUPPORT,1,[Support JPEG compression (requires IJG JPEG library)])
|
|
kusano |
7d535a |
LIBS="-ljpeg $LIBS"
|
|
kusano |
7d535a |
tiff_libs_private="-ljpeg ${tiff_libs_private}"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for Old JPEG.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(old-jpeg,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-old-jpeg],
|
|
kusano |
7d535a |
[disable support for Old JPEG compresson (read-only, enabled by default)]),
|
|
kusano |
7d535a |
[HAVE_OJPEG=${enableval}], [HAVE_OJPEG=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(OJPEG_SUPPORT, 1,
|
|
kusano |
7d535a |
[Support Old JPEG compresson (read-only)])
|
|
kusano |
7d535a |
else
|
|
kusano |
7d535a |
HAVE_OJPEG=no
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for JBIG-KIT.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
HAVE_JBIG=no
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(jbig,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-jbig],
|
|
kusano |
7d535a |
[disable JBIG-KIT usage (required for ISO JBIG compression, enabled by default)]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(jbig-include-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-jbig-include-dir=DIR],
|
|
kusano |
7d535a |
[location of JBIG-KIT headers]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(jbig-lib-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-jbig-lib-dir=DIR],
|
|
kusano |
7d535a |
[location of JBIG-KIT library binary]),,)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$enable_jbig" != "xno" ; then
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_jbig_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_CHECK_LIB(jbig, jbg_dec_init, [jbig_lib=yes], [jbig_lib=no],)
|
|
kusano |
7d535a |
if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
AC_MSG_ERROR([JBIG-KIT library not found at $with_jbig_lib_dir])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_jbig_include_dir" != "x" ; then
|
|
kusano |
7d535a |
CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_CHECK_HEADER(jbig.h, [jbig_h=yes], [jbig_h=no])
|
|
kusano |
7d535a |
if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
|
|
kusano |
7d535a |
AC_MSG_ERROR([JBIG-KIT library headers not found at $with_jbig_include_dir])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
|
|
kusano |
7d535a |
HAVE_JBIG=yes
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_JBIG" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(JBIG_SUPPORT,1,[Support ISO JBIG compression (requires JBIG-KIT library)])
|
|
kusano |
7d535a |
LIBS="-ljbig $LIBS"
|
|
kusano |
7d535a |
tiff_libs_private="-ljbig ${tiff_libs_private}"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
# Older versions of jbigkit lack jbg_newlen
|
|
kusano |
7d535a |
AC_CHECK_FUNCS([jbg_newlen])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for liblzma2.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
HAVE_LZMA=no
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(lzma,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-lzma],
|
|
kusano |
7d535a |
[disable liblzma usage (required for LZMA2 compression, enabled by default)]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(lzma-include-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-lzma-include-dir=DIR],
|
|
kusano |
7d535a |
[location of liblzma headers]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(lzma-lib-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-lzma-lib-dir=DIR],
|
|
kusano |
7d535a |
[location of liblzma library binary]),,)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$enable_lzma" != "xno" ; then
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_lzma_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_CHECK_LIB(lzma, lzma_code, [lzma_lib=yes], [lzma_lib=no],)
|
|
kusano |
7d535a |
if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
|
|
kusano |
7d535a |
AC_MSG_ERROR([lzma library not found at $with_lzma_lib_dir])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_lzma_include_dir" != "x" ; then
|
|
kusano |
7d535a |
CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
AC_CHECK_HEADER(lzma.h, [lzma_h=yes], [lzma_h=no])
|
|
kusano |
7d535a |
if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
|
|
kusano |
7d535a |
AC_MSG_ERROR([Liblzma headers not found at $with_lzma_include_dir])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
|
|
kusano |
7d535a |
HAVE_LZMA=yes
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_LZMA" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(LZMA_SUPPORT,1,[Support LZMA2 compression])
|
|
kusano |
7d535a |
LIBS="-llzma $LIBS"
|
|
kusano |
7d535a |
tiff_libs_private="-llzma ${tiff_libs_private}"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
|
|
kusano |
7d535a |
LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Should 8/12 bit jpeg mode be enabled?
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
HAVE_JPEG12=no
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(jpeg12,
|
|
kusano |
7d535a |
AS_HELP_STRING([--enable-jpeg12],
|
|
kusano |
7d535a |
[enable libjpeg 8/12bit dual mode]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(jpeg12-include-dir,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-jpeg12-include-dir=DIR],
|
|
kusano |
7d535a |
[location of libjpeg 12bit headers]),,)
|
|
kusano |
7d535a |
AC_ARG_WITH(jpeg12-lib,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-jpeg12-lib=LIBRARY],
|
|
kusano |
7d535a |
[path to libjpeg 12bit library]),,)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$enable_jpeg12" == "xyes" ; then
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_jpeg12_lib" != "x" ; then
|
|
kusano |
7d535a |
LIBS="$with_jpeg12_lib $LIBS"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
HAVE_JPEG12=yes
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_DEFINE(JPEG_DUAL_MODE_8_12,1,[8/12 bit libjpeg dual mode enabled])
|
|
kusano |
7d535a |
if test "x$with_jpeg12_include_dir" != "x" ; then
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(LIBJPEG_12_PATH,"$with_jpeg12_include_dir/jpeglib.h",[12bit libjpeg primary include file with path])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for C++.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(cxx,
|
|
kusano |
7d535a |
AS_HELP_STRING([--enable-cxx],
|
|
kusano |
7d535a |
[enable C++ stream API building (requires C++ compiler)]),
|
|
kusano |
7d535a |
[HAVE_CXX=$enableval], [HAVE_CXX=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_CXX" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(CXX_SUPPORT, 1, [Support C++ stream API (requires C++ compiler)])
|
|
kusano |
7d535a |
else
|
|
kusano |
7d535a |
HAVE_CXX=no
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AM_CONDITIONAL(HAVE_CXX, test "$HAVE_CXX" = "yes")
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for OpenGL and GLUT.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
HAVE_OPENGL=no
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_PATH_XTRA
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl AX_CHECK_GL sets GL_CFLAGS & GL_LIBS. Also PTHREAD_LIBS,
|
|
kusano |
7d535a |
dnl PTHREAD_CFLAGS, & PTHREAD_CC as a side-effect
|
|
kusano |
7d535a |
AX_CHECK_GL
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl AX_CHECK_GLU sets GLU_CFLAGS & GLU_LIBS
|
|
kusano |
7d535a |
AX_CHECK_GLU
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl AX_CHECK_GLUT sets GLUT_CFLAGS & GLUT_LIBS
|
|
kusano |
7d535a |
AX_CHECK_GLUT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$no_x" != "yes" -a "$no_gl" != "yes" \
|
|
kusano |
7d535a |
-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
|
|
kusano |
7d535a |
HAVE_OPENGL=yes
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AM_CONDITIONAL(HAVE_OPENGL, test "$HAVE_OPENGL" = "yes")
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for Win32 IO: make sure we have windows.h but not cygwin
|
|
kusano |
7d535a |
dnl this must be after the ogl test, since that looks for windows.h and we
|
|
kusano |
7d535a |
dnl test it
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
win32_io_ok=no
|
|
kusano |
7d535a |
case "${host_os}" in
|
|
kusano |
7d535a |
cygwin*)
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
*)
|
|
kusano |
7d535a |
if test x"$ac_cv_header_windows_h" = xyes; then
|
|
kusano |
7d535a |
win32_io_ok=yes
|
|
kusano |
7d535a |
AC_DEFINE(USE_WIN32_FILEIO,1,[define to use win32 IO system])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
;;
|
|
kusano |
7d535a |
esac
|
|
kusano |
7d535a |
AM_CONDITIONAL([WIN32_IO], [test "$win32_io_ok" = yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for X Athena Widgets
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl HAVE_XAW=no
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ICE_FIND_ATHENA
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl if test "$no_xaw" != "yes" ; then
|
|
kusano |
7d535a |
dnl HAVE_XAW=yes
|
|
kusano |
7d535a |
dnl fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl AM_CONDITIONAL(HAVE_XAW, test "$HAVE_XAW" = "yes")
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ===========================================================================
|
|
kusano |
7d535a |
dnl ``Orthogonal Features''
|
|
kusano |
7d535a |
dnl ===========================================================================
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Default handling of strip chopping support.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(strip-chopping,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-strip-chopping],
|
|
kusano |
7d535a |
[disable support for strip chopping (whether or not to convert single-strip uncompressed images to mutiple strips of specified size to reduce memory usage)]),
|
|
kusano |
7d535a |
[HAVE_STRIPCHOP=$enableval], [HAVE_STRIPCHOP=yes])
|
|
kusano |
7d535a |
AC_ARG_WITH(default-strip-size,
|
|
kusano |
7d535a |
AS_HELP_STRING([--with-default-strip-size=SIZE],
|
|
kusano |
7d535a |
[default size of the strip in bytes (when strip chopping enabled) [[default=8192]]]),,)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_STRIPCHOP" = "yes" \
|
|
kusano |
7d535a |
-a "x$with_default_strip_size" != "xno"; then
|
|
kusano |
7d535a |
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)])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "x$with_default_strip_size" = "x" \
|
|
kusano |
7d535a |
-o "x$with_default_strip_size" = "xyes"; then
|
|
kusano |
7d535a |
with_default_strip_size="8192"
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_DEFINE_UNQUOTED(STRIP_SIZE_DEFAULT,$with_default_strip_size,[Default size of the strip in bytes (when strip chopping enabled)])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Should we try to defer loading of strip/tile offsets and sizes to
|
|
kusano |
7d535a |
dnl optimize directory scanning? These is an experimental feature for
|
|
kusano |
7d535a |
dnl libtiff 4.0.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(defer-strile-load,
|
|
kusano |
7d535a |
AS_HELP_STRING([--enable-defer-strile-load],
|
|
kusano |
7d535a |
[enable deferred strip/tile offset/size loading (experimental)]),
|
|
kusano |
7d535a |
[HAVE_DEFER_STRILE_LOAD=$enableval], [HAVE_DEFER_STRILE_LOAD=no])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(DEFER_STRILE_LOAD,1,[enable deferred strip/tile offset/size loading (experimental)])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Check for support of CHUNKY_STRIP_READ_SUPPORT, a mechanism to allowing
|
|
kusano |
7d535a |
dnl reading large strips (usually one strip files) in chunks when using
|
|
kusano |
7d535a |
dnl TIFFReadScanline(). This is an experimental feature in libtiff 4.0.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(chunky-strip-read,
|
|
kusano |
7d535a |
AS_HELP_STRING([--enable-chunky-strip-read],
|
|
kusano |
7d535a |
[enable reading large strips in chunks for TIFFReadScanline() (experimental)]),
|
|
kusano |
7d535a |
[HAVE_CHUNKY_STRIP_READ=$enableval], [HAVE_CHUNKY_STRIP_READ=no])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(CHUNKY_STRIP_READ_SUPPORT,1,[enable partial strip reading for large strips (experimental)])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Default subifd support.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
AC_DEFINE(SUBIFD_SUPPORT,1,[Enable SubIFD tag (330) support])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Default handling of ASSOCALPHA support.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(extrasample-as-alpha,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-extrasample-as-alpha],
|
|
kusano |
7d535a |
[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]),
|
|
kusano |
7d535a |
[HAVE_EXTRASAMPLE_AS_ALPHA=$enableval],
|
|
kusano |
7d535a |
[HAVE_EXTRASAMPLE_AS_ALPHA=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(DEFAULT_EXTRASAMPLE_AS_ALPHA, 1,
|
|
kusano |
7d535a |
[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.])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Default handling of YCbCr subsampling support.
|
|
kusano |
7d535a |
dnl See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_ARG_ENABLE(check-ycbcr-subsampling,
|
|
kusano |
7d535a |
AS_HELP_STRING([--disable-check-ycbcr-subsampling],
|
|
kusano |
7d535a |
[disable picking up YCbCr subsampling info from the JPEG data stream to support files lacking the tag]),
|
|
kusano |
7d535a |
[CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval],
|
|
kusano |
7d535a |
[CHECK_JPEG_YCBCR_SUBSAMPLING=yes])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
|
|
kusano |
7d535a |
AC_DEFINE(CHECK_JPEG_YCBCR_SUBSAMPLING, 1,
|
|
kusano |
7d535a |
[Pick up YCbCr subsampling info from the JPEG data stream to support files lacking the tag (default enabled).])
|
|
kusano |
7d535a |
fi
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_SUBST(LIBDIR)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_CONFIG_HEADERS([libtiff/tif_config.h libtiff/tiffconf.h])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
AC_CONFIG_FILES([Makefile \
|
|
kusano |
7d535a |
build/Makefile \
|
|
kusano |
7d535a |
contrib/Makefile \
|
|
kusano |
7d535a |
contrib/addtiffo/Makefile \
|
|
kusano |
7d535a |
contrib/dbs/Makefile \
|
|
kusano |
7d535a |
contrib/dbs/xtiff/Makefile \
|
|
kusano |
7d535a |
contrib/iptcutil/Makefile \
|
|
kusano |
7d535a |
contrib/mfs/Makefile \
|
|
kusano |
7d535a |
contrib/pds/Makefile \
|
|
kusano |
7d535a |
contrib/ras/Makefile \
|
|
kusano |
7d535a |
contrib/stream/Makefile \
|
|
kusano |
7d535a |
contrib/tags/Makefile \
|
|
kusano |
7d535a |
contrib/win_dib/Makefile \
|
|
kusano |
7d535a |
html/Makefile \
|
|
kusano |
7d535a |
html/images/Makefile \
|
|
kusano |
7d535a |
html/man/Makefile \
|
|
kusano |
7d535a |
libtiff-4.pc \
|
|
kusano |
7d535a |
libtiff/Makefile \
|
|
kusano |
7d535a |
man/Makefile \
|
|
kusano |
7d535a |
port/Makefile \
|
|
kusano |
7d535a |
test/Makefile \
|
|
kusano |
7d535a |
tools/Makefile])
|
|
kusano |
7d535a |
AC_OUTPUT
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
dnl Display configuration status
|
|
kusano |
7d535a |
dnl ---------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
LOC_MSG()
|
|
kusano |
7d535a |
LOC_MSG([Libtiff is now configured for ${host}])
|
|
kusano |
7d535a |
LOC_MSG()
|
|
kusano |
7d535a |
LOC_MSG([ Installation directory: ${prefix}])
|
|
kusano |
7d535a |
LOC_MSG([ Documentation directory: ${LIBTIFF_DOCDIR}])
|
|
kusano |
7d535a |
LOC_MSG([ C compiler: ${CC} ${CFLAGS}])
|
|
kusano |
7d535a |
LOC_MSG([ C++ compiler: ${CXX} ${CXXFLAGS}])
|
|
kusano |
7d535a |
LOC_MSG([ Enable runtime linker paths: ${HAVE_RPATH}])
|
|
kusano |
7d535a |
LOC_MSG([ Enable linker symbol versioning: ${have_ld_version_script}])
|
|
kusano |
7d535a |
LOC_MSG([ Support Microsoft Document Imaging: ${HAVE_MDI}])
|
|
kusano |
7d535a |
LOC_MSG([ Use win32 IO: ${win32_io_ok}])
|
|
kusano |
7d535a |
LOC_MSG()
|
|
kusano |
7d535a |
LOC_MSG([ Support for internal codecs:])
|
|
kusano |
7d535a |
LOC_MSG([ CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}])
|
|
kusano |
7d535a |
LOC_MSG([ Macintosh PackBits algorithm: ${HAVE_PACKBITS}])
|
|
kusano |
7d535a |
LOC_MSG([ LZW algorithm: ${HAVE_LZW}])
|
|
kusano |
7d535a |
LOC_MSG([ ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}])
|
|
kusano |
7d535a |
LOC_MSG([ NeXT 2-bit RLE algorithm: ${HAVE_NEXT}])
|
|
kusano |
7d535a |
LOC_MSG([ LogLuv high dynamic range encoding: ${HAVE_LOGLUV}])
|
|
kusano |
7d535a |
LOC_MSG()
|
|
kusano |
7d535a |
LOC_MSG([ Support for external codecs:])
|
|
kusano |
7d535a |
LOC_MSG([ ZLIB support: ${HAVE_ZLIB}])
|
|
kusano |
7d535a |
LOC_MSG([ Pixar log-format algorithm: ${HAVE_PIXARLOG}])
|
|
kusano |
7d535a |
LOC_MSG([ JPEG support: ${HAVE_JPEG}])
|
|
kusano |
7d535a |
LOC_MSG([ Old JPEG support: ${HAVE_OJPEG}])
|
|
kusano |
7d535a |
LOC_MSG([ JPEG 8/12 bit dual mode: ${HAVE_JPEG12}])
|
|
kusano |
7d535a |
LOC_MSG([ ISO JBIG support: ${HAVE_JBIG}])
|
|
kusano |
7d535a |
LOC_MSG([ LZMA2 support: ${HAVE_LZMA}])
|
|
kusano |
7d535a |
LOC_MSG()
|
|
kusano |
7d535a |
LOC_MSG([ C++ support: ${HAVE_CXX}])
|
|
kusano |
7d535a |
LOC_MSG()
|
|
kusano |
7d535a |
dnl LOC_MSG([ X Athena Widgets support: ${HAVE_XAW}])
|
|
kusano |
7d535a |
LOC_MSG([ OpenGL support: ${HAVE_OPENGL}])
|
|
kusano |
7d535a |
LOC_MSG()
|
|
kusano |
7d535a |
|