fix CCVER gathering for cross-compiling (the i386-mingw32msvc-gcc was

throwing the regex off)
This commit is contained in:
Bill Currie 2002-06-16 01:27:56 +00:00
parent 00f5d82a86
commit ba4b11da24
1 changed files with 1 additions and 1 deletions

View File

@ -1223,7 +1223,7 @@ if test "x$optimize" = xyes; then
shift
args="$*"
AC_MSG_CHECKING(for gcc version)
CCVER="gcc `$CC --version | grep '[[0-9]]\.[[0-9]]' | sed -e 's/[[^0-9]]*\([[0-9.]]*\).*/\1/'`"
CCVER="gcc `$CC --version | grep '[[0-9]]\.[[0-9]]' | sed -e 's/.*(GCC)//' -e 's/[[^0-9]]*\([[0-9.]]*\).*/\1/'`"
set $CCVER
IFS="."
set $2