This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fixinc w/ SYSTEM_INCLUDE_DIR set?
> > > I think what I need to be able to do is to set SYSTEM_HEADER_DIR in
> > > Makefile.in from within configure. I don't see any mechanism in there
> > > to do this. Is the right thing to do just to add the plumbing in
> > > configure.in to AC_SUBST() it into the generated Makefile?
> >
> > This turns out to be trivial to do, but it still feels wrong. Here's
> > one possible implementation. Suggestions for better approaches welcome.
> I missed (ie lost) the discussion on this. Why exactly did you need
> to override SYSTEM_HEADER_DIR?
It turned out the better solution suggested by Manfred was to override
it in the t-* file.
The reason I have to do this for a specific target (that I still haven't
submitted for approval/checking) that offers an "alternate universe" of
starttups, teardowns, libraries, and headers. Having SYSTEM_HEADER_DIR
set allows things like fixincludes to DTRT.
Setting it in the t-* file cured my problem and was cleaner than my
autoconf hack above.
RJL