configure: check for core xcb and link libGL against it
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 11 Jul 2014 22:17:48 +0000 (23:17 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 5 Sep 2014 22:17:49 +0000 (23:17 +0100)
commitda029f80818cf9cf5084473804b0faf2bc641775
tree92564e5e860582351db7e63f9595b2da9e9e3b9a
parent7599886b26853163ef354476be70aa7fd9ae35c5
configure: check for core xcb and link libGL against it

Make sure to check the presence of the module in order to pick the
correct libs flag and before feeding them to the compiler/linker.

Current libGL depends conditionally (when building with dri3) upon
xcb 1.9.3 and unconditionally on ancient xcb functions -
xcb_generate_id and xcb_request_check amongst others.

v2: Use PKG_CHECK_EXISTS() when checking for dri3 xcb.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80848
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac