wrlib: Moved configure's detection of XPM support to a dedicated macro
commitb66a890404992ce04e9d2e52ea79a1a7d9a20c8b
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 8 Nov 2013 17:49:58 +0000 (8 18:49 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:03 +0000 (30 18:11 +0000)
tree99d6f31537046c35371d96e069ab7f95c8e7b5d8
parent311ab6b08ccf09fc48e37c0c91cf5122f5063d48
wrlib: Moved configure's detection of XPM 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;
 - uses an automake conditional to avoid compiling the file is support is
not enabled

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
configure.ac
m4/wm_imgfmt_check.m4
wrlib/Makefile.am
wrlib/xpm.c