changeset 33635:2cf2569bc9e0

configure: Correctly check for the clang compiler. patch by Jeremy Huddleston, jeremyhu macports org
author diego
date Sat, 25 Jun 2011 01:22:43 +0000
parents 9326f80e0fa3
children 2066274a01bd
files configure
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Jun 25 00:36:52 2011 +0000
+++ b/configure	Sat Jun 25 01:22:43 2011 +0000
@@ -1661,8 +1661,7 @@
       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
+    if $_cc -v 2>&1 | grep -q "clang"; then
       echocheck "$_cc version"
       cc_vendor=clang
       cc_version=$($_cc -dumpversion 2>&1)