diff options
author | Jeffrey Walton <noloader@gmail.com> | 2020-12-24 10:37:57 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2020-12-24 10:37:57 -0500 |
commit | 5a1815c661df703c673595fa2730341c8b04175b (patch) | |
tree | 4a52c873479a6faf1d85688866f08d8858099d78 /TestScripts/configure.sh | |
parent | 9e0752463f1401eeba97368e575790c85dfbfa0c (diff) | |
download | cryptopp-git-5a1815c661df703c673595fa2730341c8b04175b.tar.gz |
Fix 'grep: repetition-operator operand invalid' in configure.sh
Diffstat (limited to 'TestScripts/configure.sh')
-rwxr-xr-x | TestScripts/configure.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TestScripts/configure.sh b/TestScripts/configure.sh index 4c9b37f3..7588f231 100755 --- a/TestScripts/configure.sh +++ b/TestScripts/configure.sh @@ -81,9 +81,9 @@ IS_PPC=0 IS_PPC64=0 # Determine compiler -GCC_COMPILER=$(${CXX} --version 2>/dev/null | ${GREP} -i -c -E '^g++') +GCC_COMPILER=$(${CXX} --version 2>/dev/null | ${GREP} -i -c -E '(^g\+\+|GNU)') SUN_COMPILER=$(${CXX} -V 2>/dev/null | ${GREP} -i -c -E 'CC: (Sun|Oracle) Studio') -XLC_COMPILER=$(${CXX} -qversion 2>/dev/null | ${GREP} -i -c "IBM XL C/C++") +XLC_COMPILER=$(${CXX} -qversion 2>/dev/null | ${GREP} -i -c "IBM XL C/C\+\+") CLANG_COMPILER=$(${CXX} --version 2>/dev/null | ${GREP} -i -c -E 'clang|llvm') if [[ "$SUN_COMPILER" -ne 0 ]] |