Mercurial > vim
comparison src/configure.ac @ 19310:ae6bcbadf04b v8.2.0213
patch 8.2.0213: configure does not recognize gcc 10.0 and later
Commit: https://github.com/vim/vim/commit/7077892a7918845a00ce8d7833b43cc6cbed2081
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 5 20:44:24 2020 +0100
patch 8.2.0213: configure does not recognize gcc 10.0 and later
Problem: Configure does not recognize gcc 10.0 and later.
Solution: Adjust the pattern matching the version number. (Sergei
Trofimovich, closes #5580)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Feb 2020 20:45:05 +0100 |
parents | 23df4b83fd31 |
children | 224fb493b72c |
comparison
equal
deleted
inserted
replaced
19309:a7bf6a04e27a | 19310:ae6bcbadf04b |
---|---|
2193 LDFLAGS="$LDFLAGS -W l,dll" | 2193 LDFLAGS="$LDFLAGS -W l,dll" |
2194 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" | 2194 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
2195 fi | 2195 fi |
2196 | 2196 |
2197 dnl On my HPUX system the X include dir is found, but the lib dir not. | 2197 dnl On my HPUX system the X include dir is found, but the lib dir not. |
2198 dnl This is a desparate try to fix this. | 2198 dnl This is a desperate try to fix this. |
2199 | 2199 |
2200 if test -d "$x_includes" && test ! -d "$x_libraries"; then | 2200 if test -d "$x_includes" && test ! -d "$x_libraries"; then |
2201 x_libraries=`echo "$x_includes" | sed s/include/lib/` | 2201 x_libraries=`echo "$x_includes" | sed s/include/lib/` |
2202 AC_MSG_RESULT(Corrected X libraries to $x_libraries) | 2202 AC_MSG_RESULT(Corrected X libraries to $x_libraries) |
2203 X_LIBS="$X_LIBS -L$x_libraries" | 2203 X_LIBS="$X_LIBS -L$x_libraries" |
4445 dnl Mac gcc returns "powerpc-apple-darwin8-gcc-4.0.1 (GCC)...", need to allow | 4445 dnl Mac gcc returns "powerpc-apple-darwin8-gcc-4.0.1 (GCC)...", need to allow |
4446 dnl the number before the version number. | 4446 dnl the number before the version number. |
4447 DEPEND_CFLAGS_FILTER= | 4447 DEPEND_CFLAGS_FILTER= |
4448 if test "$GCC" = yes; then | 4448 if test "$GCC" = yes; then |
4449 AC_MSG_CHECKING(for GCC 3 or later) | 4449 AC_MSG_CHECKING(for GCC 3 or later) |
4450 gccmajor=`echo "$gccversion" | sed -e 's/^\([[1-9]]\)\..*$/\1/g'` | 4450 gccmajor=`echo "$gccversion" | sed -e 's/^\([[0-9]]\+\)\..*$/\1/g'` |
4451 if test "$gccmajor" -gt "2"; then | 4451 if test "$gccmajor" -gt "2"; then |
4452 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" | 4452 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
4453 AC_MSG_RESULT(yes) | 4453 AC_MSG_RESULT(yes) |
4454 else | 4454 else |
4455 AC_MSG_RESULT(no) | 4455 AC_MSG_RESULT(no) |