From 58ea87a9f25aa2667d67bb4a332e73b9631b605b Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Fri, 17 Sep 2004 12:45:34 +0000 Subject: [PATCH] configure.ac (gcc_cv_gld_version): Handle whitespace before "VERSION=". * configure.ac (gcc_cv_gld_version): Handle whitespace before "VERSION=". * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto. * configure: Regenerate. From-SVN: r87643 --- gcc/ChangeLog | 7 +++++++ gcc/aclocal.m4 | 2 +- gcc/configure | 4 ++-- gcc/configure.ac | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8088c0c7c38..6a273d21da3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-09-17 Hans-Peter Nilsson + + * configure.ac (gcc_cv_gld_version): Handle whitespace before + "VERSION=". + * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto. + * configure: Regenerate. + 2004-09-17 J"orn Rennecke * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference. diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index 6f1679e009a..ba49bf42dd3 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -570,7 +570,7 @@ for f in $gcc_cv_as_bfd_srcdir/configure \ $gcc_cv_as_gas_srcdir/configure \ $gcc_cv_as_gas_srcdir/configure.in \ $gcc_cv_as_gas_srcdir/Makefile.in ; do - gcc_cv_gas_version=`grep '^VERSION=[[0-9]]*\.[[0-9]]*' $f` + gcc_cv_gas_version=`sed -n -e 's/^[[ ]]*\(VERSION=[[0-9]]*\.[[0-9]]*.*\)/\1/p' < $f` if test x$gcc_cv_gas_version != x; then break fi diff --git a/gcc/configure b/gcc/configure index 8a20fd34a8a..1f9443cb5d7 100755 --- a/gcc/configure +++ b/gcc/configure @@ -10099,7 +10099,7 @@ for f in $gcc_cv_as_bfd_srcdir/configure \ $gcc_cv_as_gas_srcdir/configure \ $gcc_cv_as_gas_srcdir/configure.in \ $gcc_cv_as_gas_srcdir/Makefile.in ; do - gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` + gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f` if test x$gcc_cv_gas_version != x; then break fi @@ -10234,7 +10234,7 @@ elif test -f $gcc_cv_ld_gld_srcdir/configure.in \ fi for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in do - gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` + gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f` if test x$gcc_cv_gld_version != x; then break fi diff --git a/gcc/configure.ac b/gcc/configure.ac index 1ae739e7af2..e7a84662c63 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1872,7 +1872,7 @@ elif test -f $gcc_cv_ld_gld_srcdir/configure.in \ for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in do changequote(,)dnl - gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` + gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f` changequote([,])dnl if test x$gcc_cv_gld_version != x; then break -- 2.30.2