changeset 31503:4d06e790f7ad

Experimental support for clang compiler.
author reimar
date Sun, 27 Jun 2010 19:07:51 +0000
parents c95e08f87c70
children 7ad75a6dc1b4
files configure
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Jun 27 19:02:10 2010 +0000
+++ b/configure	Sun Jun 27 19:07:51 2010 +0000
@@ -1592,6 +1592,15 @@
     echores "$cc_version"
     break
     fi
+    cc_name_tmp=$($_cc -v 2>&1 | head -n 1 | cut -d ' ' -f 1)
+    if test "$cc_name_tmp" = "clang"; then
+      echocheck "$_cc version"
+      cc_vendor=clang
+      cc_version=$($_cc -v 2>&1 | head -n 1 | cut -d ' ' -f 3)
+      res_comment="experimental support only"
+      echores "clang $cc_version"
+      break
+    fi
     cc_name_tmp=$($_cc -V 2>&1 | head -n 1 | cut -d ' ' -f 2,3)
     if test "$cc_name_tmp" = "Sun C"; then
       echocheck "$_cc version"