This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
configure.in fix for unexpected as --version output
- To: gcc-patches at gcc dot gnu dot org
- Subject: configure.in fix for unexpected as --version output
- From: Zack Weinberg <zack at codesourcery dot com>
- Date: Mon, 29 Oct 2001 20:56:25 -0800
On my machine,
$ as --version | head -1
GNU assembler 2.11.92.0.10 Debian/GNU Linux
One of the autoconf tests for assembler features expects the version
number to be the last word on that line, and is not happy with the above.
checking assembler leb128 support... test: Linux: bad number
This patch corrects the problem. bootstrapped i686-linux, installed
as obvious.
zw
* configure.in: Do not assume that gas's version number is the
last thing on the first line of as --version output.
* configure: Regenerate.
===================================================================
Index: configure.in
--- configure.in 2001/10/28 20:09:03 1.548
+++ configure.in 2001/10/30 04:54:10
@@ -1382,9 +1382,9 @@ EOF
# arbitrary sections are supported and try the test.
as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
if echo "$as_ver" | grep GNU > /dev/null; then
- as_ver=`echo $as_ver | sed -e 's/.* //'`
- as_major=`echo $as_ver | sed 's/\..*//'`
changequote(,)dnl
+ as_ver=`echo $as_ver | sed -e 's/.* \([0-9.][0-9.]*\) .*/\1/'`
+ as_major=`echo $as_ver | sed 's/\..*//'`
as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
changequote([,])dnl
if test $as_major -eq 2 -a $as_minor -lt 11; then