From: Antony Dovgal Date: Fri, 23 May 2008 19:10:39 +0000 (+0000) Subject: MFH X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1cb67310ca880888e0182e706487a753b07ca71;p=php MFH --- 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