From 44b0a554d6da2b334fca962191f1292c53ad0afa Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 16 Jul 2010 00:08:26 +0200 Subject: [PATCH] egl: Ensure libdrm is present to enable the dri2 egl backend Signed-off-by: Lionel Landwerlin --- configure.ac | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index f52c6db..b48d91d 100644 --- a/configure.ac +++ b/configure.ac @@ -966,17 +966,21 @@ if test "x$enable_egl" = xyes; then [have_xcb_dri2=yes],[have_xcb_dri2=no]) PKG_CHECK_MODULES([LIBUDEV], [libudev > 150], [have_libudev=yes],[have_libudev=no]) + PKG_CHECK_MODULES([LIBDRM], [libdrm >= $LIBDRM_REQUIRED], + [have_libdrm=yes],[have_libdrm=no]) - if test "$have_xcb_dri2" = yes; then - EGL_DRIVER_DRI2=dri2 - DEFINES="$DEFINES -DHAVE_XCB_DRI2" - fi + if test "$have_libdrm" = yes;then + if test "$have_xcb_dri2" = yes; then + EGL_DRIVER_DRI2=dri2 + DEFINES="$DEFINES -DHAVE_XCB_DRI2" + fi - if test "$have_libudev" = yes; then - EGL_DRIVER_DRI2=dri2 - DEFINES="$DEFINES -DHAVE_LIBUDEV" - fi + if test "$have_libudev" = yes; then + EGL_DRIVER_DRI2=dri2 + DEFINES="$DEFINES -DHAVE_LIBUDEV" + fi + fi EGL_DRIVERS_DIRS="$EGL_DRIVERS_DIRS $EGL_DRIVER_DRI2" fi fi -- 1.7.1