Fix build of swrast only without libdrm
authorDaniel Martin <consume.noise@gmail.com>
Thu, 28 Feb 2013 18:39:06 +0000 (19:39 +0100)
committerMatt Turner <mattst88@gmail.com>
Mon, 4 Mar 2013 18:11:01 +0000 (10:11 -0800)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Daniel Martin <consume.noise@gmail.com>
configure.ac

index 5f95a78d26f241557754adaeffe73d3e3d3a88bb..785259554bbb833bc6d03c50414b8262bc553341 100644 (file)
@@ -1095,7 +1095,7 @@ if test "x$enable_dri" = xyes; then
     fi
 
     # 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
+    if test -n "$DRI_DIRS" -a x"$DRI_DIRS" != xswrast -a "x$enable_dri" = xyes; then
         # ... libdrm is required
         if test "x$have_libdrm" != xyes; then
             AC_MSG_ERROR([DRI drivers requires libdrm >= $LIBDRM_REQUIRED])