* configure.ac: Check for MagickAutoOrientImage.
* src/image.c (imagemagick_load_image): Don't use
MagickAutoOrientImage unless it's available.
OLD_LIBS=$LIBS
CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
LIBS="$IMAGEMAGICK_LIBS $LIBS"
- AC_CHECK_FUNCS(MagickExportImagePixels MagickMergeImageLayers)
+ AC_CHECK_FUNCS(MagickExportImagePixels MagickMergeImageLayers MagickAutoOrientImage)
CFLAGS=$OLD_CFLAGS
LIBS=$OLD_LIBS
fi
return 0;
}
+#ifdef HAVE_MAGICKAUTOORIENTIMAGE
/* If no :rotation is explicitly specified, apply the automatic
rotation from EXIF. */
if (NILP (image_spec_value (img->spec, QCrotation, NULL)))
DestroyMagickWand (image_wand);
return 0;
}
+#endif
if (ino < 0 || ino >= MagickGetNumberImages (image_wand))
{