… | |
… | |
123 | GetExceptionInfo(&exception); |
123 | GetExceptionInfo(&exception); |
124 | OpenModules(&exception); |
124 | OpenModules(&exception); |
125 | return (NULL == GetMagickInfo(NULL,&exception)); }], |
125 | return (NULL == GetMagickInfo(NULL,&exception)); }], |
126 | IMAGEMAGICK=1,IMAGEMAGICK=no,IMAGEMAGICK=no) |
126 | IMAGEMAGICK=1,IMAGEMAGICK=no,IMAGEMAGICK=no) |
127 | fi |
127 | fi |
|
|
128 | if test x"$IMAGEMAGICK" = xno ; then |
|
|
129 | # 100 equals GraphicsMagick |
|
|
130 | AC_TRY_RUN([ #include <magick/api.h> |
|
|
131 | int main(void) { |
|
|
132 | MagickInfo **formats; |
|
|
133 | ExceptionInfo exception; |
|
|
134 | InitializeMagick(NULL); |
|
|
135 | GetExceptionInfo(&exception); |
|
|
136 | return (NULL == GetMagickInfoArray(&exception)); }], |
|
|
137 | IMAGEMAGICK=100,IMAGEMAGICK=no,IMAGEMAGICK=no) |
|
|
138 | fi |
|
|
139 | |
128 | AC_MSG_RESULT("Version $IMAGEMAGICK") |
140 | AC_MSG_RESULT("Version $IMAGEMAGICK") |
129 | LDFLAGS="$LDFLAGS_OLD" |
141 | LDFLAGS="$LDFLAGS_OLD" |
130 | LIBS="$LIBS_OLD" |
142 | LIBS="$LIBS_OLD" |
131 | dnl Note: CFLAGS can't be set for single directories, so we propagate them |
143 | dnl Note: CFLAGS can't be set for single directories, so we propagate them |
132 | if test x"$IMAGEMAGICK" = xno ; then |
144 | if test x"$IMAGEMAGICK" = xno ; then |