diff options
author | Robert Scheck <[email protected]> | 2023-01-10 01:46:00 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-04-06 20:06:09 +0200 |
commit | 2c38b75e422a41cfa180d1f4a5a55d52577b2989 (patch) | |
tree | 94d6f0ba9bed636629d4bc7a57218e4ab6941870 | |
parent | b0b97b65544d15a8f82b87a1edc687e6285dfa5d (diff) | |
download | eom-2c38b75e422a41cfa180d1f4a5a55d52577b2989.tar.bz2 eom-2c38b75e422a41cfa180d1f4a5a55d52577b2989.tar.xz |
Fix building with ImageMagick 7
Check for ImageMagick 7 first, then for ImageMagick 6. Original (the
reversed) ordering might lead accidentially to HAVE_IMAGEMAGICK6 with
ImageMagick 7.
-rw-r--r-- | configure.ac | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 68d20b0..6222520 100644 --- a/configure.ac +++ b/configure.ac @@ -318,17 +318,17 @@ if test "x$enable_thumbnailer" != "xno"; then CPPFLAGS_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $MAGICK_CFLAGS" - AC_CHECK_HEADER([wand/MagickWand.h], - [have_im6="yes"], - [AC_CHECK_HEADER([MagickWand/MagickWand.h], [have_im7="yes"])]) + AC_CHECK_HEADER([MagickWand/MagickWand.h], + [have_im7="yes"], + [AC_CHECK_HEADER([wand/MagickWand.h], [have_im6="yes"])]) CPPFLAGS="$CPPFLAGS_save" - if test "x$have_im6" = "xyes"; then - AC_DEFINE(HAVE_IMAGEMAGICK6,1, [Have ImageMagick 6]) - fi if test "x$have_im7" = "xyes"; then AC_DEFINE(HAVE_IMAGEMAGICK7,1, [Have ImageMagick 7]) fi + if test "x$have_im6" = "xyes"; then + AC_DEFINE(HAVE_IMAGEMAGICK6,1, [Have ImageMagick 6]) + fi THUMBNAILER_CFLAGS="$CFLAGS $GLIB_CFLAGS $GIO_CFLAGS $MAGICK_CFLAGS" AC_SUBST(THUMBNAILER_CFLAGS) |