add an error message for --with-magickpackage

it was causing some cufusion, see eg. https://github.com/libvips/libvips/discussions/2449
This commit is contained in:
John Cupitt 2021-09-29 18:17:48 +01:00
parent 5397fe5a4f
commit 6e9a23524f

View File

@ -549,12 +549,17 @@ AS_IF([test x"$with_magick" = x"module"],
[with_magick_module=no]) [with_magick_module=no])
AC_ARG_WITH([magickpackage], AC_ARG_WITH([magickpackage],
AS_HELP_STRING([--with-magickpackage], AS_HELP_STRING([--with-magickpackage=PACKAGE],
[magickpackage to use (default: MagickCore; try GraphicsMagick to build against gm instead)])) [use magick PACKAGE (default: MagickCore; try GraphicsMagick to build against gm instead)]))
if test x"$with_magickpackage" = x"yes"; then
AC_MSG_WARN([--with-magickpackage needs an argument, ignoring])
with_magick=no
with_magick_module=no
else
if test x"$with_magickpackage" = x""; then
# set the default magick package ... very old imagemagicks called it # set the default magick package ... very old imagemagicks called it
# ImageMagick # ImageMagick
if test x"$with_magickpackage" = x""; then
PKG_CHECK_MODULES(MAGICK_WAND, MagickCore, PKG_CHECK_MODULES(MAGICK_WAND, MagickCore,
[with_magickpackage=MagickCore [with_magickpackage=MagickCore
], ],
@ -569,6 +574,7 @@ if test x"$with_magickpackage" = x""; then
] ]
) )
fi fi
fi
# we have a separate loader for magick7 with fewer ifdef # we have a separate loader for magick7 with fewer ifdef
# options; only test for features on the magick6 case # options; only test for features on the magick6 case