[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make special accommodation for cl in _AC_PROG_CC_G
From: |
Paul Eggert |
Subject: |
Re: Make special accommodation for cl in _AC_PROG_CC_G |
Date: |
17 Jul 2003 21:10:27 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
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 ....