configure: error out when building gallium-osmesa without softpipe
[mesa.git] / configure.ac
index cad4b05242aa21e4c2d61c9612c1b9a7bf4bf9df..03c1d3120486c8f7a54cb086b95e5cb9c7c7347e 100644 (file)
@@ -762,8 +762,8 @@ if test "x$enable_dri" = xyes; then
 fi
 
 if test "x$enable_gallium_osmesa" = xyes; then
-    if test -z "$with_gallium_drivers"; then
-        AC_MSG_ERROR([Cannot enable gallium_osmesa without Gallium])
+    if ! echo "$with_gallium_drivers" | grep -q 'swrast'; then
+        AC_MSG_ERROR([gallium_osmesa requires the gallium swrast driver])
     fi
     if test "x$enable_osmesa" = xyes; then
         AC_MSG_ERROR([Cannot enable both classic and Gallium OSMesa implementations])