configure.ac: require xcb* for the omx/va/... when using x11 platform
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 31 Oct 2017 18:58:10 +0000 (18:58 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 Nov 2017 15:53:00 +0000 (15:53 +0000)
Targets such as omx and va can work w/o anything X related. Mandate the
xcb* dependencies only when the X11 platform is selected.

Reported-by: Lukas Rusak <lorusak@gmail.com>
Fixes: 63e11ac2b5c ("configure: error out if building VA w/o supported
platform")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Tested-by: Lukas Rusak <lorusak@gmail.com> (v1)
configure.ac

index dafc9f87523803aad9729631dc638a4cbe805a61..59a111ae01ea55403962b9d5c7d93724eebb2567 100644 (file)
@@ -2156,7 +2156,9 @@ if test "x$enable_xvmc" = xyes -o \
         "x$enable_vdpau" = xyes -o \
         "x$enable_omx_bellagio" = xyes -o \
         "x$enable_va" = xyes; then
-    PKG_CHECK_MODULES([VL], [x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED])
+    if echo $platforms | grep -q "x11"; then
+        PKG_CHECK_MODULES([VL], [x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED])
+    fi
     need_gallium_vl_winsys=yes
 fi
 AM_CONDITIONAL(NEED_GALLIUM_VL_WINSYS, test "x$need_gallium_vl_winsys" = xyes)