aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-07-27 21:58:38 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-07-27 21:58:38 +0000
commitbc9e49c77def12f54dcea33ad367cd43b8a082e0 (patch)
tree5c24e0a8bc486e5c1ba4003ab2acf3e5536d144d /configure
parent00b16889ab461b7ecef1c91ade101186b7f1fce2 (diff)
downloadexternal_llvm-bc9e49c77def12f54dcea33ad367cd43b8a082e0.zip
external_llvm-bc9e49c77def12f54dcea33ad367cd43b8a082e0.tar.gz
external_llvm-bc9e49c77def12f54dcea33ad367cd43b8a082e0.tar.bz2
Fix PR608:
Previously the script assumed the version number was the last field, now it assumes it is the first sequence of digits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index d93b4d8..023cdd0 100755
--- a/configure
+++ b/configure
@@ -24842,7 +24842,7 @@ fi
if test "$GCC" = "yes"
then
- gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
+ gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
if test "$gccmajor" -lt "3"
then
{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5