configure: Moved configure's detection of Xinerama to a dedicated macro
commit2a7a4d77d7dfdfea045e70108f4a100d50f01a4a
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 17 Nov 2013 17:51:16 +0000 (17 18:51 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:06 +0000 (30 18:11 +0000)
treecacf486188c3161edd6020047161f5429d681f91
parente106d88a422cc96407b202901cf349781361e1bd
configure: Moved configure's detection of Xinerama 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;
 - checks also for header usability with the compiler;
 - 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)

The feature is also no more disabled by default, as it is something user
would expect from a modern window manager.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
configure.ac
m4/wm_xext_check.m4