comparison auto/cc/name @ 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 78f8ac479735
children
comparison
equal deleted inserted replaced
7160:0a5e3d893a0c 7161:325b3042edd6
42 42
43 elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then 43 elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
44 NGX_CC_NAME=gcc 44 NGX_CC_NAME=gcc
45 echo " + using GNU C compiler" 45 echo " + using GNU C compiler"
46 46
47 elif `$CC -v 2>&1 | grep '\(clang\|LLVM\) version' >/dev/null 2>&1`; then 47 elif `$CC -v 2>&1 | grep 'clang version' >/dev/null 2>&1`; then
48 NGX_CC_NAME=clang
49 echo " + using Clang C compiler"
50
51 elif `$CC -v 2>&1 | grep 'LLVM version' >/dev/null 2>&1`; then
48 NGX_CC_NAME=clang 52 NGX_CC_NAME=clang
49 echo " + using Clang C compiler" 53 echo " + using Clang C compiler"
50 54
51 elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then 55 elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
52 NGX_CC_NAME=sunc 56 NGX_CC_NAME=sunc