configure: check for core xcb and link libEGL against it
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 11 Jul 2014 23:05:56 +0000 (00:05 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 5 Sep 2014 22:17:59 +0000 (23:17 +0100)
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 libEGL depends conditionally (when building with x11 platform)
upon xcb.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac

index c800f258eaf9a007be9bba5db3e00040f929314a..e4778d8ef7e083332696d9c6fdeb21c242f18b7c 100644 (file)
@@ -1548,7 +1548,7 @@ for plat in $egl_platforms; do
                ;;
 
        x11)
-               PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes])
+               PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes])
                ;;
 
        drm)