From: Chia-I Wu Date: Fri, 16 Jul 2010 11:39:58 +0000 (+0800) Subject: egl: Build egl_dri2 only when xcb-dri2 is available. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb217ba76a9c3823e074ec7708f07233a85eb4ac;p=mesa.git egl: Build egl_dri2 only when xcb-dri2 is available. The driver does not build when xcb-dri2 is not available. --- diff --git a/configure.ac b/configure.ac index f52c6db65a6..1b116ae50e8 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