Page 1 of 1

ImageMagick-6.8.8-10 configure.ac has useless mupdf check

Posted: 2014-04-06T05:09:59-07:00
by ssuominengentoo
The configure.ac checks for mupdf libraries and headers, but nothing in ImageMagick is actually using them
No mupdf libraries used, no #include's either

Basically you can trick the build system by:

export ac_cv_lib_mupdf_fz_new_context=yes
export ac_cv_header_mupdf_fitz_h=yes
./configure --with-mupdf

and the result is exactly same as with --without-mupdf

It looks like if someone pushed changes to only configure.ac, and forgot to commit rest of the patch that actually adds anykind of mupdf support

Re: ImageMagick-6.8.8-10 configure.ac has useless mupdf chec

Posted: 2014-04-06T05:10:54-07:00
by ssuominengentoo
Not to mention, if mupdf libs and headers are intended to be used in the future, there is mupdf.pc pkg-config file that should be queried, rather than using the old-styled AC_CHECK_* for them

Re: ImageMagick-6.8.8-10 configure.ac has useless mupdf chec

Posted: 2014-04-06T06:05:57-07:00
by magick
Patch applied to Subversion trunk. Thanks.