autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoconf-2.50 feedback


From: Akim Demaille
Subject: Re: autoconf-2.50 feedback
Date: 15 Jun 2001 12:39:33 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

| On 15 Jun 2001, Akim Demaille wrote:
| > But I can tell you the tests are much better now, so I think it
| > deserves this difference.  Have a look at config.log too.  The point
| > is really to let the maintainer find everything she needs in there.
| > And BTW, if you lack some information in it, ask for it!
| 
| Well, since you asked. It would really help if the compiler
| revision appeared in the config.log file. This patch makes
| gcc or g++ dump the output of "gcc --version" and "gcc -v"
| to config.log. I am not saying this is pretty, but it works.
| I think I posted this some time ago but it never made it
| into the code.

Yep, because I was against the for-break :)  Please, get rid of it (I
suggested to use set IIRC), and with a ChangeLog, it'd be fine.

| 
| Mo DeJong
| Red Hat Inc
| 
| Index: aclang.m4
| ===================================================================
| RCS file: /cvs/autoconf/aclang.m4,v
| retrieving revision 1.128
| diff -u -r1.128 aclang.m4
| --- aclang.m4   2001/05/11 15:54:43     1.128
| +++ aclang.m4   2001/06/15 08:52:08
| @@ -550,6 +550,19 @@
|                     [ac_compiler_gnu=yes],
|                     [ac_compiler_gnu=no])
|  ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu=$ac_compiler_gnu
| +# Add the GNU compiler revision to the log file
| +if test "x$ac_compiler_gnu" = "xyes" ; then
| +    # This is kind of nasty, but I could not find
| +    # any other way to get the name of the compiler
| +    # that would work for both CC and CXX.
| +    for compiler in $ac_compile ; do
| +        break
| +    done
| +    echo "Gnu Compiler Revision:" >&AS_MESSAGE_LOG_FD
| +    eval "$compiler --version >&AS_MESSAGE_LOG_FD"
| +    echo "" >&AS_MESSAGE_LOG_FD
| +    eval "$compiler -v 2>&AS_MESSAGE_LOG_FD"
| +fi
|  ])])# _AC_LANG_COMPILER_GNU



reply via email to

[Prev in Thread] Current Thread [Next in Thread]