Configure: fixed detection of newer Apple clang compilers.

This commit is contained in:
Ruslan Ermilov 2013-04-29 18:07:22 +04:00
parent 8bc3ed7604
commit e565dbc6e0
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@
# clang # clang
NGX_CLANG_VER=`$CC -v 2>&1 | grep 'clang version' 2>&1 \ NGX_CLANG_VER=`$CC -v 2>&1 | grep '\(clang\|LLVM\) version' 2>&1 \
| sed -e 's/^.*clang version \(.*\)/\1/'` | sed -e 's/^.* version \(.*\)/\1/'`
echo " + clang version: $NGX_CLANG_VER" echo " + clang version: $NGX_CLANG_VER"

View File

@ -67,7 +67,7 @@ elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
NGX_CC_NAME=gcc NGX_CC_NAME=gcc
echo " + using GNU C compiler" echo " + using GNU C compiler"
elif `$CC -v 2>&1 | grep 'clang version' >/dev/null 2>&1`; then elif `$CC -v 2>&1 | grep '\(clang\|LLVM\) version' >/dev/null 2>&1`; then
NGX_CC_NAME=clang NGX_CC_NAME=clang
echo " + using Clang C compiler" echo " + using Clang C compiler"