From ba769630c6bbdbf281a190b742c246b114879abe Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sun, 30 Apr 2017 15:41:02 +0200 Subject: Add support for ImageMagick version 7 Version 7 introduced slight API changes which are handled accordingly. Legacy version 6 has equivalent support in ODR-PadEnc and there are no plans to remove support for the next years. See also #3. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b5a11dd..52612c9 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,8 @@ fi AS_IF([ pkg-config MagickWand ], AC_DEFINE(HAVE_MAGICKWAND, [1], [Define if MagickWand is available])) +AS_IF([ pkg-config "MagickWand < 7" ], + AC_DEFINE(HAVE_MAGICKWAND_LEGACY, [1], [Define if a legacy (prior to version 7) MagickWand is available])) AM_CONDITIONAL([IS_GIT_REPO], [test -d '.git']) -- cgit v1.2.3