configure: error out when building gallium-osmesa without softpipe
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Mar 2014 00:36:21 +0000 (00:36 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 31 Mar 2014 11:18:39 +0000 (12:18 +0100)
Gallium osmesa links against the softpipe driver, thus the build
will fail if it's missing.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Matt Turner <mattst88@gmail.com>
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])