---- ImageMagick-4.1.0/PerlMagick/Makefile.PL.in.libpath Mon Sep 14 01:48:37 1998
-+++ ImageMagick-4.1.0/PerlMagick/Makefile.PL.in Mon Sep 14 01:49:37 1998
-@@ -4,7 +4,7 @@
- WriteMakefile(
- 'NAME' => 'Image::Magick',
- 'VERSION_FROM' => 'Magick.pm', # finds $VERSION
-- 'LIBS' => ['@LDFLAGS@ @MAGICKLIB@ @X11STUBSLIB@ @LIBS@'],
-+ 'LIBS' => ['@LDFLAGS@ -L@top_srcdir@/magick/.libs @MAGICKLIB@ @X11STUBSLIB@ @LIBS@'],
- 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
- 'INC' => '-I@top_srcdir@/magick @CPPFLAGS@',
- );
+--- ImageMagick-6.4.1/configure.ac.orig 2008-05-27 09:43:02.000000000 +0200
++++ ImageMagick-6.4.1/configure.ac 2008-05-27 09:43:54.000000000 +0200
+@@ -3050,7 +3050,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
+