6.6.1.10 - configure script no LCMS if LCMS < 2
Posted: 2010-07-16T03:40:21-07:00
Short version:
test: no: unexpected operator
If LCMS2 not found, it's NOT checking for LCMS correctly - you just get no LCMS at all.
Changed to (should be single equals):
LONG version:
> convert RESEGT1199-1.jpg -profile AdobeRGB1998.icm -profile ISOnewspaper26v4.icc cymk-RESEGT1199-1.jpg
convert: delegate library support not built-in `RESEGT1199-1.jpg' (LCMS) @ warning/profile.c/ProfileImage/936.
> identify -verbose cymk-RESEGT1199-1.jpg
Image: cymk-RESEGT1199-1.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
[cut]
Colorspace: RGB
[cut]
Profiles:
Profile-8bim: 5616 bytes
Profile-exif: 4902 bytes
Profile-icc: 3144 bytes
Profile-iptc: 43 bytes
unknown[2,0]:
Caption[2,120]:
Profile-xmp: 5448 bytes
> convert -list configure
...
DELEGATES bzlib fftw fpx fontconfig freetype jbig jpeg jng jp2 lqr png tiff x11 xml zlib
...
configure output without the change:
checking for LCMS...
checking lcms2.h usability... no
checking lcms2.h presence... no
checking for lcms2.h... no
checking lcms/lcms2.h usability... no
checking lcms/lcms2.h presence... no
checking for lcms/lcms2.h... no
checking for cmsOpenProfileFromMem in -llcms2... no
checking if LCMS2 package is complete... no
test: no: unexpected operator
After the change:
checking for LCMS...
checking lcms2.h usability... no
checking lcms2.h presence... no
checking for lcms2.h... no
checking lcms/lcms2.h usability... no
checking lcms/lcms2.h presence... no
checking for lcms/lcms2.h... no
checking for cmsOpenProfileFromMem in -llcms2... no
checking if LCMS2 package is complete... no
-------------------------------------------------------------
checking for LCMS...
checking lcms.h usability... yes
checking lcms.h presence... yes
checking for lcms.h... yes
checking for cmsOpenProfileFromMem in -llcms... yes
checking if LCMS package is complete... yes
-------------------------------------------------------------
And convert now works, with LCMS appearing in the list ...
# convert -list configure
Path: /usr/local/lib/ImageMagick-6.6.1/config/configure.xml
Name Value
-------------------------------------------------------------------------------
[cut]
DELEGATES bzlib fftw fpx fontconfig freetype jbig jpeg jng jp2 lcms lqr png tiff x11 xml zlib
# convert RESEGT1199-1.jpg -profile AdobeRGB1998.icm -profile ISOnewspaper26v4.icc cymk-RESEGT1199-1.jpg
# identify -verbose cymk-RESEGT1199-1.jpg
Image: cymk-RESEGT1199-1.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 722x480+0+0
Resolution: 200x200
Print size: 3.61x2.4
Units: PixelsPerInch
Type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
[cut]
Profiles:
Profile-8bim: 5616 bytes
Profile-exif: 4902 bytes
Profile-icc: 718672 bytes
ISOnewspaper26v4
Profile-iptc: 43 bytes
unknown[2,0]:
Caption[2,120]:
Profile-xmp: 5448 bytes
test: no: unexpected operator
If LCMS2 not found, it's NOT checking for LCMS correctly - you just get no LCMS at all.
Code: Select all
28127 if test "$with_lcms" != 'no'; then
28128 if test "$have_lcms" == 'no'; then
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
Code: Select all
28128 if test "$have_lcms" = 'no'; then
> convert RESEGT1199-1.jpg -profile AdobeRGB1998.icm -profile ISOnewspaper26v4.icc cymk-RESEGT1199-1.jpg
convert: delegate library support not built-in `RESEGT1199-1.jpg' (LCMS) @ warning/profile.c/ProfileImage/936.
> identify -verbose cymk-RESEGT1199-1.jpg
Image: cymk-RESEGT1199-1.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
[cut]
Colorspace: RGB
[cut]
Profiles:
Profile-8bim: 5616 bytes
Profile-exif: 4902 bytes
Profile-icc: 3144 bytes
Profile-iptc: 43 bytes
unknown[2,0]:
Caption[2,120]:
Profile-xmp: 5448 bytes
> convert -list configure
...
DELEGATES bzlib fftw fpx fontconfig freetype jbig jpeg jng jp2 lqr png tiff x11 xml zlib
...
configure output without the change:
checking for LCMS...
checking lcms2.h usability... no
checking lcms2.h presence... no
checking for lcms2.h... no
checking lcms/lcms2.h usability... no
checking lcms/lcms2.h presence... no
checking for lcms/lcms2.h... no
checking for cmsOpenProfileFromMem in -llcms2... no
checking if LCMS2 package is complete... no
test: no: unexpected operator
After the change:
checking for LCMS...
checking lcms2.h usability... no
checking lcms2.h presence... no
checking for lcms2.h... no
checking lcms/lcms2.h usability... no
checking lcms/lcms2.h presence... no
checking for lcms/lcms2.h... no
checking for cmsOpenProfileFromMem in -llcms2... no
checking if LCMS2 package is complete... no
-------------------------------------------------------------
checking for LCMS...
checking lcms.h usability... yes
checking lcms.h presence... yes
checking for lcms.h... yes
checking for cmsOpenProfileFromMem in -llcms... yes
checking if LCMS package is complete... yes
-------------------------------------------------------------
And convert now works, with LCMS appearing in the list ...
# convert -list configure
Path: /usr/local/lib/ImageMagick-6.6.1/config/configure.xml
Name Value
-------------------------------------------------------------------------------
[cut]
DELEGATES bzlib fftw fpx fontconfig freetype jbig jpeg jng jp2 lcms lqr png tiff x11 xml zlib
# convert RESEGT1199-1.jpg -profile AdobeRGB1998.icm -profile ISOnewspaper26v4.icc cymk-RESEGT1199-1.jpg
# identify -verbose cymk-RESEGT1199-1.jpg
Image: cymk-RESEGT1199-1.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 722x480+0+0
Resolution: 200x200
Print size: 3.61x2.4
Units: PixelsPerInch
Type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
[cut]
Profiles:
Profile-8bim: 5616 bytes
Profile-exif: 4902 bytes
Profile-icc: 718672 bytes
ISOnewspaper26v4
Profile-iptc: 43 bytes
unknown[2,0]:
Caption[2,120]:
Profile-xmp: 5448 bytes