diff options
author | unknown <sanja@askmonty.org> | 2011-03-01 16:21:27 +0200 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2011-03-01 16:21:27 +0200 |
commit | c60ad7e6cda53eadb972b314c2448daa9fba2672 (patch) | |
tree | 2e7727f0a1a0855034dfe9afb8104a2b43a21ada /BUILD | |
parent | 97d46a0cd341dfce56c0a94a669e1832f51116f2 (diff) | |
download | mariadb-git-c60ad7e6cda53eadb972b314c2448daa9fba2672.tar.gz |
Fixed for mac sed.
Diffstat (limited to 'BUILD')
-rwxr-xr-x | BUILD/SETUP.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh index c65955dd466..ee18384205d 100755 --- a/BUILD/SETUP.sh +++ b/BUILD/SETUP.sh @@ -214,7 +214,8 @@ fi # because it is allowed there without -O # if test `$CC -v 2>&1 | tail -1 | sed 's/ .*$//'` = 'gcc' ; then - GCCVERSION=`cc -v 2>&1 | tail -1 | sed 's/^\w\w* \w\w* //' | sed 's/ .*$//'` + GCCVERSION=`$CC -v 2>&1 | tail -1 | \ + sed 's/^[a-zA-Z][a-zA-Z]* [a-zA-Z][a-zA-Z]* //' | sed 's/ .*$//'` GCCV1=`echo $GCCVERSION | sed 's/\..*$//'` GCCV2=`echo $GCCVERSION | sed 's/[0-9][0-9]*\.//'|sed 's/\..*$//'` if test '(' "$GCCV1" -gt '4' ')' -o \ |