Mercurial > hg > nginx
changeset 7161:325b3042edd6
Configure: fixed clang detection on MINIX.
As per POSIX, basic regular expressions have no alternations, and the
interpretation of the "\|" construct is undefined. At least on MINIX
and Solaris grep interprets "\|" as literal "|", and not as an alternation
as GNU grep does. Removed such constructs introduced in f1daa0356a1d.
This fixes clang detection on MINIX.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 23 Nov 2017 16:33:40 +0300 |
parents | 0a5e3d893a0c |
children | 8b84d60ef13d |
files | auto/cc/clang auto/cc/name |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/auto/cc/clang Thu Nov 23 16:32:58 2017 +0300 +++ b/auto/cc/clang Thu Nov 23 16:33:40 2017 +0300 @@ -5,7 +5,7 @@ # clang -NGX_CLANG_VER=`$CC -v 2>&1 | grep '\(clang\|LLVM\) version' 2>&1 \ +NGX_CLANG_VER=`$CC -v 2>&1 | grep 'version' 2>&1 \ | sed -e 's/^.* version \(.*\)/\1/'` echo " + clang version: $NGX_CLANG_VER"
--- a/auto/cc/name Thu Nov 23 16:32:58 2017 +0300 +++ b/auto/cc/name Thu Nov 23 16:33:40 2017 +0300 @@ -44,7 +44,11 @@ NGX_CC_NAME=gcc echo " + using GNU C compiler" -elif `$CC -v 2>&1 | grep '\(clang\|LLVM\) version' >/dev/null 2>&1`; then +elif `$CC -v 2>&1 | grep 'clang version' >/dev/null 2>&1`; then + NGX_CC_NAME=clang + echo " + using Clang C compiler" + +elif `$CC -v 2>&1 | grep 'LLVM version' >/dev/null 2>&1`; then NGX_CC_NAME=clang echo " + using Clang C compiler"