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

Author: Jose Fonseca <jfons...@vmware.com>
Date:   Tue Dec  1 22:43:46 2015 +0000

configure.ac: Refuse to build with Sun C compiler.

https://bugs.freedesktop.org/show_bug.cgi?id=93189

Reviewed-by: Matt Turner <matts...@gmail.com>
Tested-by: Vinson Lee <v...@freedesktop.org>
Acked-by: Alan Coopersmith <alan.coopersm...@oracle.com>

---

 configure.ac |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index 4016871..b6680d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -197,6 +197,13 @@ if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
     fi
 fi
 
+dnl We don't support building Mesa with Sun C compiler
+dnl https://bugs.freedesktop.org/show_bug.cgi?id=93189
+AC_CHECK_DECL([__SUNPRO_C], [SUNCC=yes], [SUNCC=no])
+if test "x$SUNCC" = xyes; then
+    AC_MSG_ERROR([Building with Sun C compiler is not supported, use GCC 
instead.])
+fi
+
 dnl Check for compiler builtins
 AX_GCC_BUILTIN([__builtin_bswap32])
 AX_GCC_BUILTIN([__builtin_bswap64])

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to