]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Fri, 23 May 2008 19:10:39 +0000 (19:10 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 23 May 2008 19:10:39 +0000 (19:10 +0000)
configure.in

index cb0d6632fe79227c47834564e62c80e2965f2a60..b79b3df46035cddbfaa2de3a98ba0a461a725268 100644 (file)
@@ -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