This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: Fix for bootstrap/3075
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Subject: Re: Patch: Fix for bootstrap/3075
- From: Tom Tromey <tromey at redhat dot com>
- Date: 08 Jun 2001 14:08:04 -0600
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Java Patch List <java-patches at gcc dot gnu dot org>, Mark Mitchell <mark at codesourcery dot com>
- References: <871yovbqjd.fsf@creche.redhat.com> <yddbsny7ork.fsf@xayide.TechFak.Uni-Bielefeld.DE>
- Reply-To: tromey at redhat dot com
>>>>> "Rainer" == Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> writes:
Rainer> This patch seems to have broken a sparc-sun-solaris2.5.1 bootstrap:
Thanks.
Rainer> While $(srcdir) is absolute, it's passed to --with-auxdir as a
Rainer> non-existant relative directory ;-(
Another case I failed to consider :-(.
auxdir handling really sucks, and automake makes it worse.
I plan to fix that.
Meanwhile, is there any way you could try the appended patch?
(I know this is no good for Windows. libjava doesn't build on Windows
anyway.)
Tom
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.73.2.11
diff -u -r1.73.2.11 configure.in
--- configure.in 2001/06/08 17:58:16 1.73.2.11
+++ configure.in 2001/06/08 19:52:30
@@ -23,7 +23,16 @@
# Sigh. Libtool's macro doesn't do the right thing.
INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
# FIXME: this is a hack.
- ac_configure_args="$ac_configure_args --with-auxdir=../$ac_aux_dir"
+ sub_auxdir=
+ case "$ac_aux_dir" in
+ /*)
+ sub_auxdir="$ac_aux_dir"
+ ;;
+ *)
+ sub_auxdir="../$ac_aux_dir"
+ ;;
+ esac
+ ac_configure_args="$ac_configure_args --with-auxdir=../$sub_aux_dir"
fi
AC_SUBST(INCLTDL)
AC_SUBST(LIBLTDL)