This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Update for AC_PROG_STDC_CC fix
- From: Tom Tromey <tromey at redhat dot com>
- To: law at redhat dot com
- Cc: Andrew Cagney <ac131313 at cygnus dot com>, gdb-patches at sources dot redhat dot com
- Date: 19 Dec 2001 11:05:22 -0700
- Subject: Re: Update for AC_PROG_STDC_CC fix
- References: <21214.1008779331@porcupine.cygnus.com>
- Reply-to: tromey at redhat dot com
>>>>> "Jeff" == law <law@redhat.com> writes:
Jeff> It seems to me like the various Makefiles associated with gdb use CC,
Jeff> but I couldn't find the mechanism by which CC was assigned the result
Jeff> of AM_PROG_CC_STDC. But apparently by some magic it does happen.
It happens at the end of AM_PROG_CC_STDC:
case "x$am_cv_prog_cc_stdc" in
x|xno) ;;
*) CC="$CC $am_cv_prog_cc_stdc" ;;
esac
Jeff> This in turn begs the question -- if we rename AM_PROG_CC_STDC
Jeff> to GDB_PROG_CC_STDC will the value computed by GDB_PROG_CC_STDC
Jeff> still be used to initialize CC in the generated Makefile?
Yes. You also have to rename the cache variables.
It is probably a bit better to just make sure all the directories in
gdb use the same AM_PROG_CC_STDC macro -- use the newest one.
If you do this then it seems to me that it will be a little easier to
pick up future bug fixes.
Tom