Mesa (7.11): configure: Enable st/gbm if st/egl has drm platform

Benjamin Franzke bnf at kemper.freedesktop.org
Tue Jul 12 08:07:05 UTC 2011


Module: Mesa
Branch: 7.11
Commit: 336b2c7fbd77eaab57bcc35e50488642c5a0d413
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=336b2c7fbd77eaab57bcc35e50488642c5a0d413

Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date:   Sat Jul  2 13:45:14 2011 +0200

configure: Enable st/gbm if st/egl has drm platform

NOTE: This is a candidate for the 7.11 branch.
(cherry picked from commit b18b2994eff2f51588abe29c7a2209220c9ee9c5)

---

 configure.ac |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index c36b2f6..bca06bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -563,9 +563,9 @@ AC_ARG_ENABLE([gallium_gbm],
     [AS_HELP_STRING([--enable-gallium-gbm],
         [enable optional gbm state tracker (not required for
          gbm support in Gallium)
-         @<:@default=disable@:>@])],
+         @<:@default=auto@:>@])],
     [enable_gallium_gbm="$enableval"],
-    [enable_gallium_gbm=no])
+    [enable_gallium_gbm=auto])
 
 # Option for Gallium drivers
 GALLIUM_DRIVERS_DEFAULT="r300,r600,swrast"
@@ -1314,6 +1314,14 @@ fi
 dnl
 dnl gbm Gallium configuration
 dnl
+if test "x$enable_gallium_gbm" = xauto; then
+    case "$enable_gbm$HAVE_ST_EGL$with_egl_platforms" in
+        yesyes*drm*)
+            enable_gallium_gbm=yes ;;
+         *)
+            enable_gallium_gbm=no ;;
+    esac
+fi
 if test "x$enable_gallium_gbm" = xyes; then
     if test "x$with_gallium_drivers" = x; then
         AC_MSG_ERROR([cannot enable gbm_gallium without Gallium])




More information about the mesa-commit mailing list