[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GMP and gcc 3.1 (unrecognized compiler version)
From: |
Kevin Ryde |
Subject: |
Re: GMP and gcc 3.1 (unrecognized compiler version) |
Date: |
Sat, 15 Jun 2002 11:28:39 +1000 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu) |
address@hidden writes:
>
> What I have done is simply used awk to trim just the first line (since the
> 3.1 gcc --version is multi line). The sed was nabbing the 2002 from the
> date (or nothing), and the unrecognised compiler version message was shown.
Thanks, I missed that. I think I'll go with a "sed 1q" in the initial
--version invocation,
tmp_version=`($1 --version | sed 1q) 2>&AC_FD_CC`
Alway a bit fragile trying to parse out version numbers I guess. If
the whole test can't be eliminated it might be best to just look for
the bad versions, and let everything else though.