From e1cb67310ca880888e0182e706487a753b07ca71 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 23 May 2008 19:10:39 +0000 Subject: [PATCH] MFH --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index cb0d6632fe..b79b3df460 100644 --- a/configure.in +++ b/configure.in @@ -214,7 +214,7 @@ if test "$GCC" = "yes"; then GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE '1s/([[0-9]]+)\.[[0-9]]+\..*/\1/;1p'` ;; *) - GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[[^0-9]]*\([[0-9]]\+\)\.[[0-9]]\+\..*/\1/;1p'` + GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[[^0-9]]*//;1s/\..*//;1p'` ;; esac if test $GCC_MAJOR_VERSION -ge 4; then -- 2.40.0