autoconf-patches
[Top][All Lists]
Advanced

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

Re: Make special accommodation for cl in _AC_PROG_CC_G


From: Braden McDaniel
Subject: Re: Make special accommodation for cl in _AC_PROG_CC_G
Date: 18 Jul 2003 01:42:12 -0400

On Fri, 2003-07-18 at 00:10, Paul Eggert wrote:
> Braden McDaniel <address@hidden> writes:
> 
> > > Maybe some other strategy would be more general.  Like checking that
> > > adding -g both works and doesn't output any extra messages, or
> > > something like that.
> > 
> > I think finding out what "extra" is would be extremely difficult, if not 
> > impossible, to do in a general way.
> 
> No, it's easy.
> 
> 1.  Compile without -g.  Save the output.  E.g., without_g=`cc -g foo.c`.
> 2.  Compile with -g.  Save the output.  E.g., with_g=`cc foo.c`.
> 3.  Compare the two.  E.g., if test "x$without_g" = "x$with_g"; then ....

That makes the assumption that a compiler won't have normal informative
output that differs depending on the presence of -g. That's probably a
reasonable assumption.

So is that the test you'd prefer to have in a patch?

-- 
Braden McDaniel                           e-mail: <address@hidden>
<http://endoframe.com>                    Jabber: <address@hidden>





reply via email to

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