[Mesa-dev] [PATCH 2/3] Disable direct rendering on GNU/Hurd

Jon TURNEY jon.turney at dronecode.org.uk
Fri Oct 29 07:08:14 PDT 2010


From: nobled <nobled at dreamwidth.org>

The Hurd kernel doesn't have DRM yet.

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 configure.ac |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3c3da14..af70a7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -688,12 +688,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
-- 
1.7.2.3



More information about the mesa-dev mailing list