fix the gcc version checking for gcc 3.1
This commit is contained in:
parent
25ebab2e09
commit
35c2a4c4d7
|
@ -1214,7 +1214,7 @@ if test "x$optimize" = xyes; then
|
|||
shift
|
||||
args="$*"
|
||||
AC_MSG_CHECKING(for gcc version)
|
||||
CCVER="gcc `$CC --version`"
|
||||
CCVER="gcc `$CC --version | grep '[[0-9]]\.[[0-9]]' | sed -e 's/[[^0-9]]*\([[0-9.]]*\).*/\1/'`"
|
||||
set $CCVER
|
||||
IFS="."
|
||||
set $2
|
||||
|
|
Loading…
Reference in New Issue