glx: More hacking around versions of XCB that lack GLX_ARB_create_context support
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 3 Jan 2012 19:35:59 +0000 (11:35 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Jan 2012 20:43:10 +0000 (12:43 -0800)
commit4becf676e0b09b421821b6895251549ec98d4e5d
tree894ffe597aa356454ea45376726f8b43854c99c3
parentc2e537fef26be6f9995f99e04015d0c1ac9ed5ae
glx: More hacking around versions of XCB that lack GLX_ARB_create_context support

Detect whether a new enough version of XCB is installed at configure
time.  If it is not, don't enable the extension and don't build the
unit tests.

v2: Move the AM_CONDIATION outside the case-statement so that it is
invoked even for non-GLX builds.  This prevents build failures with
osmesa, for example.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Robert Hooker <robert.hooker@canonical.com>
configure.ac
src/glx/clientinfo.c
src/glx/create_context.c
src/glx/glxextensions.c
tests/glx/Makefile.am