From: Roy Marples Date: Tue, 24 Jan 2012 11:26:20 +0000 (+0000) Subject: Add and prefer clang to the compiler list. X-Git-Tag: v5.5.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efaacbbf18d3fc6a7862f2d8c122d39613fb724d;p=thirdparty%2Fdhcpcd.git Add and prefer clang to the compiler list. The compiler version is now shown during configure. --- diff --git a/configure b/configure index 8a395fef..eaf0cef0 100755 --- a/configure +++ b/configure @@ -168,7 +168,7 @@ echo "MANDIR= $MANDIR" >>$CONFIG_MK 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 @@ if [ -z "$CC" ]; then else echo "Using compiler $CC" fi +$CC --version | $SED -e '1!d' echo "CC= $CC" >>$CONFIG_MK if [ -n "$CFLAGS" ]; then