diff mbox

configure.ac: fix dri enabled with kms only picked

Message ID 1375758198-25144-1-git-send-email-airlied@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dave Airlie Aug. 6, 2013, 3:03 a.m. UTC
From: Dave Airlie <airlied@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@redhat.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chris Wilson Aug. 6, 2013, 8:39 a.m. UTC | #1
On Tue, Aug 06, 2013 at 01:03:18PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@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@redhat.com>

Thanks. Oh, I see I don't usually test with an explicit --enable-dri and
so missed this error path. Pushed,
-Chris
diff mbox

Patch

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