configure: Moved detection of GIF support to a dedicated macro
commitf892ce4d376a345b1457fe25420ea766db9aea79
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 4 Nov 2013 19:52:28 +0000 (4 20:52 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:02 +0000 (30 18:11 +0000)
tree268b3aa3005250390e49d0c7df6a6a4d714a1e4d
parent6223ed185451bd2e560429a78ba240b4d7637c43
configure: Moved detection of GIF support to a dedicated macro

The original check was not compliant with autoconf's syntax, did not
have a very good behaviour for user and was not easy to make evolve.

The new macro:
 - uses as much as possible autoconf macros for portability and code
consistency;
 - provides a consistent behaviour on yes/no/auto (if user explicitly
enables support, do not silently disable if not found; if library is found
but not the header, complain to let user install it or explicitly disable
support);
 - makes uses of shell functions to keep generated configure smaller by
sharing reusable stuff;
 - introduces a tracking of unsupported things to be reported to user

It includes a fixes from a problem found by Amadeusz S\e-B³awiñski, because\e-A
the function 'wm_fn_imgfmt_try_link' modified the variable LDFLAGS
instead of LIBS.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
configure.ac
m4/wm_imgfmt_check.m4 [new file with mode: 0644]