configure: Make WebP support togglable, and improve its error message.
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Tue, 16 Feb 2016 01:57:51 +0000 (01:57 +0000)
committerBryce Harrington <bryce@osg.samsung.com>
Sat, 20 Feb 2016 02:33:00 +0000 (18:33 -0800)
commit58b7a156c5cddc11fe5a5e3f982d65d433a9177a
treed04de5005460e815e2492a65660972be2d52331f
parente1719c789185d4a70964ad76da5a924d688cf798
configure: Make WebP support togglable, and improve its error message.

The current way was enabling WebP support whenever libwebp was found,
giving no way to the user to disable it if they had the library
installed but didn’t want to link against it.  This adds a
--without-webp configure option to never link against it, and a
--with-webp one to fail the build if it isn’t found, the default being
to use it if it is present.

Additionally, we now tell the user when WebP support has been disabled
and they try to load a WebP file.

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
configure.ac
shared/image-loader.c