diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-05 20:44:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-05 20:44:24 +0100 |
commit | 7077892a7918845a00ce8d7833b43cc6cbed2081 (patch) | |
tree | 414211672011c7eb31368a65a384fd1cb58bfc17 /src/auto | |
parent | 07ada5ff2fd8f22ed3233ae5c4ddf87c7b3f56fe (diff) | |
download | vim-git-7077892a7918845a00ce8d7833b43cc6cbed2081.tar.gz |
patch 8.2.0213: configure does not recognize gcc 10.0 and laterv8.2.0213
Problem: Configure does not recognize gcc 10.0 and later.
Solution: Adjust the pattern matching the version number. (Sergei
Trofimovich, closes #5580)
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auto/configure b/src/auto/configure index 1b5094e97..59f3e68d6 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -14762,7 +14762,7 @@ DEPEND_CFLAGS_FILTER= if test "$GCC" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 $as_echo_n "checking for GCC 3 or later... " >&6; } - gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` + gccmajor=`echo "$gccversion" | sed -e 's/^\([0-9]\+\)\..*$/\1/g'` if test "$gccmajor" -gt "2"; then DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |