[Mesa-dev] [PATCH 2/2] configure: fix gcc version check

Brian Paul brianp at vmware.com
Thu Jul 14 08:55:55 PDT 2011


On 07/13/2011 01:26 PM, Marcin Baczyński wrote:

> ---
>  configure.ac |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index ef9f4b2..28c8e2f 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -89,7 +89,7 @@ if test "x$GCC" = xyes -a "x$CLANG" = xno; then
>      GCC_VERSION=`$CC -dumpversion`
>      if test $? -eq 0; then
>          major=`echo $GCC_VERSION | cut -d. -f1`
> -        minor=`echo $GCC_VERSION | cut -d. -f1`
> +        minor=`echo $GCC_VERSION | cut -d. -f2`
>      fi
>
>      if test $major -lt 3 -o $major -eq 3 -a $minor -lt 3 ; then
> -- 1.7.6


Pushed.  Thanks.

-Brian


More information about the mesa-dev mailing list