[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to record GCC revision in config.log
From: |
Akim Demaille |
Subject: |
Re: Patch to record GCC revision in config.log |
Date: |
30 Mar 2001 14:27:41 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
>>>>> "Mo" == Mo DeJong <address@hidden> writes:
Mo> Hello. Here is a little patch that will record the revision of a
Mo> GNU compiler if one is detected in _AC_LANG_COMPILER_GNU. It is
Mo> common for a user to report a build problem and not include the
Mo> rev of the compiler they are using. By recording this info in
Mo> config.log, we save ourselves the hassle of tracking the user down
Mo> and having them run "gcc -v" at the command line.
I agree very much. Didn't do it yet because I would prefer a generic
solution, not just for GCC (but for AC_PATH_PROG etc.). Still, there
are probably problems tuning a generic solution, so as a first step
it's OK.
Still, the implementation is bizarre:
+ for compiler in $ac_compile ; do
+ break
+ done
first it's wrong: $compiler is not in the Autoconf name space. I'd
suggest
ac_compiler=`set X $ac_compile; echo "$2"`.
Thanks, I'll apply it.