From 85a017230cacd0661570421c8e5b0619e512d33d Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Oct 2017 18:58:10 +0000 Subject: [PATCH] configure.ac: require xcb* for the omx/va/... when using x11 platform 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 Fixes: 63e11ac2b5c ("configure: error out if building VA w/o supported platform") Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom Tested-by: Lukas Rusak (v1) --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dafc9f87523..59a111ae01e 100644 --- a/configure.ac +++ b/configure.ac @@ -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) -- 2.30.2