configure.ac: Fixing common dri dependency when using dri state tracker
authorAlexandre Demers <alexandre.f.demers@gmail.com>
Sat, 12 Jan 2013 06:21:44 +0000 (01:21 -0500)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sat, 12 Jan 2013 23:13:16 +0000 (00:13 +0100)
Fixes a regression caused by b587a7595e7aae0809a8e7392e89c39df0c955b1

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59261
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
configure.ac

index 72df83c..bde5b05 100644 (file)
@@ -1079,8 +1079,8 @@ if test "x$enable_dri" = xyes; then
        LIBS="$save_LIBS"
     fi
 
-    # if we are building any dri driver other than swrast ...
-    if test -n "$DRI_DIRS" -a x"$DRI_DIRS" != xswrast; then
+    # if we are building any dri driver other than swrast or using the dri state tracker ...
+    if test -n "$DRI_DIRS" -a x"$DRI_DIRS" != xswrast || test "x$enable_dri" = xyes; then
         # ... libdrm is required
         if test "x$have_libdrm" != xyes; then
             AC_MSG_ERROR([DRI drivers requires libdrm >= $LIBDRM_REQUIRED])