other/9479: ld --version parsing in gcc configury fails on latest FSF binutils-2.13.2.1

Greg Schafer gschafer@zip.com.au
Tue Jan 28 15:44:00 GMT 2003


Ok, here's a patch that seems to work.

Could somebody pls verify and check in if ok?

Patch provided by:-

Chris Lingard <chris@stockwith.co.uk> and
Dan Osterrath <do3@mail.inf.tu-dresden.de>

Greg
-------------- next part --------------
diff -uNr gcc.orig/configure.in gcc/configure.in
--- gcc.orig/configure.in	2003-01-28 19:11:33.000000000 +1100
+++ gcc/configure.in	2003-01-29 01:53:38.000000000 +1100
@@ -1674,7 +1674,7 @@
 	ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
 	if echo "$ld_ver" | grep GNU > /dev/null; then
 changequote(,)dnl
-		ld_vers=`echo $ld_ver | sed -n 's,^.*[ 	]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ 	].*\|\)$,\1,p'`
+		ld_vers=`echo $ld_ver | sed -n 's,^.*[  ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([     ].*\|\)$,\1,p'`
 		ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
 		if test 0"$ld_date" -lt 20020404; then
 			if test -n "$ld_date"; then


More information about the Gcc-bugs mailing list