From: cristy Date: Sat, 6 Jun 2015 13:46:55 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~952 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6ac47f80bcce21a924cd6eb982331a5a99c11a9;p=imagemagick --- diff --git a/MagickCore/profile.c b/MagickCore/profile.c index c23a8790f..dc1d92e51 100644 --- a/MagickCore/profile.c +++ b/MagickCore/profile.c @@ -67,11 +67,16 @@ #include "MagickCore/token.h" #include "MagickCore/utility.h" #if defined(MAGICKCORE_LCMS_DELEGATE) -#if defined(MAGICKCORE_LCMS_VERSION_1) -#include "lcms.h" -#else +#if defined(MAGICKCORE_HAVE_LCMS_LCMS2_H) +#include +#include +#elif defined(MAGICKCORE_HAVE_LCMS2_H) #include #include "lcms2.h" +#elif defined(MAGICKCORE_HAVE_LCMS_LCMS_H) +#include +#else +#include "lcms.h" #endif #endif diff --git a/MagickCore/property.c b/MagickCore/property.c index fd7f6533f..259f20947 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -85,10 +85,14 @@ #include "MagickCore/xml-tree.h" #include "MagickCore/xml-tree-private.h" #if defined(MAGICKCORE_LCMS_DELEGATE) -#if defined(MAGICKCORE_LCMS_VERSION_1) -#include "lcms.h" -#else +#if defined(MAGICKCORE_HAVE_LCMS_LCMS2_H) +#include +#elif defined(MAGICKCORE_HAVE_LCMS2_H) #include "lcms2.h" +#elif defined(MAGICKCORE_HAVE_LCMS_LCMS_H) +#include +#else +#include "lcms.h" #endif #endif diff --git a/configure b/configure index c6186c35e..3bcbd6759 100755 --- a/configure +++ b/configure @@ -4387,7 +4387,7 @@ MAGICK_PATCHLEVEL_VERSION=0 MAGICK_VERSION=7.0.0-0 -MAGICK_SVN_REVISION=18754M +MAGICK_SVN_REVISION=18759:18761M # Substitute library versioning @@ -30308,6 +30308,17 @@ $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h LCMS_CFLAGS="$LCMS2_CFLAGS" LCMS_LIBS="$LCMS2_LIBS" CFLAGS="$LCMS2_CFLAGS $CFLAGS" + ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" +if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : + have_lcms_header='yes' +fi + + + if test "$have_lcms_header" = 'yes'; then + +$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h + + fi else pkg_failed=no @@ -30388,7 +30399,17 @@ $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h $as_echo "#define LCMS_VERSION_1 1" >>confdefs.h CFLAGS="$LCMS_CFLAGS $CFLAGS" - fi + ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" +if test "x$ac_cv_header_lcms_lcms_h" = xyes; then : + have_lcms_header='yes' +fi + + + if test "$have_lcms_header" = 'yes'; then + +$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h + + fi fi if test "$have_lcms" = 'yes'; then @@ -38774,8 +38795,7 @@ matches your expectations. JBIG --with-jbig=$with_jbig $have_jbig JPEG v1 --with-jpeg=$with_jpeg $have_jpeg JPEG-2000 --with-jp2=$with_jp2 $have_jp2 - LCMS v1 --with-lcms=$with_lcms $have_lcms - LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 + LCMS --with-lcms=$with_lcms $have_lcms LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2 LQR --with-lqr=$with_lqr $have_lqr LTDL --with-ltdl=$with_ltdl $have_ltdl @@ -38861,8 +38881,7 @@ matches your expectations. JBIG --with-jbig=$with_jbig $have_jbig JPEG v1 --with-jpeg=$with_jpeg $have_jpeg JPEG-2000 --with-jp2=$with_jp2 $have_jp2 - LCMS v1 --with-lcms=$with_lcms $have_lcms - LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 + LCMS --with-lcms=$with_lcms $have_lcms LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2 LQR --with-lqr=$with_lqr $have_lqr LTDL --with-ltdl=$with_ltdl $have_ltdl diff --git a/configure.ac b/configure.ac index 43732de32..0c1c5f520 100755 --- a/configure.ac +++ b/configure.ac @@ -2268,13 +2268,20 @@ if test "$have_lcms" = 'yes'; then LCMS_CFLAGS="$LCMS2_CFLAGS" LCMS_LIBS="$LCMS2_LIBS" CFLAGS="$LCMS2_CFLAGS $CFLAGS" + AC_CHECK_HEADER(lcms2/lcms2.h,have_lcms_header='yes',,) + if test "$have_lcms_header" = 'yes'; then + AC_DEFINE(HAVE_LCMS2_LCMS2_H,1,Define if you have the header file.) + fi else PKG_CHECK_MODULES(LCMS,[lcms >= 1.0.0], have_lcms=yes, have_lcms=no) if test "$have_lcms" = 'yes'; then AC_DEFINE(LCMS_DELEGATE,1,Define if you have LCMS library) AC_DEFINE(LCMS_VERSION_1,1,Define if you have LCMS version 1 library) CFLAGS="$LCMS_CFLAGS $CFLAGS" - fi + AC_CHECK_HEADER(lcms/lcms.h,have_lcms_header='yes',,) + if test "$have_lcms_header" = 'yes'; then + AC_DEFINE(HAVE_LCMS_LCMS_H,1,Define if you have the header file.) + fi fi AM_CONDITIONAL(LCMS_DELEGATE, test "$have_lcms" = 'yes') @@ -3856,8 +3863,7 @@ matches your expectations. JBIG --with-jbig=$with_jbig $have_jbig JPEG v1 --with-jpeg=$with_jpeg $have_jpeg JPEG-2000 --with-jp2=$with_jp2 $have_jp2 - LCMS v1 --with-lcms=$with_lcms $have_lcms - LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 + LCMS --with-lcms=$with_lcms $have_lcms LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2 LQR --with-lqr=$with_lqr $have_lqr LTDL --with-ltdl=$with_ltdl $have_ltdl