This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in installation
- To: law at cygnus dot com
- Subject: Re: Bug in installation
- From: Knut-Håvard Aksnes <etokna at eto dot ericsson dot se>
- Date: Tue, 9 Dec 1997 10:38:06 +0100
- Cc: Paul Koning <pkoning at xedia dot com>, egcs at cygnus dot com, etokna at eto dot ericsson dot se
- References: <9712052020.AA29379@kona.><12237.881645265@hurl.cygnus.com>
Jeffrey A Law writes:
>
> In message <9712052020.AA29379@kona.>you write:
> > >>>>> "Jeffrey" == Jeffrey A Law <law@cygnus.com> writes:
> >
> > Jeffrey> Or maybe we stop installing f2c outside of $(libsubdir) and
> > Jeffrey> instead have configure issue a warning about the existance
> > Jeffrey> of an old f2c in /usr/include or /usr/local/include?
I second this comment.
> >
> > Sounds like a great idea. Hardwired destinations are a pain, and
> > moving away from them in this manner is a definite plus.
> Actually I just went back and looked at the archives and the source;
> and f2c.h is not installed outside of $prefix by default. It is only
> done if F2C_INSTALL_FLAGS is true, which should only happen if
> you've touched the file f2c-install-ok.
>
> So, I think we need to find out how/why this file is being installed
> on your systems and fix it.
>
>From my Makefile (This to debug the Makefile.in):
F2C_INSTALL_FLAG = [ -f f2c-install-ok -o -f $(srcdir)/f2c-install-ok ]
and later:
install-f2c-header:
-if test -n "$(F2C_INSTALL_FLAG)" && test -f include/f2c.h; then \
$(INSTALL_DATA) include/f2c.h $(includedir)/f2c.h; \
chmod a+r $(includedir)/f2c.h; \
else true; fi
What you wants is probably:
install-f2c-header:
-if $(F2C_INSTALL_FLAG) && test -f include/f2c.h; then \
$(INSTALL_DATA) include/f2c.h $(includedir)/f2c.h; \
chmod a+r $(includedir)/f2c.h; \
else true; fi
I still thinks this is the wrong way of doing installation,
enable/disable at configuration time is probably better than checking
for f2c-install-ok. (A warning can be issued at configuration and/or
install time.)
---------------------------------------------------------------------------
Name: Knut-Håvard Aksnes Ericsson signature: HI/ETO/X/I KNA
Phones: Job: +47 370 51 481 Mobile: +47 915 60 624
Email: etokna@eto.ericsson.se Memo: ETO.ETOKNA