Default to --disable-gallium-r300 if not --with-driver=dri
authorJon TURNEY <jon.turney@dronecode.org.uk>
Fri, 29 Apr 2011 11:52:10 +0000 (12:52 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 2 May 2011 15:34:42 +0000 (17:34 +0200)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Marek Olšák <maraeo@gmail.com>
configure.ac

index 3b05ca3538041239298dff58e0f78667d21c09f9..54d9c296862380c602706416a5427a13710536aa 100644 (file)
@@ -1784,6 +1784,13 @@ AC_ARG_ENABLE([gallium-r300],
         [build gallium r300 @<:@default=build DRI driver only@:>@])],
     [enable_gallium_r300="$enableval"],
     [enable_gallium_r300=auto])
+
+if test "$mesa_driver" != dri ; then
+    if test "x$enable_gallium_r300" = xauto; then
+      enable_gallium_r300=no
+    fi
+fi
+
 if test "x$enable_gallium_r300" != xno; then
     if test "x$MESA_LLVM" = x0; then
         case "$host_cpu" in