Mesa (master): Disable direct rendering on GNU/Hurd

Jon TURNEY jturney at kemper.freedesktop.org
Fri Apr 8 12:38:28 PDT 2011


Module: Mesa
Branch: master
Commit: e7d18ed1ef8106e2f0eec1078efde6da358e692b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7d18ed1ef8106e2f0eec1078efde6da358e692b

Author: nobled <nobled at dreamwidth.org>
Date:   Mon Mar 14 22:08:22 2011 +0000

Disable direct rendering on GNU/Hurd

The Hurd kernel doesn't have DRM yet.

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
Reviewed-by: Julien Cristau <jcristau at debian.org>
Reviewed-By: Jakob Bornecrantz <wallbraker at gmail.com>

---

 configure.ac |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 38e673d..5bcb5a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -730,12 +730,21 @@ else
 fi
 
 dnl Direct rendering or just indirect rendering
+case "$host_os" in
+gnu*)
+    dnl Disable by default on GNU/Hurd
+    driglx_direct_default="no"
+    ;;
+*)
+    driglx_direct_default="yes"
+    ;;
+esac
 AC_ARG_ENABLE([driglx-direct],
     [AS_HELP_STRING([--disable-driglx-direct],
         [enable direct rendering in GLX and EGL for DRI \
-            @<:@default=enabled@:>@])],
+            @<:@default=auto@:>@])],
     [driglx_direct="$enableval"],
-    [driglx_direct="yes"])
+    [driglx_direct="$driglx_direct_default"])
 
 dnl
 dnl libGL configuration per driver



More information about the mesa-commit mailing list