This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: f2c configure fix


 > From: Jeffrey A Law <law@upchuck.cygnus.com>
 > 
 >   In message <199903281753.MAA16808@caip.rutgers.edu>you write:
 >   > 
 >   > 	Based on some initial investigation, I would hazard a guess that
 >   > the -I flags configure.in uses to compile this test should be using
 >   > $topsrcdir, instead of using $srcdir or hardcoding "../..".  (In my case
 >   > builddir == srcdir.)  I based this conclusion on my examiniation of the
 >   > definition of $extra_includes in libf2c/configure.in. 
 > 
 > Weird.  The failure I saw was rather different -- the inability to
 > find stuff from the gcc object directory.
 > 
 > Are you building in the source tree?  That might explain the difference
 > and would indicate that we actually have two (closely related) problems
 > to resolve.


	Yes I'm building in the source tree.  That's what I meant when
I said "builddir == srcdir". :-)   What exactly wasn't found during
your build?  Were you using a relative or hard path to your srcdir?


 > I'm drop-dead tired, so I won't be able to look at this anymore until
 > tomorrow night.
 > jeff


	The following solves the problem I saw.  Since your build
didn't find something it was looking for in the object directory, this
might not solve your issue.  But let me know either way.

		--Kaveh

diff -rup orig/egcs-CVS19990329/libf2c/configure.in egcs-CVS19990329/libf2c/configure.in
--- orig/egcs-CVS19990329/libf2c/configure.in	Sun Mar 28 07:18:22 1999
+++ egcs-CVS19990329/libf2c/configure.in	Tue Mar 30 12:11:20 1999
@@ -101,12 +101,7 @@ AC_MSG_CHECKING(f2c integer type)
 # Set this back later below!
 late_ac_cpp=$ac_cpp
 late_cflags=$CFLAGS
-##gcc -c  -DIN_GCC -DHAVE_CONFIG_H -I. -I/home/fx/c-e/egcs/gcc -I/home/fx/c-e/egcs/gcc/config -I/home/fx/c-e/egcs/gcc/../include /home/fx/c-e/egcs/gcc/f/proj.c
-if test "$srcdir" != . ; then
-  extra_includes="-I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../include -I$srcdir/../gcc/config"
-else
-  extra_includes="-I../../gcc/f -I../../gcc -I../../include -I../../gcc/config"
-fi
+extra_includes="-I$topsrcdir/gcc/f -I$topsrcdir/gcc -I$topsrcdir/include -I$topsrcdir/gcc/config"
 ac_cpp="$late_ac_cpp -DIN_GCC -DHAVE_CONFIG_H $extra_includes"
 
 # The AC_EGREP_CPPs below have been known to fail when the header


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]