configure.ac: fix dri enabled with kms only picked

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

[ickle: The breakage was introduced with

commit bd6ffd1ad2 [2.21.14]
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Jul 27 15:33:19 2013 +0100

    configure: Print a summary of compilation options

which modified the search to only take place if UMS was enabled, but
missed mollifying the resulting error.]

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2013-08-06 13:03:18 +10:00 committed by Chris Wilson
parent a875ba39be
commit 6004870d53
1 changed files with 1 additions and 1 deletions

View File

@ -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