changeset 1634:4e2b26d97bab draft

Add and prefer clang to the compiler list. The compiler version is now shown during configure.
author Roy Marples <roy@marples.name>
date Tue, 24 Jan 2012 11:26:20 +0000
parents c924ef405dc0
children 80ee4524815c
files configure
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Dec 18 12:12:08 2011 +0000
+++ b/configure	Tue Jan 24 11:26:20 2012 +0000
@@ -168,7 +168,7 @@
 if [ -z "$CC" ]; then
 	printf "Looking for compiler ... "
 	for b in $TARGET- ""; do
-		for cc in gcc pcc icc cc; do
+		for cc in clang gcc pcc icc cc; do
 			if type $b$cc >/dev/null 2>&1; then
 				CC=$b$cc
 				echo "$CC"
@@ -185,6 +185,7 @@
 else
 	echo "Using compiler $CC"
 fi
+$CC --version | $SED -e '1!d'
 echo "CC=		$CC" >>$CONFIG_MK
 
 if [ -n "$CFLAGS" ]; then