Mesa (master): configure.ac: require LLVM for r300g on x86 and x86_64

Marek Olšák mareko at kemper.freedesktop.org
Mon Apr 25 11:46:27 UTC 2011


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Apr 21 13:33:29 2011 +0200

configure.ac: require LLVM for r300g on x86 and x86_64

---

 configure.ac |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index d8c50ce..1012ca5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1780,9 +1780,16 @@ dnl Gallium Radeon r300g configuration
 dnl
 AC_ARG_ENABLE([gallium-r300],
     [AS_HELP_STRING([--enable-gallium-r300],
-        [build gallium r300 @<:@default=DRI-only@:>@])],
+        [build gallium r300 @<:@default=build DRI driver only@:>@])],
     [enable_gallium_r300="$enableval"],
     [enable_gallium_r300=auto])
+if test "x$enable_gallium_r300" != xno; then
+    if test "x$MESA_LLVM" = x0; then
+        case "$host_cpu" in
+        i*86|x86_64) AC_MSG_ERROR([LLVM is required to build Gallium R300 on x86 and x86_64]);;
+        esac
+    fi
+fi
 if test "x$enable_gallium_r300" = xauto; then
     GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300"
     gallium_check_st "radeon/drm" "dri-r300"




More information about the mesa-commit mailing list