1 # Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
2 # dedicated to making software imaging solutions freely available.
4 # You may not use this file except in compliance with the License. You may
5 # obtain a copy of the License at
7 # http://www.imagemagick.org/script/license.php
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Copyright (C) 2003 - 2008 GraphicsMagick Group
19 m4_define([magick_major_version], [7])
20 m4_define([magick_minor_version], [0])
21 m4_define([magick_micro_version], [0])
22 m4_define([magick_version],
23 [magick_major_version.magick_minor_version.magick_micro_version])
24 m4_define([magick_svn_revision], esyscmd([sh -c "svnversion | sed -r 's/([0-9]+).*/\1/'"]))
26 AC_INIT([ImageMagick],[magick_version],[http://www.imagemagick.org],[ImageMagick-magick_version])
27 AC_CONFIG_SRCDIR([MagickCore/MagickCore.h])
28 AC_CONFIG_AUX_DIR([config])
29 AC_CONFIG_MACRO_DIR([m4])
30 AC_CONFIG_LIBOBJ_DIR([ltdl])
31 AC_CONFIG_HEADERS([config/config.h])
32 AX_PREFIX_CONFIG_H([MagickCore/magick-config.h],[MagickCore])
34 config/configure.xml \
35 config/delegates.xml \
36 config/ImageMagick.rdf \
37 config/MagickCore.dox \
38 config/MagickWand.dox \
39 config/type-dejavu.xml \
40 config/type-ghostscript.xml \
41 config/type-windows.xml \
44 Magick++/bin/Magick++-config \
45 MagickCore/ImageMagick.pc \
46 Magick++/lib/ImageMagick++.pc \
47 Magick++/lib/Magick++.pc \
48 MagickCore/MagickCore-config \
49 MagickCore/MagickCore.pc \
50 MagickCore/version.h \
53 PerlMagick/Magick.pm \
54 PerlMagick/Makefile.PL \
58 utilities/composite.1 \
62 utilities/identify.1 \
63 utilities/ImageMagick.1 \
68 MagickWand/MagickWand-config \
69 MagickWand/MagickWand.pc ])
72 # Save initial user-tunable values
75 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
76 eval isset=\${$var+set}
77 if test "$isset" = 'set'; then
79 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
82 AC_SUBST(DISTCHECK_CONFIG_FLAGS)
84 CONFIGURE_ARGS="$0 ${ac_configure_args}"
85 AC_SUBST(CONFIGURE_ARGS)
87 # Source file containing package/library versioning information.
88 . ${srcdir}/version.sh
90 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
95 MAGICK_TARGET_CPU=$host_cpu
96 AC_SUBST(MAGICK_TARGET_CPU)
98 MAGICK_TARGET_VENDOR=$host_vendor
99 AC_SUBST(MAGICK_TARGET_VENDOR)
101 MAGICK_TARGET_OS=$host_os
102 AC_SUBST(MAGICK_TARGET_OS)
104 # Substitute library versioning
105 AC_SUBST(MAGICK_LIBRARY_CURRENT)dnl
106 AC_SUBST(MAGICK_LIBRARY_REVISION)dnl
107 AC_SUBST(MAGICK_LIBRARY_AGE)dnl
108 AC_SUBST([MAGICK_LIBRARY_CURRENT_MIN],
109 [`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`])
110 AC_SUBST([MAGICK_LIBRARY_VERSION_INFO],
111 [$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE])
112 AC_SUBST([MAGICK_SVN_REVISION],[magick_svn_revision])
114 AC_SUBST(PACKAGE_NAME)dnl
115 AC_SUBST(PACKAGE_VERSION)dnl
116 AC_SUBST(PACKAGE_PERL_VERSION)dnl
117 AC_SUBST(PACKAGE_RELEASE)dnl
118 AC_SUBST(PACKAGE_CHANGE_DATE)dnl
119 AC_SUBST(PACKAGE_LIB_VERSION)dnl
120 AC_SUBST(PACKAGE_LIB_VERSION_NUMBER)dnl
121 AC_SUBST(PACKAGE_RELEASE_DATE)dnl
122 AC_SUBST(PACKAGE_VERSION_ADDENDUM)dnl
124 # Ensure that make can run correctly
127 AM_INIT_AUTOMAKE($PACKAGE_NAME,"${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}", ' ')
129 # Enable support for silent build rules
130 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
132 MAGICK_LIB_VERSION="0x"
133 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
134 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
136 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
137 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
138 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
140 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
141 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
142 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
144 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
145 AC_SUBST(MAGICK_LIB_VERSION)
147 # Definition used to define MagickLibVersionText in version.h
148 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
149 AC_SUBST(MAGICK_LIB_VERSION_TEXT)
151 # Definition used to define MagickLibVersionNumber in version.h
152 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
153 AC_SUBST(MAGICK_LIB_VERSION_NUMBER)
155 # Regenerate config.status if ChangeLog or version.sh is updated.
156 AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/version.sh'])
161 MAGICK_CPPFLAGS=$CPPFLAGS_USER
162 MAGICK_PCFLAGS=$CPPFLAGS_USER
168 # Evaluate shell variable equivalents to Makefile directory variables
170 if test "x$prefix" = xNONE; then
171 prefix=$ac_default_prefix
173 # Let make expand exec_prefix.
174 if test "x$exec_prefix" = xNONE; then
175 exec_prefix='${prefix}'
179 eval "eval PREFIX_DIR=${prefix}"
181 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
182 AC_SUBST(EXEC_PREFIX_DIR)
183 eval "eval BIN_DIR=$bindir"
185 eval "eval SBIN_DIR=$sbindir"
187 eval "eval LIBEXEC_DIR=$libexecdir"
188 AC_SUBST(LIBEXEC_DIR)
189 eval "eval DATA_DIR=$datadir"
191 eval "eval DOC_DIR=$docdir"
193 eval "eval SYSCONF_DIR=$sysconfdir"
194 AC_SUBST(SYSCONF_DIR)
195 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
196 AC_SUBST(SHAREDSTATE_DIR)
197 eval "eval LOCALSTATE_DIR=$localstatedir"
198 AC_SUBST(LOCALSTATE_DIR)
199 eval "eval LIB_DIR=$libdir"
201 eval "eval INCLUDE_DIR=$includedir"
202 AC_SUBST(INCLUDE_DIR)
203 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
204 AC_SUBST(PERSISTINCLUDE_DIR)
205 eval "eval INFO_DIR=$infodir"
207 eval "eval MAN_DIR=$mandir"
210 # Get full paths to source and build directories
211 srcdirfull="`cd $srcdir && pwd`"
215 # Compute variables useful for running uninstalled software.
217 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
218 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
219 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
220 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
222 case "${build_os}" in
224 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
225 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
226 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
227 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
236 AC_SUBST(MAGICK_CODER_MODULE_PATH)
237 AC_SUBST(MAGICK_CONFIGURE_SRC_PATH)
238 AC_SUBST(MAGICK_CONFIGURE_BUILD_PATH)
239 AC_SUBST(MAGICK_FILTER_MODULE_PATH)
244 # Enable OS features.
246 AC_USE_SYSTEM_EXTENSIONS
266 # Enable run-time checking.
268 AC_ARG_ENABLE([bounds-checking],
269 [AC_HELP_STRING([--bounds-checking],
270 [enable run-time bounds-checking])],
271 [enable_bounds_checking=$enableval],
272 [enable_bounds_checking='no'])
274 if test "$enable_bounds_checking" = yes; then
275 AC_DEFINE([_FORTIFY_SOURCE], [2],
276 [enable run-time bounds-checking])
287 native_win32_build='no'
295 native_win32_build='yes'
299 if test "${GDI32_LIBS}x" != 'x'; then
300 AC_DEFINE(WINGDI32_DELEGATE,1,Define to use the Windows GDI32 library)
303 AM_CONDITIONAL(WINGDI32_DELEGATE, test "${GDI32_LIBS}x" != 'x' )
304 AM_CONDITIONAL(WIN32_NATIVE_BUILD, test "${native_win32_build}" = 'yes' )
305 AM_CONDITIONAL(CYGWIN_BUILD, test "${cygwin_build}" = 'yes' )
306 AM_CONDITIONAL(USING_CL, test "x${CC}" = 'xcl.exe' )
308 WinPathScript="${srcdirfull}/winpath.sh"
309 AC_SUBST(WinPathScript)
312 # Compiler flags tweaks
314 if test "${GCC}" != "yes"; then
317 # aCC: HP ANSI C++ B3910B A.03.34
318 CFLAGS="${CFLAGS} -Wp,-H30000"
319 if test -n "${CXXFLAGS}"; then
322 CXXFLAGS="${CXXFLAGS} -AA"
326 # Compaq alphaev68-dec-osf5.1 compiler
327 if test -n "${CXXFLAGS}"; then
328 CXXFLAGS='-std strict_ansi -noimplicit_include'
330 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
335 # Check for lazy-loading.
336 AC_CACHE_CHECK([for linker lazyload option],[im_cv_ld_lazyload],
338 im_cv_ld_lazyload='none'
340 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
341 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
342 im_cv_ld_lazyload='-Wl,-zlazyload'
347 if test "${im_cv_ld_lazyload}" != 'none' ; then
348 if test -z "${LDFLAGS}" ; then
349 LDFLAGS="${im_cv_ld_lazyload}"
351 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
355 dnl Platform-specific stuff
357 *darwin* | *-macos10*)
358 dnl OS X universal binary support, requires --disable-dependency-tracking
359 AC_ARG_ENABLE([osx-universal-binary],
360 AC_HELP_STRING([--enable-osx-universal-binary],
361 [build universal binary on OS X [[default=no]]]),
362 [build_osxuniversal="${enableval}"], [build_osxuniversal=no])
364 if test "${build_osxuniversal}" != no ; then
365 if test "$enable_dependency_tracking" != no ; then
366 AC_MSG_ERROR([--enable-osx-universal-binary requires --disable-dependency-tracking.
367 Please re-run configure with these options:
368 --disable-dependency-tracking --enable-osx-universal-binary
371 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
372 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
373 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
378 # Enable support for threads
379 AC_ARG_WITH([threads],
380 [AC_HELP_STRING([--without-threads], [disable threads support])],
381 [with_threads=$withval],
382 [with_threads='yes'])
385 if test "$with_threads" != 'no'; then
387 if test "$ax_pthread_ok" = yes; then
389 DEF_THREAD="$PTHREAD_CFLAGS"
390 CFLAGS="$CFLAGS $DEF_THREAD"
391 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
392 if test "$CC" != "$PTHREAD_CC"; then
393 AC_MSG_WARN([Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads.])
396 AC_DEFINE(THREAD_SUPPORT,1,[Define if you have POSIX threads libraries and header files.])
400 # Enable support for OpenMP
401 if test "$have_threads" != 'yes'; then
402 ac_cv_prog_c_openmp=unsupported
405 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
406 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
407 AC_SUBST(OPENMP_CFLAGS)
408 if test "$enable_openmp" != no; then
409 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
410 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
414 # Enable support for OpenCL
416 CFLAGS="$CL_CFLAGS $CFLAGS"
417 LIBS="$CL_LIBS $LIBS"
419 if test "$enable_opencl" != no; then
420 if test "_OPENCL" = '1'; then
421 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
427 # Check for large file support
433 if test "$enable_largefile" != no; then
434 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
435 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
437 AC_MSG_CHECKING([for native large file support])
438 AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>
440 exit(!(sizeof(off_t) == 8));
442 [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
443 AC_MSG_RESULT([yes])],
444 [AC_MSG_RESULT([no])])
446 if test "$ac_cv_sys_large_files" != 'no'; then
447 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
449 if test "$ac_cv_sys_largefile_source" != 'no'; then
450 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
453 AC_SUBST(LFS_CPPFLAGS)
456 # Configure libtool & libltdl
462 AC_SUBST(LIBTOOL_DEPS)
465 LT_CONFIG_LTDL_DIR([ltdl])
466 LTDL_INIT([convenience nonrecursive])
468 # Check to see if building shared libraries
469 libtool_build_shared_libs='no'
470 if test "$enable_shared" = 'yes'; then
471 libtool_build_shared_libs='yes'
474 # Check to see if building static libraries
475 libtool_build_static_libs='no'
476 if test "$enable_static" = 'yes'; then
477 libtool_build_static_libs='yes'
480 AM_CONDITIONAL(WITH_SHARED_LIBS, test "${libtool_build_shared_libs}" = 'yes')
482 # Enable support for building loadable modules
484 AC_ARG_WITH([modules],
485 [AC_HELP_STRING([--with-modules],
486 [enable building dynamically loadable modules])],
487 [with_modules=$withval],
490 # Only allow building loadable modules if we are building shared libraries
491 if test "$with_modules" != 'no' ; then
492 if test "$libtool_build_shared_libs" = 'no'; then
493 AC_MSG_WARN([Modules may only be built if building shared libraries is enabled.])
497 if test "$with_modules" != 'no'; then
498 AC_DEFINE(BUILD_MODULES,1,Define if coders and filters are to be built as modules.)
500 AM_CONDITIONAL(WITH_MODULES, test "$with_modules" != 'no')
502 # Enable building/use of libltdl if we are building shared libraries regardless
503 # of whether modules are built or not.
505 if test "$libtool_build_shared_libs" != 'no'; then
509 AM_CONDITIONAL(WITH_LTDL, test "$with_ltdl" != 'no')
510 if test "$with_ltdl" != 'no'; then
511 AC_DEFINE(LTDL_DELEGATE,1,Define if using libltdl to support dynamically loadable modules)
514 if test X"$enable_shared" = Xyes; then
515 DLLDFLAGS=-export-dynamic
520 # Enable build using delegate libraries built in subdirectories rather than installed
521 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
522 AC_ARG_ENABLE([delegate-build],
523 [AC_HELP_STRING([--enable-delegate-build],
524 [look for delegate libraries in build directory])],
525 [enable_delegate_build=$enableval],
526 [enable_delegate_build='no'])
528 AC_ARG_ENABLE([deprecated],
529 [AC_HELP_STRING([--disable-deprecated],
530 [exclude deprecated methods in MagickCore and MagickWand API's])],
531 [enable_deprecated=$enableval],
532 [enable_deprecated='no'])
534 if test "$enable_deprecated" = 'yes'; then
535 AC_DEFINE(EXCLUDE_DEPRECATED,1,[exclude deprecated methods in MagickCore API])
537 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
540 # Build a version of ImageMagick which operates uninstalled.
541 # Used to build distributions located via MAGICK_HOME / executable path
542 AC_ARG_ENABLE([installed],
543 [AC_HELP_STRING([--disable-installed],
544 [Formally install ImageMagick under PREFIX])],
545 [enable_installed=$enableval],
546 [enable_installed='yes'])
548 if test "$enable_installed" = 'yes'; then
549 AC_DEFINE(INSTALLED_SUPPORT,1,[ImageMagick is formally installed under prefix])
551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
554 # Permit enciphering and deciphering image pixels.
555 AC_ARG_ENABLE([cipher],
556 [AC_HELP_STRING([--disable-cipher],
557 [disable enciphering and deciphering image pixels])],
558 [enable_cipher=$enableval],
559 [enable_cipher='yes'])
561 if test "$enable_cipher" = 'yes'; then
562 AC_DEFINE(CIPHER_SUPPORT,1,[permit enciphering and deciphering image pixels])
565 # Build an embeddable version of ImageMagick.
566 AC_ARG_ENABLE([embeddable],
567 [AC_HELP_STRING([--enable-embeddable],
568 [enable self-contained, embeddable, zero-configuration ImageMagick])],
569 [enable_embeddable=$enableval],
570 [enable_embeddable='no'])
572 if test "$enable_embeddable" = 'yes'; then
573 AC_DEFINE(EMBEDDABLE_SUPPORT,1,[Build self-contained, embeddable, zero-configuration ImageMagick])
576 # Build a high dynamic range version of ImageMagick.
577 AC_ARG_ENABLE([hdri],
578 [AC_HELP_STRING([--enable-hdri],
579 [accurately represent the wide range of intensity levels found in real scenes])],
580 [enable_hdri=$enableval],
584 if test "$enable_hdri" = 'yes'; then
586 AC_DEFINE(HDRI_SUPPORT,1,[accurately represent the wide range of intensity levels in real scenes])
587 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
589 AC_SUBST(MAGICK_HDRI)dnl
591 # Build a version of ImageMagick with assert statements.
592 AC_ARG_ENABLE([assert],
593 [AC_HELP_STRING([--disable-assert],
594 [disable assert() statements in build])],
595 [enable_assert=$enableval],
596 [enable_assert='yes'])
598 if test "$enable_assert" = 'no'; then
599 AC_DEFINE(NDEBUG,1,[Turn off assert statements])
602 # Add configure option --enable-maintainer-mode which enables dependency
603 # checking and generation useful to package maintainers. This is made an
604 # option to avoid confusing end users.
608 # Enable ccmalloc memory debugging support
609 AC_ARG_ENABLE([ccmalloc],
610 [AC_HELP_STRING([--enable-ccmalloc],
611 [enable 'ccmalloc' memory debug support])],
612 [enable_ccmalloc=$enableval],
613 [enable_ccmalloc='no'])
615 # Enable Electric Fence memory debugging support
616 AC_ARG_ENABLE([efence],
617 [AC_HELP_STRING([--enable-efence],
618 [enable 'efence' memory debug support])],
619 [enable_efence=$enableval],
620 [enable_efence='no'])
622 # Enable prof-based profiling support
623 AC_ARG_ENABLE([prof],
624 [AC_HELP_STRING([--enable-prof],
625 [enable 'prof' profiling support])],
626 [enable_prof=$enableval],
629 # Enable gprof-based profiling support
630 AC_ARG_ENABLE([gprof],
631 [AC_HELP_STRING([--enable-gprof],
632 [enable 'gprof' profiling support])],
633 [enable_gprof=$enableval],
636 # Enable gcov-based profiling support
637 AC_ARG_ENABLE([gcov],
638 [AC_HELP_STRING([--enable-gcov],
639 [enable 'gcov' profiling support])],
640 [enable_gcov=$enableval],
643 enable_profiling='no'
644 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
645 enable_profiling='yes'
646 if test "$libtool_build_shared_libs" = 'yes'; then
647 echo "Warning: Can not profile code using shared libraries"
651 # Magick API method prefix
652 AC_ARG_WITH([method-prefix],
653 [AC_HELP_STRING([--with-method-prefix=PREFIX],
654 [prefix MagickCore API methods])],
655 [with_method_prefix=$enableval],
656 [with_method_prefix=''])
658 if test "$with_method_prefix" != ''; then
659 AC_DEFINE_UNQUOTED(NAMESPACE_PREFIX,$with_method_prefix,[Magick API method prefix])
662 # Number of bits in a Quantum
663 AC_ARG_WITH([quantum-depth],
664 [AC_HELP_STRING([--with-quantum-depth=DEPTH],
665 [number of bits in a pixel quantum (default 16)])],
666 [with_quantum_depth=$withval],
667 [with_quantum_depth=16])
669 if test "$with_quantum_depth" != '8'; then
670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
673 case "${with_quantum_depth}" in
678 * ) AC_MSG_ERROR("Pixel quantum depth must have value of 8, 16, 32, or 64") ;;
680 QUANTUM_DEPTH="$with_quantum_depth"
681 AC_DEFINE_UNQUOTED(QUANTUM_DEPTH,$QUANTUM_DEPTH,[Number of bits in a pixel Quantum (8/16/32/64)])
682 AC_SUBST(QUANTUM_DEPTH)dnl
684 # Set pixel cache threshold
686 [AC_HELP_STRING([--with-cache=THRESHOLD],
687 [set pixel cache threshhold in MB (default available memory)])],
688 [with_cache=$withval],
691 if test "$with_cache" != ''; then
692 AC_DEFINE_UNQUOTED(PixelCacheThreshold,$with_cache,[Pixel cache threshold in MB (defaults to available memory)])
693 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
696 # Disable/Enable support for full delegate paths
697 AC_ARG_WITH([frozenpaths],
698 [AC_HELP_STRING([--with-frozenpaths],
699 [freeze delegate paths])],
700 [with_frozenpaths=$withval],
701 [with_frozenpaths='no'])
703 # Enable build/install of Magick++
704 AC_ARG_WITH([magick-plus-plus],
705 [AC_HELP_STRING([--without-magick-plus-plus],
706 [disable build/install of Magick++])],
707 [with_magick_plus_plus=$withval],
708 [with_magick_plus_plus='yes'])
710 # Disable build/install of PerlMagick.
712 [AC_HELP_STRING([--with-perl],
713 [enable build/install of PerlMagick])],
714 [with_perl=$withval],
717 # Options to pass when configuring PerlMagick
718 AC_ARG_WITH([perl-options],
719 [AC_HELP_STRING([--with-perl-options=OPTIONS],
720 [options to pass on command-line when generating PerlMagick's build file])],
721 PERL_MAKE_OPTIONS=$withval)
722 AC_SUBST(PERL_MAKE_OPTIONS)
724 # Enable umem, object-caching memory allocation library.
726 [ --with-umem enable umem memory allocation library support],
727 [with_umem=$withval],
729 if test "$with_umem" != 'yes' ; then
730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
734 # Specify path to shared libstdc++ if not in normal location
736 AC_ARG_WITH([libstdc],
737 [AC_HELP_STRING([--with-libstdc=DIR],
738 [ use libstdc++ in DIR (for GNU C++)])],
739 [with_libstdc=$withval],
742 if test "$with_libstdc" != ''; then
743 if test -d "$with_libstdc"; then
744 LIBSTDCLDFLAGS="-L$with_libstdc"
747 AC_SUBST(LIBSTDCLDFLAGS)
749 # Does gcc required -traditional?
750 AC_PROG_GCC_TRADITIONAL
754 # Set defines required to build DLLs and modules using MinGW
757 # These options are set for multi-thread DLL module build
758 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
760 # executable/Magick++: _DLL _MAGICKMOD_
761 MODULE_EXTRA_CPPFLAGS=''
762 LIBRARY_EXTRA_CPPFLAGS=''
763 if test "${native_win32_build}" = 'yes'; then
764 if test "${libtool_build_shared_libs}" = 'yes'; then
765 CPPFLAGS="$CPPFLAGS -D_DLL"
766 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
767 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
768 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
769 if test "$with_modules" = 'yes'; then
770 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
772 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
775 CPPFLAGS="$CPPFLAGS -D_LIB"
776 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
777 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
779 if test "$with_threads" = 'yes'; then
780 CPPFLAGS="$CPPFLAGS -D_MT"
781 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
782 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
785 AC_SUBST(MODULE_EXTRA_CPPFLAGS)
786 AC_SUBST(LIBRARY_EXTRA_CPPFLAGS)
788 # Check standard headers
790 if ! test x"$ac_cv_header_stdc" = x"yes"; then
791 AC_MSG_WARN([configure has detected that you do not have the ANSI standard C
792 header files. Compilation cannot proceed. Please install the ANSI C
793 headers and rerun this script.]);
798 # Check additional headers
799 AC_CHECK_HEADERS(arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h)
803 # Checks for typedefs, structures, and compiler characteristics.
816 # If the C compiler supports the keyword inline, do nothing. Otherwise
817 # define inline to __inline__ or __inline if it accepts one of those,
818 # otherwise define inline to be empty.
821 # If the C compiler supports the keyword restrict, do nothing. Otherwise
822 # define restrict to __restrict__ or __restrict if it accepts one of those,
823 # otherwise define restrict to be empty.
826 # If words are stored with the most significant byte first (like
827 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
830 # Define to a suitable type, if standard headers do not define it.
838 AC_TYPE_LONG_DOUBLE_WIDER
839 AC_TYPE_LONG_LONG_INT
853 AC_TYPE_UNSIGNED_LONG_LONG_INT
855 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
856 # C compiler predefines it.
859 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
860 AC_CHECK_SIZEOF(signed short)
862 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
863 AC_CHECK_SIZEOF(unsigned short)
865 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
866 AC_CHECK_SIZEOF(signed int)
868 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
869 AC_CHECK_SIZEOF(unsigned int)
871 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
872 AC_CHECK_SIZEOF(signed long)
874 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
875 AC_CHECK_SIZEOF(unsigned long)
877 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
878 # 'signed long long' is not supported then the value defined is zero.
879 AC_CHECK_SIZEOF(signed long long)
881 # Obtain size of a 'unsigned long long' and define as
882 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
883 # supported then the value defined is zero.
884 AC_CHECK_SIZEOF(unsigned long long)
886 # Obtain size of off_t and define as SIZEOF_OFF_T
887 AC_CHECK_SIZEOF(off_t)
889 # Obtain size of size_t and define as SIZEOF_SIZE_T
890 AC_CHECK_SIZEOF(size_t)
892 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
893 AC_CHECK_SIZEOF(ssize_t)
895 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
896 AC_CHECK_SIZEOF(unsigned int*)
899 # Compute sized types for current CPU and compiler options.
902 AC_MSG_CHECKING(for signed 8-bit type)
904 AC_MSG_RESULT($INT8_T)
907 AC_MSG_CHECKING(for unsigned 8-bit type)
908 UINT8_T='unsigned char'
909 AC_MSG_RESULT($UINT8_T)
912 AC_MSG_CHECKING(for signed 16-bit type)
913 INT16_T='signed short'
914 AC_MSG_RESULT($INT16_T)
917 AC_MSG_CHECKING(for unsigned 16-bit type)
918 UINT16_T='unsigned short'
919 AC_MSG_RESULT($UINT16_T)
922 AC_MSG_CHECKING(for signed 32-bit type)
925 if test $ac_cv_sizeof_signed_int -eq 4; then
928 elif test $ac_cv_sizeof_signed_long -eq 4; then
929 INT32_T='signed long'
932 AC_MSG_RESULT($INT32_T)
936 AC_MSG_CHECKING(for unsigned 32-bit type)
939 if test $ac_cv_sizeof_unsigned_int -eq 4; then
940 UINT32_T='unsigned int'
942 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
943 UINT32_T='unsigned long'
946 AC_MSG_RESULT($UINT32_T)
950 AC_MSG_CHECKING(for signed 64-bit type)
953 if test $ac_cv_sizeof_signed_long -eq 8; then
954 INT64_T='signed long'
956 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
957 INT64_T='signed long long'
960 case "${build_os}" in
965 AC_MSG_RESULT($INT64_T)
969 AC_MSG_CHECKING(for unsigned 64-bit type)
972 if test $ac_cv_sizeof_unsigned_long -eq 8; then
973 UINT64_T='unsigned long'
975 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
976 UINT64_T='unsigned long long'
979 case "${build_os}" in
984 AC_MSG_RESULT($UINT64_T)
988 AC_MSG_CHECKING(for unsigned maximum type)
991 if test "$UINT64_T" != 'none'; then
994 elif test "$UINT32_T" != 'none'; then
998 AC_MSG_RESULT($UINTMAX_T)
1002 AC_MSG_CHECKING(for pointer difference type)
1005 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
1006 UINTPTR_T='unsigned long'
1008 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
1009 UINTPTR_T='unsigned long long'
1012 AC_MSG_RESULT($UINTPTR_T)
1016 AC_MSG_CHECKING([whether our compiler supports __func__])
1018 [{ const char *func = __func__; return(func != 0 ? 0 : 1); }],
1019 AC_MSG_RESULT([yes]),
1021 AC_MSG_CHECKING([whether our compiler supports __FUNCTION__])
1023 [{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }],
1024 AC_MSG_RESULT([yes])
1025 AC_DEFINE(__func__, __FUNCTION__,
1026 [Define to appropriate substitue if compiler does not have __func__]),
1028 AC_DEFINE(__func__, __FILE__,
1029 [Define to appropriate substitue if compiler does not have __func__])))
1033 # Check for functions
1036 MAGICK_FUNC_MMAP_FILEIO
1037 AC_FUNC_CLOSEDIR_VOID
1041 AC_FUNC_SELECT_ARGTYPES
1042 AC_FUNC_SETVBUF_REVERSED
1051 AC_CHECK_LIB(m,sqrt,MATH_LIBS="-lm",,)
1052 LIBS="$MATH_LIBS $LIBS"
1055 AC_CHECK_FUNCS([acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat])
1058 # Check for clock_gettime().
1060 AC_SEARCH_LIBS(clock_gettime, rt,
1062 AC_DEFINE([HAVE_CLOCK_GETTIME],[1],[Define to 1 if you have clock_gettime.])
1063 AC_MSG_CHECKING([whether clock_gettime supports CLOCK_REALTIME])
1066 [[#include <time.h>]],
1067 [[clockid_t clockType = CLOCK_REALTIME;]])],
1070 AC_DEFINE([HAVE_CLOCK_REALTIME],[1],
1071 [Define to 1 if clock_gettime supports CLOCK_REALTIME.])
1077 AC_CHECK_FUNCS([gettimeofday ftime], [break])
1083 # Check for function prototypes
1087 AC_CHECK_DECLS([pread, pwrite],[],[],[
1088 #include <unistd.h>])
1090 AC_CHECK_DECLS([strlcpy],[],[],[
1091 #include <strings.h>])
1093 AC_CHECK_DECLS([vsnprintf],[],[],[
1095 #include <stdarg.h>])
1099 # C++ Support Tests (For Magick++)
1102 have_magick_plus_plus='no'
1103 if test "$with_magick_plus_plus" = 'yes'; then
1108 # Full set of headers used...
1109 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
1110 # functional iomanip iosfwd iostream iterator list string strstream utility
1115 AX_CXX_NAMESPACE_STD
1116 AC_CXX_HAVE_STD_LIBS
1120 AC_MSG_CHECKING([whether C++ compiler is sufficient for Magick++])
1122 test $ax_cv_cxx_bool = 'yes' && \
1123 test $ax_cv_cxx_namespaces = 'yes' && \
1124 test $ac_cv_cxx_have_std_libs = 'yes' && \
1125 test $ax_cv_cxx_have_std_namespace = 'yes'; then
1126 have_magick_plus_plus='yes'
1128 have_magick_plus_plus='no (failed tests)'
1130 AC_MSG_RESULT([$have_magick_plus_plus])
1133 AM_CONDITIONAL(WITH_MAGICK_PLUS_PLUS, test "$have_magick_plus_plus" = 'yes')
1135 # Only check for delegate libraries in subdirectories if requested.
1136 if test "$enable_delegate_build" != 'no'; then
1137 # Check for delegate sub-directories and add -I & -L options as required.
1138 # This presumes that delegates are installed as detailed in the ImageMagick
1139 # README. If delegates are installed in a standard location where the
1140 # compiler will automatically find them then these options should not be
1144 # Most delegates have includes in the same directory as the library, but not all...
1147 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
1148 if test -d "$builddir/$dir"; then
1149 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
1151 if test -d "$srcdirfull/$dir"; then
1152 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
1158 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
1159 if test -d "$builddir/$dir/.libs"; then
1160 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
1162 if test -d "$srcdirfull/$dir/.libs"; then
1163 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
1166 if test -d "$builddir/$dir"; then
1167 LDFLAGS="$LDFLAGS -L$builddir/$dir"
1169 if test -d "$srcdirfull/$dir"; then
1170 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
1176 # Assume that delegate headers reside under same directory as ImageMagick
1177 # installation prefix.
1178 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
1181 # Find the X11 RGB database
1183 AC_CACHE_CHECK(for X11 configure files,im_cv_x_configure,
1184 [# Look for the header file in a standard set of common directories.
1185 # Check X11 before X11Rn because it is often a symlink to the current release.
1194 /usr/XFree86/lib/X11 \
1202 /usr/local/X11/lib \
1203 /usr/local/X11R4/lib \
1204 /usr/local/X11R5/lib \
1205 /usr/local/X11R6/lib \
1207 /usr/local/lib/X11 \
1208 /usr/local/lib/X11R4 \
1209 /usr/local/lib/X11R5 \
1210 /usr/local/lib/X11R6 \
1211 /usr/local/lib/X11R7 \
1212 /usr/local/x11r5/lib \
1213 /usr/lpp/Xamples/lib \
1215 /usr/openwin/share/lib \
1216 /usr/unsupported/lib \
1219 if test -f "$ac_dir/X11/rgb.txt"; then
1220 im_cv_x_configure="$ac_dir/X11/"
1222 elif test -f "$ac_dir/rgb.txt"; then
1223 im_cv_x_configure="$ac_dir/"
1228 X11_CONFIGURE_PATH="$im_cv_x_configure"
1229 case "${build_os}" in
1231 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
1234 AC_DEFINE_UNQUOTED(X11_CONFIGURE_PATH,"$X11ConfigurePath",Location of X11 configure files)
1237 # Find OpenMP library
1240 if test "$enable_openmp" != 'no'; then
1241 if test "${GCC}" = "yes"; then
1242 AC_CHECK_LIB(gomp,GOMP_parallel_start,GOMP_LIBS="-lgomp",,) # gcc
1244 AC_CHECK_LIB(mtsk,sunw_mp_register_warn,GOMP_LIBS="-lmtsk",,) # solaris cc
1245 AC_CHECK_LIB(xlsmp,_xlsmpFlush,GOMP_LIBS="-lxlsmp",,) # AIX xlc
1246 AC_CHECK_LIB(mp,mp_destroy,GOMP_LIBS="-lmp",,) # SGI IRIX 6.5 MIPSpro C/C++
1248 LIBS="$GOMP_LIBS $LIBS"
1253 # Find Posix threads library
1256 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
1258 if test "x$PTHREAD_LIBS" = "x"; then
1259 case "${host_cpu}-${host_os}" in
1261 MAGICK_CHECK_PTHREAD_LIB(c_r,PTHREAD_LIBS=-lc_r) ;;
1265 for lib in pthread pthreads; do
1266 if test "x$PTHREAD_LIBS" = "x"; then
1267 MAGICK_CHECK_PTHREAD_LIB([$lib],[PTHREAD_LIBS=-l$lib])
1271 THREAD_LIBS="$PTHREAD_LIBS"
1272 LIBS="$LIBS $THREAD_LIBS"
1274 AC_SUBST(THREAD_LIBS)
1281 if test "$with_umem" != 'no'; then
1282 AC_MSG_CHECKING(for UMEM support )
1286 AC_CHECK_HEADER(umem.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
1287 AC_CHECK_LIB(umem,umem_alloc,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1288 AC_CHECK_LIB(umem,umem_free,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1289 AC_MSG_CHECKING(if umem memory allocation library is complete)
1290 if test $passed -gt 0; then
1291 if test $failed -gt 0; then
1292 AC_MSG_RESULT(no -- some components failed test)
1293 have_umem='no (failed tests)'
1296 LIBS="$UMEM_LIBS $LIBS"
1297 AC_DEFINE(HasUMEM,1,Define if you have umem memory allocation library)
1305 AM_CONDITIONAL(HasUMEM, test "$have_umem" = 'yes')
1309 # Add support for ccmalloc memory debugging library if requested
1313 if test "$enable_ccmalloc" = 'yes'; then
1314 AC_PATH_PROG(CCMALLOCDelegate,ccmalloc,)
1315 if test -n "$CCMALLOCDelegate"; then
1316 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
1318 # Assume that gcc is used with ccmalloc.
1319 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
1320 AC_CHECK_LIB(ccmalloc,ccmalloc_malloc,CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl",,-ldl)
1321 if test -n "$CCMALLOC_LIBS"; then
1323 LIBS="$LIBS $CCMALLOC_LIBS"
1332 # Add support for efence memory debugging library if requested
1334 if test "$enable_efence" = 'yes'; then
1335 EFENCE_LIBS='-lefence'
1336 LIBS="$EFENCE_LIBS $LIBS"
1339 dnl ===========================================================================
1345 AC_ARG_WITH([bzlib],
1346 [AC_HELP_STRING([--without-bzlib],
1347 [disable BZLIB support])],
1348 [with_bzlib=$withval],
1351 if test "$with_bzlib" != 'yes'; then
1352 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
1356 if test "$with_bzlib" != 'no'; then
1358 AC_MSG_RESULT([-------------------------------------------------------------])
1359 AC_MSG_CHECKING([for BZLIB])
1364 AC_CHECK_HEADER(bzlib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
1365 AC_CHECK_LIB(bz2,BZ2_bzDecompress,found_libbz=`expr $found_libbz + 1`,,)
1366 if test "$native_win32_build" = 'yes'; then
1367 AC_CHECK_LIB(bz2,_imp__BZ2_decompress,found_libbz=`expr $found_libbz + 1`,,)
1369 if test $found_libbz -gt 0; then
1370 passed=`expr $passed + 1`
1372 failed=`expr $failed + 1`
1374 AC_MSG_CHECKING(if BZLIB package is complete)
1375 if test $passed -gt 0; then
1376 if test $failed -gt 0; then
1377 AC_MSG_RESULT(no -- some components failed test)
1378 have_bzlib='no (failed tests)'
1381 LIBS="$BZLIB_LIBS $LIBS"
1382 AC_DEFINE(BZLIB_DELEGATE,1,Define if you have the bzip2 library)
1390 AM_CONDITIONAL(BZLIB_DELEGATE, test "$have_bzlib" = 'yes')
1391 AC_SUBST(BZLIB_LIBS)
1394 # Find the X11 include and library directories.
1401 if test "$no_x" != 'yes'; then
1402 AC_MSG_RESULT([-------------------------------------------------------------])
1403 AC_MSG_CHECKING([for X11])
1405 LDFLAGS="$LDFLAGS $X_LIBS"
1406 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
1407 LIBS="$X11_LIBS $LIBS"
1408 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1410 AC_DEFINE(X11_DELEGATE,1,Define if you have X11 library)dnl
1413 # Check for X11 shared memory extension
1415 # shmctl is required to support the shared memory extension
1416 AC_CHECK_FUNC([shmctl],[have_shmctl='yes'],[])
1417 if test "$have_shmctl" != 'yes'; then
1419 LIBS="$LIBS -lcygipc"
1420 AC_TRY_LINK_FUNC([shmctl],[have_shmctl='yes'; IPC_LIBS='-lcygipc'],[])
1424 if test "$have_shmctl" = 'yes'; then
1425 AC_CHECK_LIB([Xext],[XShmAttach],[XEXT_LIBS='-lXext' ; AC_DEFINE(HAVE_SHARED_MEMORY,1,X11 server supports shared memory extension)],[],[])
1429 # Check for X11 shape extension
1431 AC_CHECK_LIB([Xext],[XShapeCombineMask],[XEXT_LIBS='-lXext' ; AC_DEFINE(HAVE_SHAPE,1,X11 server supports shape extension)],[],[])
1432 AC_CHECK_LIB(Xt,XtSetEventDispatcher,XT_LIBS='-lXt',,)
1433 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
1435 if test "$no_x" != 'yes'; then
1440 AM_CONDITIONAL(X11_DELEGATE, test "$have_x" = 'yes')
1444 dnl ===========================================================================
1450 [AC_HELP_STRING([--without-zlib],
1451 [disable ZLIB support])],
1452 [with_zlib=$withval],
1455 if test "$with_zlib" != 'yes'; then
1456 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
1461 dnl PNG requires zlib so enable zlib check if PNG is requested
1462 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
1463 AC_MSG_RESULT([-------------------------------------------------------------])
1464 AC_MSG_CHECKING([for ZLIB])
1469 AC_CHECK_HEADER(zconf.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
1470 AC_CHECK_HEADER(zlib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
1471 AC_CHECK_LIB(z,compress,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1472 AC_CHECK_LIB(z,uncompress,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1473 AC_CHECK_LIB(z,deflate,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1474 AC_CHECK_LIB(z,inflate,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1475 AC_CHECK_LIB(z,gzseek,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1476 AC_CHECK_LIB(z,gztell,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1477 AC_MSG_CHECKING([if ZLIB package is complete])
1478 if test $passed -gt 0; then
1479 if test $failed -gt 0; then
1480 AC_MSG_RESULT([no -- some components failed test])
1481 have_zlib='no (failed tests)'
1484 LIBS="$ZLIB_LIBS $LIBS"
1485 AC_DEFINE(ZLIB_DELEGATE,1,Define if you have zlib compression library)
1486 AC_MSG_RESULT([yes])
1493 AM_CONDITIONAL(ZLIB_DELEGATE, test "$have_zlib" = 'yes')
1497 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
1500 if test "$enable_profiling" = 'yes'; then
1501 AC_CHECK_LIB(dl,dlopen,LIB_DL='-ldl',,)
1502 LIBS="$LIB_DL $LIBS"
1506 dnl ===========================================================================
1509 # Check for Autotrace delegate library.
1511 AC_ARG_WITH([autotrace],
1512 [AC_HELP_STRING([--with-autotrace],
1513 [enable autotrace support])],
1514 [with_autotrace=$withval],
1515 [with_autotrace='no'])
1517 if test "$with_autotrace" != 'yes'; then
1518 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
1525 if test "x$with_autotrace" = "xyes"; then
1526 AC_MSG_RESULT([-------------------------------------------------------------])
1527 PKG_CHECK_MODULES(AUTOTRACE,[autotrace >= 0.31.1], have_autotrace=yes, have_autotrace=no)
1531 if test "$have_autotrace" = 'yes'; then
1533 AC_DEFINE(AUTOTRACE_DELEGATE,1,Define if you have AUTOTRACE library)
1534 if test "$with_modules" = 'no'; then
1535 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
1539 AM_CONDITIONAL(AUTOTRACE_DELEGATE,test "$have_autotrace" = 'yes')
1540 AC_SUBST(AUTOTRACE_CFLAGS)
1541 AC_SUBST(AUTOTRACE_LIBS)
1543 dnl ===========================================================================
1546 # Check for Display Postscript delegate library.
1549 [AC_HELP_STRING([--without-dps],
1550 [disable Display Postscript support])],
1551 [with_dps=$withval],
1554 if test "$with_dps" != 'yes'; then
1555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
1560 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
1561 AC_MSG_RESULT([-------------------------------------------------------------])
1562 AC_MSG_CHECKING([for DPS])
1566 PERSIST_CPPFLAGS="$CPPFLAGS"
1567 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
1568 AC_CHECK_HEADER(DPS/dpsXclient.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
1570 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
1571 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
1572 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
1573 # ImageMagick itself doesn't use -lXt.
1576 AC_CHECK_LIB(dps,DPSInitialize,have_libdps='yes',have_libdps='no',)
1577 if test "$have_libdps" != 'yes'; then
1578 # Unset cache variable so we can try again.
1579 unset ac_cv_lib_dps_DPSInitialize
1580 AC_CHECK_LIB(dps,DPSInitialize,have_libdps='yes',have_libdps='no',-lXt)
1581 if test "$have_libdps" = 'yes'; then
1585 if test "$have_libdps" = 'yes'; then
1586 passed=`expr $passed + 1`
1588 failed=`expr $failed + 1`
1590 AC_CHECK_LIB(dpstk,XDPSPixelsPerPoint,passed=`expr $passed + 1`,failed=`expr $failed + 1`,-ldps $LIBDPS_XT)
1591 AC_MSG_CHECKING([if DPS package is complete])
1592 if test $passed -gt 0; then
1593 if test $failed -gt 0; then
1594 AC_MSG_RESULT([no -- some components failed test])
1595 have_dps='no (failed tests)'
1596 CPPFLAGS="$PERSIST_CPPFLAGS"
1598 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
1599 LIBS="$DPS_LIBS $LIBS"
1600 AC_DEFINE(DPS_DELEGATE,1,Define if you have Display Postscript)
1601 AC_MSG_RESULT([yes])
1606 CPPFLAGS=$PERSIST_CPPFLAGS
1609 AM_CONDITIONAL(DPS_DELEGATE, test "$have_dps" = 'yes')
1612 dnl ===========================================================================
1615 # Check for DJVU delegate library.
1618 [AC_HELP_STRING([--without-djvu],
1619 [disable DjVu support])],
1620 [with_djvu=$withval],
1623 if test "$with_djvu" != 'yes'; then
1624 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
1629 if test "$with_djvu" != 'no'; then
1630 AC_MSG_RESULT([-------------------------------------------------------------])
1631 AC_MSG_CHECKING([for DJVU])
1635 AC_CHECK_HEADER(libdjvu/ddjvuapi.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1636 AC_CHECK_LIB(djvulibre,ddjvu_context_create,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1637 AC_MSG_CHECKING([if DJVU package is complete])
1638 if test $passed -gt 0; then
1639 if test $failed -gt 0; then
1640 AC_MSG_RESULT([no -- some components failed test])
1641 have_djvu='no (failed tests)'
1643 DJVU_LIBS='-ldjvulibre'
1644 LIBS="$DJVU_LIBS $LIBS"
1645 AC_DEFINE(DJVU_DELEGATE,1,Define if you have DJVU library)
1646 AC_MSG_RESULT([yes])
1653 AM_CONDITIONAL(DJVU_DELEGATE, test "$have_djvu" = 'yes')
1656 dnl ===========================================================================
1659 # Set DejaVu font directory.
1661 AC_ARG_WITH([dejavu-font-dir],
1662 [AC_HELP_STRING([--with-dejavu-font-dir=DIR],
1663 [DejaVu font directory])],
1664 [with_dejavu_font_dir=$withval],
1665 [with_dejavu_font_dir='default'])
1667 if test "$with_dejavu_font_dir" != 'default'; then
1668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
1671 dnl ===========================================================================
1674 # Check for FFTW delegate library.
1677 [AC_HELP_STRING([--without-fftw],
1678 [disable FFTW support])],
1679 [with_fftw=$withval],
1682 if test "$with_fftw" != 'yes'; then
1683 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
1688 if test "$with_fftw" != 'no'; then
1689 AC_MSG_RESULT([-------------------------------------------------------------])
1690 AC_MSG_CHECKING([for FFTW])
1694 AC_CHECK_HEADER(fftw3.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1695 AC_CHECK_LIB(fftw3,fftw_execute,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1696 AC_MSG_CHECKING([if FFTW package is complete])
1697 if test $passed -gt 0; then
1698 if test $failed -gt 0; then
1699 AC_MSG_RESULT([no -- some components failed test])
1700 have_fftw='no (failed tests)'
1703 LIBS="$FFTW_LIBS $LIBS"
1704 AC_DEFINE(FFTW_DELEGATE,1,Define if you have FFTW library)
1705 AC_MSG_RESULT([yes])
1712 AM_CONDITIONAL(FFTW_DELEGATE, test "$have_fftw" = 'yes')
1715 dnl ===========================================================================
1718 # Check for FlashPIX delegate library.
1721 [AC_HELP_STRING([--without-fpx],
1722 [disable FlashPIX support])],
1723 [with_fpx=$withval],
1726 if test "$with_fpx" != 'yes'; then
1727 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
1732 if test "$with_fpx" != 'no'; then
1733 AC_MSG_RESULT([-------------------------------------------------------------])
1734 AC_MSG_CHECKING([for FlashPIX])
1739 AC_CHECK_HEADER(fpxlib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
1740 AC_CHECK_LIB(fpx,FPX_OpenImageByFilename,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
1742 AC_MSG_CHECKING([if FlashPIX package is complete])
1743 if test $passed -gt 0; then
1744 if test $failed -gt 0; then
1745 AC_MSG_RESULT([no -- some components failed test])
1746 have_fpx='no (failed tests)'
1749 AC_DEFINE(FPX_DELEGATE,1,Define if you have FlashPIX library)
1750 AC_MSG_RESULT([yes])
1758 AM_CONDITIONAL(FPX_DELEGATE, test "$have_fpx" = 'yes')
1761 dnl ===========================================================================
1764 # Check for fontconfig delegate library.
1766 AC_ARG_WITH([fontconfig],
1767 [AC_HELP_STRING([--without-fontconfig],
1768 [disable fontconfig support])],
1769 [with_fontconfig=$withval],
1770 [with_fontconfig=$have_x])
1772 if test "$with_fontconfig" != 'yes'; then
1773 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
1776 have_fontconfig='no'
1777 FONTCONFIG_CFLAGS=""
1780 if test "x$with_fontconfig" = "xyes"; then
1781 AC_MSG_RESULT([-------------------------------------------------------------])
1782 PKG_CHECK_MODULES(FONTCONFIG,[fontconfig >= 2.1.0], have_fontconfig=yes, have_fontconfig=no)
1786 if test "$have_fontconfig" = 'yes'; then
1787 AC_DEFINE(FONTCONFIG_DELEGATE,1,Define if you have FONTCONFIG library)
1788 if test "$with_modules" = 'no'; then
1789 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
1793 AM_CONDITIONAL(FONTCONFIG_DELEGATE,test "$have_fontconfig" = 'yes')
1794 AC_SUBST(FONTCONFIG_CFLAGS)
1795 AC_SUBST(FONTCONFIG_LIBS)
1797 dnl ===========================================================================
1800 # Check for freetype delegate library.
1802 AC_ARG_WITH([freetype],
1803 [AC_HELP_STRING([--without-freetype],
1804 [disable Freetype support])],
1805 [with_freetype=$withval],
1806 [with_freetype='yes'])
1809 if test "$with_freetype" != 'yes'; then
1810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
1815 if test "$with_freetype" != 'no'; then
1816 AC_MSG_RESULT([-------------------------------------------------------------])
1817 AC_MSG_CHECKING([for FreeType 2.0])
1821 PERSIST_LIBS="$LIBS"
1822 PERSIST_CPPFLAGS="$CPPFLAGS"
1823 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
1827 AC_CHECK_PROGS(freetype_config,freetype-config,)dnl
1828 if test -n "$freetype_config"; then
1829 freetype_cflags=`$freetype_config --cflags`
1830 freetype_libs=`$freetype_config --libs`
1831 LIBS="$LIBS $freetype_libs"
1832 CPPFLAGS="$freetype_cflags $CPPFLAGS"
1836 dnl First see if there is a library
1837 if test "$FREETYPE_LIBS" = ''; then
1838 AC_CHECK_LIB(freetype,FT_Init_FreeType,FREETYPE_LIBS='-lfreetype',,)
1839 if test "$FREETYPE_LIBS" != ''; then
1840 passed=`expr $passed + 1`
1842 failed=`expr $failed + 1`
1843 LIBS="$PERSIST_LIBS"
1847 dnl Now test for the headers
1848 AC_CHECK_HEADER([ft2build.h],[FT2BUILD_H='#include <ft2build.h>'],[ft2build=''],[])
1849 AC_CHECK_HEADER(freetype/freetype.h,[have_freetype_h='yes'],[have_freetype_h='no'],[$FT2BUILD_H])
1850 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
1851 passed=`expr $passed + 1`
1853 failed=`expr $failed + 1`
1854 CPPFLAGS="$PERSIST_CPPFLAGS"
1857 AC_MSG_CHECKING([if FreeType package is complete])
1858 if test $passed -gt 0; then
1859 if test $failed -gt 0; then
1861 AC_MSG_RESULT([no -- some components failed test])
1862 have_freetype='no (failed tests)'
1864 LIBS="$FREETYPE_LIBS $LIBS"
1865 AC_DEFINE(FREETYPE_DELEGATE,1,Define if you have FreeType (TrueType font) library)
1866 if test "$ac_cv_header_ft2build_h" = 'yes'; then
1867 AC_DEFINE([HAVE_FT2BUILD_H],[1],[Define to 1 if you have the <ft2build.h> header file.])
1869 AC_MSG_RESULT([yes])
1876 AM_CONDITIONAL(FREETYPE_DELEGATE,test "$have_freetype" = 'yes')
1877 AC_SUBST(FREETYPE_LIBS)
1879 dnl ===========================================================================
1881 dnl ===========================================================================
1884 # Check for Ghostscript library or framework.
1886 # Test for iapi.h & test for gsapi_new_instance in -lgs
1887 # or -framework Ghostscript
1889 AC_ARG_WITH([gslib],
1890 [AC_HELP_STRING([--without-gslib],
1891 [enable Ghostscript library support])],
1892 [with_gslib=$withval],
1895 gslib_framework='no'
1896 if test "$with_gslib" != 'yes'; then
1897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
1902 if test "$with_gslib" != 'no'; then
1903 AC_MSG_RESULT([-------------------------------------------------------------])
1904 AC_MSG_CHECKING([for Ghostscript])
1909 AC_CHECK_HEADER(ghostscript/iapi.h,passed=`expr $passed + 1`,
1910 failed=`expr $failed + 1`,)
1911 AC_CHECK_HEADER(ghostscript/ierrors.h,passed=`expr $passed + 1`,
1912 failed=`expr $failed + 1`,)
1913 AC_CHECK_FRAMEWORK(Ghostscript,gsapi_new_instance,framework=`expr $framework + 1`,
1914 AC_CHECK_LIB(gs,gsapi_new_instance,passed=`expr $passed + 1`,failed=`expr $failed + 1`,),)
1915 AC_MSG_CHECKING([if Ghostscript package is complete])
1916 if test $passed -gt 0; then
1917 if test $failed -gt 0; then
1918 AC_MSG_RESULT([no -- some components failed test])
1919 have_gslib='no (failed tests)'
1921 if test $framework -gt 0; then
1922 GS_LIBS='-framework Ghostscript'
1923 gslib_framework='yes'
1924 AC_MSG_RESULT([yes, using framework.])
1926 AC_MSG_RESULT([yes, using library.])
1929 LIBS="$GS_LIBS $LIBS"
1930 AC_DEFINE(GS_DELEGATE,1,Define if you have Ghostscript library or framework)
1937 AM_CONDITIONAL(GS_DELEGATE, test "$have_gslib" = 'yes')
1940 # Set default font search path
1941 AC_ARG_WITH([fontpath],
1942 [AC_HELP_STRING([--with-fontpath=DIR],
1943 [prepend to default font search path])],
1944 [with_fontpath=$withval],
1947 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
1950 AC_DEFINE_UNQUOTED(MAGICK_FONT_PATH,"$with_fontpath",Define to prepend to default font search path.)
1952 if test "$with_fontpath=" != ''; then
1953 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
1956 # Set Ghostscript font directory
1957 AC_ARG_WITH([gs-font-dir],
1958 [AC_HELP_STRING([--with-gs-font-dir=DIR],
1959 [Ghostscript font directory])],
1960 [with_gs_font_dir=$withval],
1961 [with_gs_font_dir='default'])
1963 if test "$with_gs_font_dir" != 'default'; then
1964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
1967 dnl ===========================================================================
1970 # Check for GVC delegate library.
1973 [AC_HELP_STRING([--without-gvc],
1974 [disable GVC support])],
1975 [with_gvc=$withval],
1978 if test "$with_gvc" != 'yes'; then
1979 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
1983 if test "x$with_gvc" = "xyes"; then
1984 AC_MSG_RESULT([-------------------------------------------------------------])
1985 PKG_CHECK_MODULES(GVC,[libgvc >= 2.9.0], have_gvc=yes, have_gvc=no)
1989 if test "$have_gvc" = 'yes'; then
1990 AC_DEFINE(GVC_DELEGATE,1,Define if you have GVC library)
1991 if test "$with_modules" = 'no'; then
1992 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
1996 AM_CONDITIONAL(GVC_DELEGATE, test "$have_gvc" = 'yes')
1997 AC_SUBST(GVC_CFLAGS)
2000 dnl ===========================================================================
2003 # Check for JBIG delegate library.
2007 [AC_HELP_STRING([--without-jbig],
2008 [disable JBIG support])],
2009 [with_jbig=$withval],
2014 if test "$with_jbig" != 'no'; then
2015 AC_MSG_RESULT([-------------------------------------------------------------])
2016 AC_MSG_CHECKING([for JBIG])
2020 AC_CHECK_HEADER(jbig.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2021 AC_CHECK_LIB(jbig,jbg_dec_init,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2022 AC_MSG_CHECKING([if JBIG package is complete])
2023 if test $passed -gt 0; then
2024 if test $failed -gt 0; then
2025 AC_MSG_RESULT([no -- some components failed test])
2026 have_jbig='no (failed tests)'
2029 LIBS="$JBIG_LIBS $LIBS"
2030 AC_DEFINE(JBIG_DELEGATE,1,Define if you have JBIG library)
2031 AC_MSG_RESULT([yes])
2038 AM_CONDITIONAL(JBIG_DELEGATE, test "$have_jbig" = 'yes')
2041 dnl ===========================================================================
2044 # Check for JPEG delegate library.
2047 [AC_HELP_STRING([--without-jpeg],
2048 [disable JPEG support])],
2049 [with_jpeg=$withval],
2052 if test "$with_jpeg" != 'yes'; then
2053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
2058 if test "$with_jpeg" != 'no'; then
2059 AC_MSG_RESULT([-------------------------------------------------------------])
2060 AC_MSG_CHECKING([for JPEG])
2064 AC_CHECK_HEADER(jconfig.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2065 AC_CHECK_HEADER(jerror.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2066 AC_CHECK_HEADER(jmorecfg.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2067 AC_CHECK_HEADER(jpeglib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2068 AC_CHECK_LIB(jpeg,jpeg_read_header,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2070 # Test for compatible JPEG library
2071 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
2072 AC_CACHE_CHECK(for JPEG library is version 6b or later, ac_cv_jpeg_version_ok,
2076 #include <jpeglib.h>
2078 changequote(<<, >>)dnl
2080 #if JPEG_LIB_VERSION < 62
2081 #error IJG JPEG library must be version 6b or newer!
2085 changequote([, ])dnl
2086 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`,
2087 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`)])
2089 AC_MSG_CHECKING([if JPEG package is complete])
2090 if test $passed -gt 0; then
2091 if test $failed -gt 0; then
2092 AC_MSG_RESULT([no -- some components failed test])
2093 have_jpeg='no (failed tests)'
2096 LIBS="$JPEG_LIBS $LIBS"
2097 AC_DEFINE(JPEG_DELEGATE,1,Define if you have JPEG library)
2098 AC_MSG_RESULT([yes])
2105 AM_CONDITIONAL(JPEG_DELEGATE, test "$have_jpeg" = 'yes')
2108 dnl ===========================================================================
2111 # Check for JPEG Version 2 delegate library.
2114 [AC_HELP_STRING([--without-jp2],
2115 [disable JPEG-2000 support])],
2116 [with_jp2=$withval],
2119 if test "$with_jp2" != 'yes'; then
2120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
2125 if test "$with_jp2" != 'no'; then
2126 AC_MSG_RESULT([-------------------------------------------------------------])
2127 AC_MSG_CHECKING([for JPEG Version 2])
2131 AC_CHECK_HEADER(jasper/jasper.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2132 AC_CHECK_LIB(jasper,jas_stream_fopen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2133 AC_MSG_CHECKING([if JPEG version 2 support package is complete])
2134 if test $passed -gt 0; then
2135 if test $failed -gt 0; then
2136 AC_MSG_RESULT([no -- some components failed test])
2137 have_jp2='no (failed tests)'
2140 LIBS="$JP2_LIBS $LIBS"
2141 AC_DEFINE(JP2_DELEGATE,1,Define if you have JPEG version 2 "Jasper" library)
2142 AC_MSG_RESULT([yes])
2149 AM_CONDITIONAL(JP2_DELEGATE, test "$have_jp2" = 'yes')
2152 dnl ===========================================================================
2155 # Check for LCMS delegate library.
2159 [ --without-lcms disable lcms (v1.1X) support],
2160 [with_lcms=$withval],
2162 if test "$with_lcms" != 'yes' ; then
2163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
2168 [ --without-lcms2 disable lcms (v2.X) support],
2169 [with_lcms2=$withval],
2171 if test "$with_lcms2" != 'yes' ; then
2172 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
2177 if test "$with_lcms2" != 'no'; then
2178 AC_MSG_RESULT([-------------------------------------------------------------])
2179 AC_MSG_CHECKING([for LCMS v2])
2183 have_lcms_header='no'
2185 # Check for <lcms2.h>
2186 AC_CHECK_HEADER(lcms2.h,have_lcms_header='yes',,)
2187 if test "$have_lcms_header" = 'yes'; then
2188 AC_DEFINE(HAVE_LCMS2_H,1,Define if you have the <lcms2.h> header file.)
2189 passed=`expr $passed + 1`
2192 # Check for <lcms2/lcms2.h)
2193 if test "$have_lcms_header" != 'yes'; then
2194 AC_CHECK_HEADER(lcms2/lcms2.h,have_lcms_header='yes',,)
2195 if test "$have_lcms_header" = 'yes'; then
2196 passed=`expr $passed + 1`
2197 AC_DEFINE(HAVE_LCMS2_LCMS2_H,1,Define if you have the <lcms2/lcms2.h> header file.)
2201 # Failed to find lcms header?
2202 if test "$have_lcms_header" != 'yes'; then
2203 failed=`expr $failed + 1`
2206 AC_CHECK_LIB(lcms2,cmsSetLogErrorHandler,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2207 AC_MSG_CHECKING(if LCMS v2 package is complete)
2208 if test $passed -gt 0; then
2209 if test $failed -gt 0; then
2210 AC_MSG_RESULT(no -- some components failed test)
2211 have_lcms2='no (failed tests)'
2214 LIBS="$LCMS_LIBS $LIBS"
2224 # Check for LCMS v1 (1.11 or later)
2226 if test $have_lcms2 = 'yes'; then
2231 if test "$with_lcms" != 'no'; then
2232 AC_MSG_RESULT([-------------------------------------------------------------])
2233 AC_MSG_CHECKING([for LCMS v1.1X])
2237 have_lcms_header='no'
2239 # Check for <lcms.h>
2240 if test "$have_lcms_header" != 'yes'; then
2241 AC_CHECK_HEADER(lcms.h,have_lcms_header='yes',,)
2242 if test "$have_lcms_header" = 'yes'; then
2243 passed=`expr $passed + 1`
2244 AC_DEFINE(HAVE_LCMS_H,1,Define if you have the <lcms.h> header file.)
2248 # Check for <lcms/lcms.h>
2249 if test "$have_lcms_header" != 'yes'; then
2250 AC_CHECK_HEADER(lcms/lcms.h,have_lcms_header='yes',,)
2251 if test "$have_lcms_header" = 'yes'; then
2252 passed=`expr $passed + 1`
2253 AC_DEFINE(HAVE_LCMS_LCMS_H,1,Define if you have the <lcms/lcms.h> header file.)
2257 # Failed to find lcms header?
2258 if test "$have_lcms_header" != 'yes'; then
2259 failed=`expr $failed + 1`
2262 AC_CHECK_LIB(lcms,cmsSetErrorHandler,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2263 AC_MSG_CHECKING(if LCMS package is complete)
2264 if test $passed -gt 0; then
2265 if test $failed -gt 0; then
2266 AC_MSG_RESULT(no -- some components failed test)
2267 have_lcms='no (failed tests)'
2270 LIBS="$LCMS_LIBS $LIBS"
2279 AM_CONDITIONAL(LCMS_DELEGATE, test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes')
2280 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
2281 AC_DEFINE(LCMS_DELEGATE,1,[Define if you have LCMS (v1.11 or later) library])
2286 dnl ===========================================================================
2289 # Check for the LQR (Liquid Rescale) delegate library.
2292 [AC_HELP_STRING([--without-lqr],
2293 [disable Liquid Rescale support])],
2294 [with_lqr=$withval],
2297 if test "$with_lqr" != 'yes'; then
2298 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
2305 if test "x$with_lqr" = "xyes"; then
2306 AC_MSG_RESULT([-------------------------------------------------------------])
2307 PKG_CHECK_MODULES(LQR,[lqr-1 >= 0.1.0], have_lqr=yes, have_lqr=no)
2311 if test "$have_lqr" = 'yes'; then
2312 AC_DEFINE(LQR_DELEGATE,1,Define if you have LQR library)
2313 CFLAGS="$LQR_CFLAGS $CFLAGS"
2316 AM_CONDITIONAL(LQR_DELEGATE, test "$have_lqr" = 'yes')
2317 AC_SUBST(LQR_CFLAGS)
2320 dnl ===========================================================================
2322 # Disable LZMA (lzma library)
2324 [ --without-lzma disable LZMA support],
2325 [with_lzma=$withval],
2327 if test "$with_lzma" != 'yes' ; then
2328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
2336 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
2337 AC_MSG_RESULT([-------------------------------------------------------------])
2338 AC_MSG_CHECKING(for LZMA)
2342 AC_CHECK_HEADER(lzma.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2343 AC_CHECK_LIB(lzma,lzma_code,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2344 AC_MSG_CHECKING(if LZMA package is complete)
2345 if test $passed -gt 0; then
2346 if test $failed -gt 0; then
2347 AC_MSG_RESULT(no -- some components failed test)
2348 have_lzma='no (failed tests)'
2351 LIBS="$LZMA_LIBS $LIBS"
2352 AC_DEFINE(LZMA_DELEGATE,1,Define if you have lzma compression library)
2360 AM_CONDITIONAL(LZMA_DELEGATE, test "$have_lzma" = 'yes')
2363 dnl ===========================================================================
2366 # Check for the OpenEXR delegate library.
2368 AC_ARG_WITH([openexr],
2369 [AC_HELP_STRING([--without-openexr],
2370 [disable OpenEXR support])],
2371 [with_openexr=$withval],
2372 [with_openexr='yes'])
2374 if test "$with_openexr" != 'yes'; then
2375 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
2382 if test "x$with_openexr" = "xyes"; then
2383 AC_MSG_RESULT([-------------------------------------------------------------])
2384 PKG_CHECK_MODULES(OPENEXR,[OpenEXR >= 1.0.6], have_openexr=yes, have_openexr=no)
2388 if test "$have_openexr" = 'yes'; then
2389 AC_DEFINE(OPENEXR_DELEGATE,1,Define if you have OPENEXR library)
2390 if test "$with_modules" = 'no'; then
2391 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
2395 AM_CONDITIONAL(OPENEXR_DELEGATE, test "$have_openexr" = 'yes')
2396 AC_SUBST(OPENEXR_CFLAGS)
2397 AC_SUBST(OPENEXR_LIBS)
2399 dnl ===========================================================================
2401 if test "$have_zlib" == 'yes'; then
2403 # Check for PNG delegate library.
2406 [AC_HELP_STRING([--without-png],
2407 [disable PNG support])],
2408 [with_png=$withval],
2411 if test "$with_png" != 'yes'; then
2412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
2418 if test "$with_png" != 'no'; then
2419 AC_MSG_RESULT([-------------------------------------------------------------])
2420 AC_MSG_CHECKING(for PNG support )
2424 AC_CHECK_HEADER(png.h,passed=`expr $passed + 1`,
2425 failed=`expr $failed + 1`,)
2427 if test $passed -gt 0; then
2428 for var in 5 4 2 '' ; do
2429 if test "x${var}" == 'x' ; then
2434 if test "$have_png" == 'no' ; then
2436 # Test for compatible LIBPNG library
2439 if test "$with_png" == 'yes' -o "$with_png" == "libpng1${var}" ; then
2440 if test "${pnglib}" != 'png' ; then
2441 AC_MSG_CHECKING(for LIBPNG1${var} support )
2447 changequote(<<, >>)dnl
2449 #if PNG_LIBPNG_VER_MINOR != ${var}
2450 #error LIBPNG library must be version 1${var}!
2455 changequote([, ])dnl
2456 ac_cv_libpng_ok='yes',
2457 ac_cv_libpng_ok='no')
2458 if test "$ac_cv_libpng_ok" = 'yes' ; then
2459 passed=`expr $passed + 1`
2462 failed=`expr $failed + 1`
2466 passed=`expr $passed + 1`
2471 if test $passed -gt 0 -a $failed -le 0; then
2472 if test "1${var}" = '15' ; then
2473 AC_CHECK_LIB(png15,png_get_io_ptr,passed=`expr $passed + 1`,
2474 failed=`expr $failed + 1`,)
2475 AC_CHECK_LIB(png15,png_longjmp,passed=`expr $passed + 1`,
2476 failed=`expr $failed + 1`,)
2478 if test "1${var}" = '14' ; then
2479 AC_CHECK_LIB(png14,png_get_io_ptr,passed=`expr $passed + 1`,
2480 failed=`expr $failed + 1`,)
2481 AC_CHECK_LIB(png14,png_get_io_state,passed=`expr $passed + 1`,
2482 failed=`expr $failed + 1`,)
2484 if test "1${var}" = '12' ; then
2485 AC_CHECK_LIB(png12,png_get_io_ptr,passed=`expr $passed + 1`,
2486 failed=`expr $failed + 1`,)
2488 if test "1${var}" = '1' ; then
2489 AC_CHECK_LIB(png,png_get_io_ptr,passed=`expr $passed + 1`,
2490 failed=`expr $failed + 1`,)
2492 if test $passed -gt 0 -a $failed -le 0 ; then
2493 AC_MSG_CHECKING(if ${pnglib} package is complete)
2494 if test $passed -gt 0 ; then
2495 if test $failed -gt 0 ; then
2496 AC_MSG_RESULT(no -- some components failed test)
2497 have_png='no (failed tests)'
2499 PNG_LIBS="-l${pnglib}"
2500 LIBS="$PNG_LIBS $LIBS"
2501 AC_DEFINE(PNG_DELEGATE,1,Define if you have PNG library)
2513 AM_CONDITIONAL(PNG_DELEGATE,test "$have_png" = 'yes')
2516 AC_MSG_RESULT(PNG requires zlib support)
2519 dnl ===========================================================================
2522 # Check for RSVG delegate library.
2525 [AC_HELP_STRING([--without-rsvg],
2526 [disable RSVG support])],
2527 [with_rsvg=$withval],
2528 [with_rsvg=$have_x])
2530 if test "$with_rsvg" != 'yes'; then
2531 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
2539 if test "x$with_rsvg" = "xyes"; then
2540 AC_MSG_RESULT([-------------------------------------------------------------])
2541 PKG_CHECK_MODULES(RSVG,[librsvg-2.0 >= 2.9.0], have_rsvg=yes, have_rsvg=no)
2543 PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg, have_cairo=yes, have_cairo=no)
2547 if test "$have_rsvg" = 'yes'; then
2548 AC_DEFINE(RSVG_DELEGATE,1,Define if you have RSVG library)
2549 if test "$with_modules" = 'no'; then
2550 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
2554 if test "$have_cairo" = 'yes'; then
2555 AC_DEFINE(CAIRO_DELEGATE,1,Define if you have CAIRO library)
2556 if test "$with_modules" = 'no'; then
2557 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
2561 AM_CONDITIONAL(RSVG_DELEGATE, test "$have_rsvg" = 'yes')
2562 AM_CONDITIONAL(CAIRO_DELEGATE, test "$have_cairo" = 'yes')
2563 AC_SUBST(RSVG_CFLAGS)
2566 dnl ===========================================================================
2569 # Check for TIFF delegate library.
2572 [AC_HELP_STRING([--without-tiff],
2573 [disable TIFF support])],
2574 [with_tiff=$withval],
2577 if test "$with_tiff" != 'yes'; then
2578 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
2583 if test "$with_tiff" != 'no'; then
2584 AC_MSG_RESULT([-------------------------------------------------------------])
2585 AC_MSG_CHECKING([for TIFF])
2589 AC_CHECK_HEADER(tiff.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2590 AC_CHECK_HEADER(tiffio.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2591 AC_CHECK_LIB(tiff,TIFFOpen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2592 AC_CHECK_LIB(tiff,TIFFClientOpen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2593 AC_CHECK_LIB(tiff,TIFFIsBigEndian,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2594 AC_CHECK_LIB(tiff,TIFFIsByteSwapped,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2595 AC_CHECK_LIB(tiff,TIFFReadRGBATile,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2596 AC_CHECK_LIB(tiff,TIFFReadRGBAStrip,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2597 AC_MSG_CHECKING([if TIFF package is complete])
2598 if test $passed -gt 0; then
2599 if test $failed -gt 0; then
2600 AC_MSG_RESULT([no -- some components failed test])
2601 have_tiff='no (failed tests)'
2604 LIBS="$TIFF_LIBS $LIBS"
2605 AC_DEFINE(TIFF_DELEGATE,1,Define if you have TIFF library)
2606 AC_MSG_RESULT([yes])
2608 AC_CHECK_HEADERS(tiffconf.h)
2609 AC_CHECK_FUNCS([TIFFIsCODECConfigured TIFFMergeFieldInfo \
2610 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
2611 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples])
2617 AM_CONDITIONAL(TIFF_DELEGATE, test "$have_tiff" = 'yes')
2620 dnl ===========================================================================
2623 # Check for WEBP delegate library.
2626 [AC_HELP_STRING([--without-webp],
2627 [disable WEBP support])],
2628 [with_webp=$withval],
2631 if test "$with_webp" != 'yes'; then
2632 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
2637 if test "$with_webp" != 'no'; then
2638 AC_MSG_RESULT([-------------------------------------------------------------])
2639 AC_MSG_CHECKING([for WEBP])
2643 AC_CHECK_HEADER(webp/decode.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2644 AC_CHECK_LIB(webp,WebPDecodeRGB,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2645 AC_MSG_CHECKING([if WEBP package is complete])
2646 if test $passed -gt 0; then
2647 if test $failed -gt 0; then
2648 AC_MSG_RESULT([no -- some components failed test])
2649 have_webp='no (failed tests)'
2652 LIBS="$WEBP_LIBS $LIBS"
2653 AC_DEFINE(WEBP_DELEGATE,1,Define if you have WEBP library)
2654 AC_MSG_RESULT([yes])
2661 AM_CONDITIONAL(WEBP_DELEGATE,test "$have_webp" = 'yes')
2664 dnl ===========================================================================
2667 # Set Windows font directory.
2669 AC_ARG_WITH(windows-font-dir,
2670 [AC_HELP_STRING([--with-windows-font-dir=DIR],
2671 [directory containing MS-Windows fonts])],
2672 [with_windows_font_dir=$withval],
2673 [with_windows_font_dir=''])
2674 if test "$with_windows_font_dir" != '' ; then
2675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
2678 dnl ===========================================================================
2681 # Check for WMF delegate library.
2684 [AC_HELP_STRING([--without-wmf],
2685 [disable WMF support])],
2686 [with_wmf=$withval],
2689 if test "$with_wmf" != 'yes'; then
2690 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
2695 if test "$with_wmf" != 'no'; then
2696 AC_MSG_RESULT([-------------------------------------------------------------])
2697 AC_MSG_CHECKING([for WMF])
2701 AC_CHECK_HEADER(libwmf/eps.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2702 AC_CHECK_LIB(wmf,wmf_eps_function,passed=`expr $passed + 1`,failed=`expr $failed + 1`,"-lwmflite")
2703 AC_MSG_CHECKING([if WMF package is complete])
2704 if test $passed -gt 0; then
2705 if test $failed -gt 0; then
2706 AC_MSG_RESULT([no -- some components failed test])
2707 have_wmf='no (failed tests)'
2709 WMF_LIBS='-lwmf -lwmflite'
2710 LIBS="$WMF_LIBS $LIBS"
2711 AC_DEFINE(WMF_DELEGATE,1,Define if you have WMF library)
2712 AC_MSG_RESULT([yes])
2719 AM_CONDITIONAL(WMF_DELEGATE,test "$have_wmf" = 'yes')
2722 dnl ===========================================================================
2725 dnl ===========================================================================
2728 # Check for XML delegate library.
2731 [AC_HELP_STRING([--without-xml],
2732 [disable XML support])],
2733 [with_xml=$withval],
2736 if test "$with_xml" != 'yes' ; then
2737 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
2742 if test "$with_xml" != 'no'; then
2743 AC_MSG_RESULT([-------------------------------------------------------------])
2744 AC_MSG_CHECKING([for XML])
2746 PERSIST_LDFLAGS=$LDFLAGS
2747 PERSIST_CPPFLAGS=$CPPFLAGS
2749 AC_CHECK_PROGS(xml2_config,xml2-config,)dnl
2750 if test -n "$xml2_config"; then
2751 # Debian installs libxml headers under /usr/include/libxml2/libxml with
2752 # the shared library installed under /usr/lib, whereas the package
2753 # installs itself under $prefix/libxml and $prefix/lib.
2754 xml2_prefix=`xml2-config --prefix`
2755 if test -d "${xml2_prefix}/include/libxml2"; then
2756 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
2758 if test "${xml2_prefix}" != '/usr'; then
2759 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
2764 AC_CHECK_HEADER(libxml/parser.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
2765 AC_CHECK_LIB(xml2,xmlParseExternalEntity,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
2766 AC_MSG_CHECKING([if XML package is complete])
2767 if test $passed -gt 0; then
2768 if test $failed -gt 0; then
2769 AC_MSG_RESULT([no -- some components failed test])
2770 have_xml='no (failed tests)'
2771 LDFLAGS="$PERSIST_LDFLAGS"
2772 CPPFLAGS="$PERSIST_CPPFLAGS"
2775 LIBS="$XML_LIBS $LIBS"
2776 AC_DEFINE(XML_DELEGATE,1,Define if you have XML library)
2777 AC_MSG_RESULT([yes])
2784 AM_CONDITIONAL(XML_DELEGATE,test "$have_xml" = 'yes')
2787 dnl ===========================================================================
2789 # Substitute compiler name to build/link PerlMagick
2791 AC_SUBST(PERLMAINCC)
2794 # Configure install Paths
2797 # Subdirectory under lib to place ImageMagick lib files
2798 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
2799 AC_DEFINE_UNQUOTED(LIBRARY_RELATIVE_PATH,"$LIBRARY_RELATIVE_PATH",Subdirectory of lib where ImageMagick architecture dependent files are installed)
2801 # Path to ImageMagick bin directory
2802 EXECUTABLE_PATH="${BIN_DIR}"
2803 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
2804 case "${build_os}" in
2806 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
2809 AC_DEFINE_UNQUOTED(EXECUTABLE_PATH,"$DEFINE_EXECUTABLE_PATH",Directory where executables are installed.)
2810 AC_SUBST(EXECUTABLE_PATH)
2812 # Path to ImageMagick lib
2813 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
2814 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
2815 case "${build_os}" in
2817 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
2820 AC_DEFINE_UNQUOTED(LIBRARY_PATH,"$DEFINE_LIBRARY_PATH",Directory where architecture-dependent files live.)
2821 AC_SUBST(LIBRARY_PATH)
2824 # Subdirectory under lib to place ImageMagick coder module files
2825 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
2826 AC_DEFINE_UNQUOTED(CODER_RELATIVE_PATH,"$CODER_RELATIVE_PATH",Subdirectory of lib where coder modules are installed)
2827 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
2828 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
2829 case "${build_os}" in
2831 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
2834 AC_DEFINE_UNQUOTED(CODER_PATH,"$DEFINE_CODER_PATH",Location of coder modules)
2835 AC_SUBST(CODER_PATH)
2838 # Subdirectory under lib to place ImageMagick filter module files
2839 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
2840 AC_DEFINE_UNQUOTED(FILTER_RELATIVE_PATH,"$FILTER_RELATIVE_PATH",Subdirectory of lib where filter modules are installed)
2841 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
2842 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
2843 case "${build_os}" in
2845 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
2848 AC_DEFINE_UNQUOTED(FILTER_PATH,"$DEFINE_FILTER_PATH",Location of filter modules)
2849 AC_SUBST(FILTER_PATH)
2852 # Path to ImageMagick documentation files
2853 DOCUMENTATION_RELATIVE_PATH=""
2854 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
2855 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
2856 case "${build_os}" in
2858 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
2861 AC_DEFINE_UNQUOTED(DOCUMENTATION_PATH,"$DEFINE_DOCUMENTATION_PATH",Directory where ImageMagick documents live.)
2862 AC_SUBST(DOCUMENTATION_PATH)
2864 # Subdirectory to place ImageMagick configuration files
2865 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
2866 AC_DEFINE_UNQUOTED(CONFIGURE_RELATIVE_PATH,"$CONFIGURE_RELATIVE_PATH",Subdirectory of lib where architecture-dependent configuration files live.)
2867 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
2868 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
2869 case "${build_os}" in
2871 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
2874 AC_DEFINE_UNQUOTED(CONFIGURE_PATH,"$DEFINE_CONFIGURE_PATH",Directory where architecture-dependent configuration files live.)
2875 AC_SUBST(CONFIGURE_PATH)
2877 # Subdirectory to place ImageMagick configuration files
2878 SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
2879 AC_DEFINE_UNQUOTED(SHARE_RELATIVE_PATH,"$SHARE_RELATIVE_PATH",Subdirectory of lib where architecture-independent configuration files live.)
2880 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
2881 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
2882 case "${build_os}" in
2884 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
2887 AC_DEFINE_UNQUOTED(SHARE_PATH,"$DEFINE_SHARE_PATH",Directory where architecture-independent configuration files live.)
2888 AC_SUBST(SHARE_PATH)
2891 # program_transform_name is formed for use in a Makefile, so create a
2892 # modified version for use in a shell script.
2893 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
2895 # Default delegate definitions
2896 AC_MSG_RESULT([-------------------------------------------------------------])
2897 AC_MSG_CHECKING([for ImageMagick delegate programs])
2899 AutotraceDecodeDelegateDefault='autotrace'
2900 BlenderDecodeDelegateDefault='blender'
2901 BZIPDelegateDefault='bzip2'
2902 BrowseDelegateDefault='xdg-open'
2903 CGMDecodeDelegateDefault='ralcgm'
2904 CatDelegateDefault='cat'
2905 DNGDecodeDelegateDefault='ufraw-batch'
2906 GVCDecodeDelegateDefault='dot'
2907 DVIDecodeDelegateDefault='dvips'
2908 EchoDelegateDefault='echo'
2909 EditorDelegateDefault='xterm'
2910 FIGDecodeDelegateDefault='fig2dev'
2911 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
2912 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
2913 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
2914 GnuplotDecodeDelegateDefault='gnuplot'
2915 HPGLDecodeDelegateDefault='hp2xx'
2916 HTMLDecodeDelegateDefault='html2ps'
2917 ILBMDecodeDelegateDefault='ilbmtoppm'
2918 ILBMEncodeDelegateDefault='ppmtoilbm'
2919 LPDelegateDefault='lp'
2920 LPRDelegateDefault='lpr'
2921 LZWDecodeDelegateDefault='uncompress'
2922 LZWEncodeDelegateDefault='compress'
2923 LaunchDelegateDefault='gimp'
2924 MANDelegateDefault='groff'
2925 MPEGDecodeDelegateDefault='ffmpeg'
2926 MPEGEncodeDelegateDefault='ffmpeg'
2927 MrSIDDecodeDelegateDefault='mrsidgeodecode'
2928 MVDelegateDefault='mv'
2929 PCLDelegateDefault='pcl6'
2930 PGPDecodeDelegateDefault='pgpv'
2931 POVDelegateDefault='povray'
2932 if test "$native_win32_build" = 'yes'; then
2933 PSDelegateDefault='gswin32c'
2934 elif test "$gslib_framework" = 'yes'; then
2935 PSDelegateDefault='gsc'
2937 PSDelegateDefault='gs'
2939 RLEEncodeDelegateDefault='rawtorle'
2940 RMDelegateDefault='rm'
2941 RSVGDecodeDelegateDefault='rsvg'
2942 SCANDecodeDelegateDefault='scanimage'
2943 TXTDelegateDefault='enscript'
2944 UniconvertorDelegateDefault='uniconvertor'
2945 WMFDecodeDelegateDefault='wmf2eps'
2946 WWWDecodeDelegateDefault='curl'
2947 XPSDelegateDefault='gxps'
2948 ZipDelegateDefault='gzip'
2950 # Search for delegates
2951 AC_PATH_PROG(AutotraceDecodeDelegate, "$AutotraceDecodeDelegateDefault", "$AutotraceDecodeDelegateDefault")
2952 AC_PATH_PROG(BlenderDecodeDelegate, "$BlenderDecodeDelegateDefault", "$BlenderDecodeDelegateDefault")
2953 AC_PATH_PROG(BZIPDelegate, "$BZIPDelegateDefault", "$BZIPDelegateDefault")
2954 AC_PATH_PROG(BrowseDelegate, "$BrowseDelegateDefault" mozilla firefox netscape, "$BrowseDelegateDefault")
2955 AC_PATH_PROG(CGMDecodeDelegate, "$CGMDecodeDelegateDefault", "$CGMDecodeDelegateDefault")
2956 AC_PATH_PROG(CatDelegate, "$CatDelegateDefault", "$CatDelegateDefault")
2957 AC_PATH_PROG(DNGDecodeDelegate, "$DNGDecodeDelegateDefault", "$DNGDecodeDelegateDefault")
2958 AC_PATH_PROG(GVCDecodeDelegate, "$GVCDecodeDelegateDefault", "$GVCDecodeDelegateDefault")
2959 AC_PATH_PROG(DVIDecodeDelegate, "$DVIDecodeDelegateDefault", "$DVIDecodeDelegateDefault")
2960 AC_PATH_PROG(EchoDelegate, "$EchoDelegateDefault", "$EchoDelegateDefault")
2961 AC_PATH_PROG(EditorDelegate, "$EditorDelegateDefault", "$EditorDelegateDefault")
2962 AC_PATH_PROG(FIGDecodeDelegate, "$FIGDecodeDelegateDefault", "$FIGDecodeDelegateDefault")
2963 AC_PATH_PROG(ConvertDelegate, "$ConvertDelegateDefault", "$ConvertDelegateDefault")
2964 AC_PATH_PROG(DisplayDelegate, "$DisplayDelegateDefault", "$DisplayDelegateDefault")
2965 AC_PATH_PROG(MogrifyDelegate, "$MogrifyDelegateDefault", "$MogrifyDelegateDefault")
2966 AC_PATH_PROG(GnuplotDecodeDelegate, "$GnuplotDecodeDelegateDefault", "$GnuplotDecodeDelegateDefault")
2967 AC_PATH_PROG(HPGLDecodeDelegate, "$HPGLDecodeDelegateDefault", "$HPGLDecodeDelegateDefault")
2968 AC_PATH_PROG(HTMLDecodeDelegate, "$HTMLDecodeDelegateDefault", "$HTMLDecodeDelegateDefault")
2969 AC_PATH_PROG(ILBMDecodeDelegate, "$ILBMDecodeDelegateDefault", "$ILBMDecodeDelegateDefault")
2970 AC_PATH_PROG(ILBMEncodeDelegate, "$ILBMEncodeDelegateDefault", "$ILBMEncodeDelegateDefault")
2971 AC_PATH_PROG(LPDelegate, "$LPDelegateDefault", no)
2972 AC_PATH_PROG(LPRDelegate, "$LPRDelegateDefault", "$LPRDelegateDefault")
2973 AC_PATH_PROG(LZWDecodeDelegate, "$LZWDecodeDelegateDefault", "$LZWDecodeDelegateDefault")
2974 AC_PATH_PROG(LZWEncodeDelegate, "$LZWEncodeDelegateDefault", "$LZWEncodeDelegateDefault")
2975 AC_PATH_PROG(LaunchDelegate, "$LaunchDelegateDefault", "$LaunchDelegateDefault")
2976 AC_PATH_PROG(MANDelegate, "$MANDelegateDefault", "$MANDelegateDefault")
2977 AC_PATH_PROG(MPEGDecodeDelegate, "$MPEGDecodeDelegateDefault", "$MPEGDecodeDelegateDefault")
2978 AC_PATH_PROG(MPEGEncodeDelegate, "$MPEGEncodeDelegateDefault", "$MPEGEncodeDelegateDefault")
2979 AC_PATH_PROG(MrSIDDecodeDelegate, "$MrSIDDecodeDelegateDefault", "$MrSIDDecodeDelegateDefault")
2980 AC_PATH_PROG(MVDelegate, "$MVDelegateDefault", "$MVDelegateDefault")
2981 AC_PATH_PROG(PCLDelegate, "$PCLDelegateDefault", "$PCLDelegateDefault")
2982 AC_PATH_PROG(PGPDecodeDelegate, "$PGPDecodeDelegateDefault", "$PGPDecodeDelegateDefault")
2983 AC_PATH_PROG(POVDelegate, "$POVDelegateDefault", "$POVDelegateDefault")
2984 AC_PATH_PROGS(PSDelegate, gsx gsc "$PSDelegateDefault", "$PSDelegateDefault")
2985 AC_PATH_PROG(RLEEncodeDelegate, "$RLEEncodeDelegateDefault", "$RLEEncodeDelegateDefault")
2986 AC_PATH_PROG(RMDelegate, "$RMDelegateDefault", "$RMDelegateDefault")
2987 AC_PATH_PROG(RSVGDecodeDelegate, "$RSVGDecodeDelegateDefault", "$RSVGDecodeDelegateDefault")
2988 AC_PATH_PROG(SCANDecodeDelegate, "$SCANDecodeDelegateDefault", "$SCANDecodeDelegateDefault")
2989 AC_PATH_PROG(TXTDelegate, "$TXTDelegateDefault", "$TXTDelegateDefault")
2990 AC_PATH_PROG(UniconvertorDelegate, "$UniconvertorDelegateDefault", "$UniconvertorDelegateDefault")
2991 AC_PATH_PROG(WMFDecodeDelegate, "$WMFDecodeDelegateDefault", "$WMFDecodeDelegateDefault")
2992 AC_PATH_PROG(WWWDecodeDelegate, "$WWWDecodeDelegateDefault", "$WWWDecodeDelegateDefault")
2993 AC_PATH_PROG(XPSDelegate, "$XPSDelegateDefault", "$XPSDelegateDefault")
2994 AC_PATH_PROG(ZipDelegate, "$ZipDelegateDefault", "$ZipDelegateDefault")
2996 # Prefer lpr to lp; lp needs options tacked on.
2997 if test "$LPRDelegate" != no; then
2998 PrintDelegate="$LPRDelegate"
3000 PrintDelegate="$LPDelegate -c -s"
3002 AC_SUBST(PrintDelegate)
3004 # Installed ImageMagick utiltity paths
3005 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
3006 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
3007 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
3009 # Set delegate booleans
3010 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
3011 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
3012 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
3013 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
3014 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
3015 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
3016 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
3017 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
3018 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
3019 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
3022 # Test for font directories
3024 type_include_files=''
3027 AC_MSG_CHECKING(for Dejavu fonts directory)
3029 if test "${with_dejavu_font_dir}" != 'default'; then
3030 dejavu_font_dir="${with_dejavu_font_dir}/"
3032 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
3033 if test -f "${font_dir}DejaVuSerif.ttf"; then
3034 dejavu_font_dir="${font_dir}"
3039 if test "${dejavu_font_dir}x" != 'x'; then
3040 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
3041 AC_MSG_RESULT([$dejavu_font_dir])
3043 AC_MSG_RESULT([not found!]);
3045 AC_SUBST(dejavu_font_dir)
3049 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
3050 windows_font_dir="${with_windows_font_dir}/"
3052 if test "${windows_font_dir}x" != 'x'; then
3053 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
3054 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
3056 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
3057 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
3059 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
3060 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
3063 if test "${windows_font_dir}x" != 'x'; then
3064 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
3066 AC_SUBST(windows_font_dir)
3069 AC_MSG_CHECKING(for Ghostscript fonts directory)
3070 ghostscript_font_dir=''
3071 if test "${with_gs_font_dir}" != 'default'; then
3072 ghostscript_font_dir="${with_gs_font_dir}/"
3074 if test "${native_win32_build}" = 'yes'; then
3075 # Native Windows Build
3076 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
3077 if test -f "${font_dir}a010013l.pfb"; then
3078 ghostscript_font_dir="$font_dir"
3082 if test "${PSDelegate}" != 'gswin32c'; then
3083 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
3086 # Linux / Mac OS X / Unix Build
3087 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
3088 if test -f "${font_dir}a010013l.pfb"; then
3089 ghostscript_font_dir="${font_dir}"
3093 if test "${ghostscript_font_dir}x" = 'x'; then
3094 if test "$PSDelegate" != 'gs'; then
3095 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
3100 if test "${ghostscript_font_dir}x" != 'x'; then
3101 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
3102 AC_MSG_RESULT([$ghostscript_font_dir])
3104 AC_MSG_RESULT([not found!]);
3106 AC_SUBST(ghostscript_font_dir)
3107 case "${build_os}" in
3109 PSDelegate=`$WinPathScript "$PSDelegate" 1`
3113 AC_SUBST(type_include_files)
3116 # Handle case where user doesn't want frozen paths
3118 if test "$with_frozenpaths" != 'yes'; then
3119 # Re-set delegate definitions to default (no paths)
3120 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
3121 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
3122 BZIPDelegate="$BZIPDelegateDefault"
3123 BrowseDelegate="$BrowseDelegateDefault"
3124 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
3125 CatDelegate="$CatDelegateDefault"
3126 ConvertDelegate="$ConvertDelegateDefault"
3127 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
3128 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
3129 EchoDelegate="$EchoDelegateDefault"
3130 EditorDelegate="$EditorDelegateDefault"
3131 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
3132 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
3133 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
3134 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
3135 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
3136 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
3137 LPDelegate="$LPDelegateDefault"
3138 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
3139 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
3140 LaunchDelegate="$LaunchDelegateDefault"
3141 MANDelegate="$MANDelegateDefault"
3142 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
3143 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
3144 MogrifyDelegate="$MogrifyDelegateDefault"
3145 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
3146 MVDelegate="$MVDelegateDefault"
3147 PCLDelegate="$PCLDelegateDefault"
3148 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
3149 POVDelegate="$POVDelegateDefault"
3150 PSDelegate="$PSDelegateDefault"
3151 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
3152 RMDelegate="$RMDelegateDefault"
3153 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
3154 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
3155 ShowImageDelegate="$ShowImageDelegateDefault"
3156 TXTDelegate="$TXTDelegateDefault"
3157 UniconvertorDelegate="$UniconvertorDelegateDefault"
3158 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
3159 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
3160 XPSDelegate="$XPSDelegateDefault"
3161 ZipDelegate="$ZipDelegateDefault"
3164 # Delegate substitutions
3165 AC_SUBST(AutotraceDecodeDelegate)
3166 AC_SUBST(BlenderDecodeDelegate)
3167 AC_SUBST(BZIPDelegate)
3168 AC_SUBST(BrowseDelegate)
3169 AC_SUBST(CGMDecodeDelegate)
3170 AC_SUBST(CatDelegate)
3171 AC_SUBST(ConvertDelegate)
3172 AC_SUBST(GVCDecodeDelegate)
3173 AC_SUBST(DVIDecodeDelegate)
3174 AC_SUBST(EchoDelegate)
3175 AC_SUBST(EditorDelegate)
3176 AC_SUBST(FIGDecodeDelegate)
3177 AC_SUBST(GnuplotDecodeDelegate)
3178 AC_SUBST(HPGLDecodeDelegate)
3179 AC_SUBST(HTMLDecodeDelegate)
3180 AC_SUBST(ILBMDecodeDelegate)
3181 AC_SUBST(ILBMEncodeDelegate)
3182 AC_SUBST(LPDelegate)
3183 AC_SUBST(LZWDecodeDelegate)
3184 AC_SUBST(LZWEncodeDelegate)
3185 AC_SUBST(LaunchDelegate)
3186 AC_SUBST(MANDelegate)
3187 AC_SUBST(MPEGDecodeDelegate)
3188 AC_SUBST(MPEGEncodeDelegate)
3189 AC_SUBST(MogrifyDelegate)
3190 AC_SUBST(MrSIDDecodeDelegate)
3191 AC_SUBST(MVDelegate)
3192 AC_SUBST(PCLDelegate)
3193 AC_SUBST(PGPDecodeDelegate)
3194 AC_SUBST(POVDelegate)
3195 AC_SUBST(PSDelegate)
3196 AC_SUBST(RLEEncodeDelegate)
3197 AC_SUBST(RMDelegate)
3198 AC_SUBST(SCANDecodeDelegate)
3199 AC_SUBST(ShowImageDelegate)
3200 AC_SUBST(TXTDelegate)
3201 AC_SUBST(UniconvertorDelegate)
3202 AC_SUBST(WMFDecodeDelegate)
3203 AC_SUBST(WWWDecodeDelegate)
3204 AC_SUBST(XPSDelegate)
3205 AC_SUBST(ZipDelegate)
3211 AC_CHECK_PROGS(TAR,gnutar gtar tar)
3212 AC_CHECK_PROGS(PERL,perl)
3213 AC_CHECK_PROGS(RPM,rpmbuild rpm)
3214 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
3215 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
3216 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
3217 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
3219 AM_CONDITIONAL(RPM_DELEGATE, test "x$RPM" != "x" )
3222 # 7ZIP support (http://p7zip.sourceforge.net/)
3225 AC_CHECK_PROGS(P7ZIP,[7za])
3227 AM_CONDITIONAL(P7ZIP_DELEGATE, test "x$P7ZIP" != "x" )
3230 # ZIP support (http://www.info-zip.org/Zip.html)
3233 AC_CHECK_PROGS(ZIP,[zip])
3235 AM_CONDITIONAL(ZIP_DELEGATE, test "x$ZIP" != "x" )
3238 # GhostPCL related configuration.
3240 PCLColorDevice=ppmraw
3241 PCLCMYKDevice=bmpsep8
3242 PCLMonoDevice=pbmraw
3243 if test -z "$PCLVersion"; then
3244 PCLVersion='unknown'
3246 if test $have_pcl = 'yes'; then
3247 AC_MSG_RESULT([-------------------------------------------------------------])
3248 AC_MSG_CHECKING([for PCL])
3251 AC_MSG_CHECKING([for pcl color device])
3252 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3255 PCLColorDevice=ppmraw
3257 AC_MSG_RESULT([$PCLColorDevice])
3260 AC_MSG_CHECKING([for pcl CMYK device])
3261 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3264 PCLCMYKDevice=$PCLColorDevice
3266 AC_MSG_RESULT([$PCLCMYKDevice])
3269 AC_MSG_CHECKING([for pcl mono device])
3270 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3273 PCLMonoDevice=$PCLColorDevice
3275 AC_MSG_RESULT([$PCLMonoDevice])
3278 AC_SUBST(PCLMonoDevice)
3279 AC_SUBST(PCLColorDevice)
3280 AC_SUBST(PCLCMYKDevice)
3281 AC_SUBST(PCLVersion)
3284 # GhostXPS related configuration.
3286 XPSColorDevice=ppmraw
3287 XPSCMYKDevice=bmpsep8
3288 XPSMonoDevice=pbmraw
3289 if test -z "$XPSVersion"; then
3290 XPSVersion='unknown'
3292 if test $have_xps = 'yes'; then
3293 AC_MSG_RESULT([-------------------------------------------------------------])
3294 AC_MSG_CHECKING([for XPS])
3297 AC_MSG_CHECKING([for xps color device])
3298 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3301 XPSColorDevice=ppmraw
3303 AC_MSG_RESULT([$XPSColorDevice])
3306 AC_MSG_CHECKING([for xps CMYK device])
3307 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3310 XPSCMYKDevice=$XPSColorDevice
3312 AC_MSG_RESULT([$XPSCMYKDevice])
3315 AC_MSG_CHECKING([for xps mono device])
3316 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3319 XPSMonoDevice=$XPSColorDevice
3321 AC_MSG_RESULT([$XPSMonoDevice])
3324 AC_SUBST(XPSMonoDevice)
3325 AC_SUBST(XPSColorDevice)
3326 AC_SUBST(XPSCMYKDevice)
3327 AC_SUBST(XPSVersion)
3330 # Ghostscript related configuration.
3332 GSAlphaDevice=pngalpha
3333 GSColorDevice=pnmraw
3336 GSPDFDevice=pdfwrite
3338 GSEPSDevice=epswrite
3340 if test $have_gs = 'yes'; then
3341 AC_MSG_RESULT([-------------------------------------------------------------])
3342 AC_MSG_CHECKING([for Ghostscript])
3344 AC_MSG_CHECKING([for Ghostscript version])
3345 if GSVersion=`$PSDelegate --version`; then
3348 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
3350 AC_MSG_RESULT([$GSVersion])
3353 AC_MSG_CHECKING([for gs alpha device])
3354 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3357 GSAlphaDevice=pnmraw
3359 AC_MSG_RESULT([$GSAlphaDevice])
3362 AC_MSG_CHECKING([for gs color device])
3363 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3366 GSColorDevice=pnmraw
3368 AC_MSG_RESULT([$GSColorDevice])
3371 AC_MSG_CHECKING([for gs CMYK device])
3372 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3375 GSCMYKDevice=bmpsep8
3377 AC_MSG_RESULT([$GSCMYKDevice])
3380 AC_MSG_CHECKING([for gs mono device])
3381 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3384 GSMonoDevice=$GSColorDevice
3386 AC_MSG_RESULT([$GSMonoDevice])
3389 AC_MSG_CHECKING([for gs PDF writing device])
3390 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3393 GSPDFDevice=nodevice
3395 AC_MSG_RESULT([$GSPDFDevice])
3398 AC_MSG_CHECKING([for gs PS writing device])
3399 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3404 AC_MSG_RESULT([$GSPSDevice])
3407 AC_MSG_CHECKING([for gs EPS writing device])
3408 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
3411 GSEPSDevice=nodevice
3413 AC_MSG_RESULT([$GSEPSDevice])
3416 AC_SUBST(GSAlphaDevice)
3417 AC_SUBST(GSCMYKDevice)
3418 AC_SUBST(GSColorDevice)
3419 AC_SUBST(GSEPSDevice)
3420 AC_SUBST(GSMonoDevice)
3421 AC_SUBST(GSPDFDevice)
3422 AC_SUBST(GSPSDevice)
3426 # PerlMagick-related configuration
3429 # Look for PERL if PerlMagick requested
3430 # If name/path of desired PERL interpreter is specified, look for that one first
3432 if test "$with_perl" != 'no'; then
3433 AC_MSG_RESULT([-------------------------------------------------------------])
3434 AC_MSG_CHECKING([for Perl])
3436 if test "$with_perl" != 'yes'; then
3437 AC_CACHE_CHECK(for perl,ac_cv_path_PERL,ac_cv_path_PERL="$with_perl");
3438 PERL=$ac_cv_path_PERL
3440 have_perl="$ac_cv_path_PERL"
3442 AC_PATH_PROGS(PERL,perl perl5,)dnl
3443 if test "$ac_cv_path_PERL"; then
3444 have_perl="$ac_cv_path_PERL"
3449 if test "$with_perl" != 'yes' ; then
3450 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
3453 PERL_SUPPORTS_DESTDIR='no'
3455 with_perl_static='no'
3456 with_perl_dynamic='no'
3457 if test "$have_perl" != 'no'; then
3458 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
3459 with_perl_static='yes'
3461 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
3462 with_perl_dynamic='yes'
3464 # Is PERL's MakeMaker new enough to support DESTDIR?
3465 AX_PROG_PERL_VERSION(5.8.1,[PERL_SUPPORTS_DESTDIR='yes'],[PERL_SUPPORTS_DESTDIR='no'])
3467 AM_CONDITIONAL(WITH_PERL, test "$have_perl" != 'no')
3468 AM_CONDITIONAL(WITH_PERL_STATIC, test $with_perl_static = 'yes')
3469 AM_CONDITIONAL(WITH_PERL_DYNAMIC, test $with_perl_dynamic = 'yes')
3470 AC_SUBST(PERL_SUPPORTS_DESTDIR)
3472 # Determine path to pick up MagickCore library from for use with building PerlMagick
3473 MAGICKCORE_PATH="${LIB_DIR}"
3474 if test $with_perl_static = 'yes'; then
3475 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
3476 libtool_objdir=$objdir
3478 # Linker search path to library, followed by -lMagickCore
3479 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
3481 AC_SUBST(MAGICKCORE_PATH)
3483 # Create a simple string containing format names for all delegate libraries
3485 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
3486 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
3487 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
3488 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
3489 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
3490 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
3491 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
3492 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
3493 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
3494 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
3495 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
3496 if test "$have_jpeg" = 'yes'; then
3497 DELEGATES="$DELEGATES jpeg";
3498 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
3500 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
3501 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
3502 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
3503 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
3504 if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
3505 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
3506 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
3507 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
3508 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
3509 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
3510 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
3511 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
3512 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
3513 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
3518 # Handle special compiler flags
3521 # Add '-p' if prof source profiling support enabled
3522 if test "$enable_prof" = 'yes'; then
3524 CXXFLAGS="-p $CXXFLAGS"
3525 LDFLAGS="-p $LDFLAGS"
3528 # Add '-pg' if gprof source profiling support enabled
3529 if test "$enable_gprof" = 'yes'; then
3530 CFLAGS="-pg $CFLAGS"
3531 CXXFLAGS="-pg $CXXFLAGS"
3532 LDFLAGS="-pg $LDFLAGS"
3535 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
3536 # This is a gcc-specific feature
3537 if test "$enable_gcov" = 'yes'; then
3538 AC_CHECK_LIB(gcov,_gcov_init)
3539 AC_CHECK_LIB(gcov,__gcov_init)
3540 case "$target_os" in
3542 OSX_GCOV_LDFLAG="-Wl,-single_module"
3548 AC_SUBST(OSX_GCOV_LDFLAG)
3549 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
3550 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
3551 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
3555 # Build library dependency list for libMagickCore
3558 MAGICK_LIBLTDL='' # Libltdl for build
3559 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
3560 MAGICK_LTDLDEPS='' # extra libltdl dependencies
3561 if test "$with_ltdl" != 'no'
3563 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
3564 MAGICK_API_LIBLTDL='-lltdl'
3566 MAGICK_LIBLTDL=${LIBLTDL}
3567 MAGICK_LTDLDEPS=${LTDLDEPS}
3569 AC_SUBST(MAGICK_LIBLTDL)
3570 AC_SUBST(MAGICK_LTDLDEPS)
3572 if test "$with_modules" != 'no'; then
3573 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
3575 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
3577 AC_SUBST(MAGICK_DEP_LIBS)
3580 # Remove extraneous spaces from output variables (asthetic)
3582 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
3583 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
3584 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
3585 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
3587 CC=`echo $CC | sed -e 's/ */ /g'`
3588 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
3589 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
3590 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
3591 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
3592 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
3593 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
3594 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
3595 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
3596 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
3598 # Pass only user-provided LIBS as "global" libraries
3604 #AC_SUBST(X_PRE_LIBS)
3606 #AC_SUBST(X_EXTRA_LIBS)
3608 MAGICK_CFLAGS=$CFLAGS
3609 MAGICK_CXXFLAGS="$CXXFLAGS"
3610 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
3611 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
3612 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
3613 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
3615 AC_SUBST(MAGICK_CFLAGS)
3616 AC_SUBST(MAGICK_CXXFLAGS)
3617 AC_SUBST(MAGICK_CPPFLAGS)
3618 AC_SUBST(MAGICK_PCFLAGS)
3619 AC_SUBST(MAGICK_LDFLAGS)
3620 AC_SUBST(MAGICK_LIBS)
3621 AC_SUBST(MAGICK_FEATURES)
3623 # Set configured scripts to executable.
3624 AC_CONFIG_COMMANDS([default],[],[])
3625 AC_CONFIG_COMMANDS([MagickCore-config.in],[chmod +x MagickCore/MagickCore-config])
3626 AC_CONFIG_COMMANDS([Magick-config.in],[chmod +x MagickCore/Magick-config])
3627 AC_CONFIG_COMMANDS([MagickWand-config.in],[chmod +x MagickWand/MagickWand-config])
3628 AC_CONFIG_COMMANDS([Wand-config.in],[chmod +x MagickWand/Wand-config])
3629 AC_CONFIG_COMMANDS([Magick++-config.in],[chmod +x Magick++/bin/Magick++-config])
3630 AC_CONFIG_COMMANDS([PerlMagick/check.sh.in],[chmod +x PerlMagick/check.sh])
3632 AC_MSG_RESULT([-------------------------------------------------------------])
3633 AC_MSG_RESULT([Update ImageMagick configuration])
3636 rm -f magick-version
3638 result_dejavu_font_dir='none'
3639 if test "${dejavu_font_dir}x" != 'x'; then
3640 result_dejavu_font_dir=$dejavu_font_dir
3643 result_ghostscript_font_dir='none'
3644 if test "${ghostscript_font_dir}x" != 'x'; then
3645 result_ghostscript_font_dir=$ghostscript_font_dir
3648 result_windows_font_dir='none'
3649 if test "${windows_font_dir}x" != 'x'; then
3650 result_windows_font_dir=${windows_font_dir}
3654 ImageMagick is configured as follows. Please verify that this configuration
3655 matches your expectations.
3657 Host system type: $host
3658 Build system type: $build
3661 -------------------------------------------------------------------------------
3662 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
3663 Static libraries --enable-static=$enable_static $libtool_build_static_libs
3664 Module support --with-modules=$with_modules $with_modules
3665 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
3666 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
3667 High Dynamic Range Imagery
3668 --enable-hdri=$enable_hdri $enable_hdri
3670 Delegate Configuration:
3671 BZLIB --with-bzlib=$with_bzlib $have_bzlib
3672 Autotrace --with-autotrace=$with_autotrace $have_autotrace
3673 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
3674 DJVU --with-djvu=$with_djvu $have_djvu
3675 DPS --with-dps=$with_dps $have_dps
3676 FFTW --with-fftw=$with_fftw $have_fftw
3677 FlashPIX --with-fpx=$with_fpx $have_fpx
3678 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
3679 FreeType --with-freetype=$with_freetype $have_freetype
3680 GhostPCL None $PCLDelegate ($PCLVersion)
3681 GhostXPS None $XPSDelegate ($XPSVersion)
3682 Ghostscript None $PSDelegate ($GSVersion)
3683 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
3684 Ghostscript lib --with-gslib=$with_gslib $have_gslib
3685 Graphviz --with-gvc=$with_gvc $have_gvc
3686 JBIG --with-jbig=$with_jbig $have_jbig
3687 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
3688 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
3689 LCMS v1 --with-lcms=$with_lcms $have_lcms
3690 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
3691 LQR --with-lqr=$with_lqr $have_lqr
3692 LZMA --with-lzma=$with_lzma $have_lzma
3693 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
3694 OpenEXR --with-openexr=$with_openexr $have_openexr
3695 PERL --with-perl=$with_perl $have_perl
3696 PNG --with-png=$with_png $have_png
3697 RSVG --with-rsvg=$with_rsvg $have_rsvg
3698 TIFF --with-tiff=$with_tiff $have_tiff
3699 WEBP --with-webp=$with_webp $have_webp
3700 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
3701 WMF --with-wmf=$with_wmf $have_wmf
3702 X11 --with-x=$with_x $have_x
3703 XML --with-xml=$with_xml $have_xml
3704 ZLIB --with-zlib=$with_zlib $have_zlib
3707 X_CFLAGS = $X_CFLAGS
3708 X_PRE_LIBS = $X_PRE_LIBS
3710 X_EXTRA_LIBS = $X_EXTRA_LIBS
3712 Options used to compile and link:
3713 PREFIX = $PREFIX_DIR
3714 EXEC-PREFIX = $EXEC_PREFIX_DIR
3715 VERSION = $PACKAGE_VERSION
3718 CPPFLAGS = $MAGICK_CPPFLAGS
3719 PCFLAGS = $MAGICK_PCFLAGS
3722 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
3725 CXXFLAGS = $CXXFLAGS
3726 FEATURES = $MAGICK_FEATURES