From bb217ba76a9c3823e074ec7708f07233a85eb4ac Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 16 Jul 2010 19:39:58 +0800 Subject: [PATCH] egl: Build egl_dri2 only when xcb-dri2 is available. The driver does not build when xcb-dri2 is not available. --- configure.ac | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index f52c6db..1b116ae 100644 --- a/configure.ac +++ b/configure.ac @@ -970,12 +970,11 @@ if test "x$enable_egl" = xyes; then if test "$have_xcb_dri2" = yes; then EGL_DRIVER_DRI2=dri2 DEFINES="$DEFINES -DHAVE_XCB_DRI2" + if test "$have_libudev" = yes; then + DEFINES="$DEFINES -DHAVE_LIBUDEV" + fi fi - if test "$have_libudev" = yes; then - EGL_DRIVER_DRI2=dri2 - DEFINES="$DEFINES -DHAVE_LIBUDEV" - fi EGL_DRIVERS_DIRS="$EGL_DRIVERS_DIRS $EGL_DRIVER_DRI2" fi -- 2.7.4