[Intel-gfx] [PATCH] configure.ac: fix dri enabled with kms only picked

Dave Airlie airlied at gmail.com
Tue Aug 6 05:03:18 CEST 2013


From: Dave Airlie <airlied at redhat.com>

Otherwise we'd fail saying DRI1 wasn't possible, when that
is exactly what we asked for.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 104113e..88f29cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -433,7 +433,7 @@ else
         DRI1_CFLAGS=""
         DRI1_LIBS=""
 
-        if test "x$enable_dri" = "xyes"; then
+        if test "x$enable_dri" = "xyes" -a "x$KMS_ONLY" != "xyes"; then
                 AC_MSG_ERROR([DRI1 requested but prerequisites not found])
         fi
 fi
-- 
1.8.3.1




More information about the Intel-gfx mailing list