summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ecd7e11)
raw | patch | inline | side by side (parent: ecd7e11)
author | popolon2 <popolon2@users.sourceforge.net> | |
Sat, 10 May 2008 10:39:42 +0000 (10:39 +0000) | ||
committer | popolon2 <popolon2@users.sourceforge.net> | |
Sat, 10 May 2008 10:39:42 +0000 (10:39 +0000) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index eaa420af72a0e8f897f572cd80153f2ca7a63480..dc8aaab42e971336ca27ae61bbf330cdc452c93a 100644 (file)
--- a/configure.ac
+++ b/configure.ac
dnl Check for ImageMagick Magick++
dnl ******************************
-AC_CHECK_LIB(Magick++, InitializeMagick, [AC_CHECK_HEADER(Magick++.h, magick_ok=yes, magick_ok=no)], magick_ok=no, -llcms -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lz -lpthread -lm -lpthread)
-
+PKG_CHECK_MODULES(IMAGEMAGICK, ImageMagick++, magick_ok=yes, magick_ok=no)
if test "x$magick_ok" = "xyes"; then
- AC_CHECK_PROG(MAGICKPP_CONFIG, Magick++-config, yes, no)
- if test "x$MAGICKPP_CONFIG" = "xyes"; then
- IMAGEMAGICK_LIBS=`Magick++-config --libs`
- AC_SUBST(IMAGEMAGICK_LIBS)
- AC_DEFINE(WITH_IMAGE_MAGICK,1,[Image Magick++ support for bitmap effects])
- fi
+ AC_DEFINE(WITH_IMAGE_MAGICK,1,[Image Magick++ support for bitmap effects])
fi
-
AM_CONDITIONAL(USE_IMAGE_MAGICK, test "x$magick_ok" = "xyes")
+AC_SUBST(IMAGEMAGICK_LIBS)
+AC_SUBST(IMAGEMAGICK_CFLAGS)
+
dnl ******************************
dnl Unconditional dependencies
dnl ******************************