Index: ImageMagick-7.0.7-20/configure.ac =================================================================== --- ImageMagick-7.0.7-20/configure.ac +++ ImageMagick-7.0.7-20/configure.ac 2018-01-06 19:49:34.455619541 +0100 @@ -3708,7 +3708,7 @@ # Determine path to pick up MagickCore library from for use with building PerlMagick MAGICKCORE_PATH="${LIB_DIR}" -if test $with_perl_static = 'yes'; then +if test $with_perl_static = 'yes' -o $with_perl_dynamic = 'yes'; then # Find out where libtool hides its uninstalled libraries (as libtool_objdir) libtool_objdir=$objdir