]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add and prefer clang to the compiler list.
authorRoy Marples <roy@marples.name>
Tue, 24 Jan 2012 11:26:20 +0000 (11:26 +0000)
committerRoy Marples <roy@marples.name>
Tue, 24 Jan 2012 11:26:20 +0000 (11:26 +0000)
The compiler version is now shown during configure.

configure

index 8a395fef0efefe535cf38eaf065f623ad98134ab..eaf0cef09d1b778fa8b7985c410a091b85ad2512 100755 (executable)
--- 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