summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/ChangeLog11
-rwxr-xr-xlibjava/configure15
-rw-r--r--libjava/configure.ac15
-rw-r--r--libjava/external/sax/Makefile.am3
-rw-r--r--libjava/external/sax/Makefile.in1
-rw-r--r--libjava/external/w3c_dom/Makefile.am3
-rw-r--r--libjava/external/w3c_dom/Makefile.in1
7 files changed, 29 insertions, 20 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 01d0f8b1ab1..2c07c69029f 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,14 @@
+2005-03-28 Alexandre Oliva <aoliva@redhat.com>
+
+ * configure.ac: Revert 2005-03-25's patch. Propagate MULTIlib
+ settings to sub Makefiles.
+ (GCJH, ZIP): Prefix with top_builddir.
+ * configure: Rebuild.
+ * external/w3c_dom/Makefile.am (MULTIBUILDTOP): Don't override.
+ * external/w3c_dom/Makefile.in: Rebuild.
+ * external/sax/Makefile.am (MULTIBUILDTOP): Don't override.
+ * external/sax/Makefile.in: Rebuild.
+
2005-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add
diff --git a/libjava/configure b/libjava/configure
index 076a4a00d41..1373373f0bf 100755
--- a/libjava/configure
+++ b/libjava/configure
@@ -13275,7 +13275,6 @@ NATIVE=yes
# Which gcj do we use?
which_gcj=default
built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
-built_hostdir="`cd ${builddotdot}/../../${host_subdir} && ${PWDCMD-pwd}`"
if test -n "${with_cross_host}"; then
# We are being configured with a cross compiler. We can't
# use ac_exeext, because that is for the target platform.
@@ -13314,10 +13313,8 @@ fi
case "${which_gcj}" in
built)
GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
- # GCJH='$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
- GCJH="$built_gcc_dir/gcjh"
- # ZIP='$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
- ZIP="$built_hostdir/fastjar/fastjar"
+ GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
+ ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
;;
cross)
if test "x${with_newlib}" = "xyes"; then
@@ -13334,7 +13331,7 @@ case "${which_gcj}" in
GCJ="gcj -B`${PWDCMD-pwd}`/"
## In this case, gcj is found outside the build tree. However, zip is
## found in the build tree.
- ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
+ ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
GCJH=gcjh
;;
esac
@@ -17575,6 +17572,12 @@ case " $CONFIG_FILES " in
ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
;;
esac
+for ac_multi_file in $CONFIG_FILES; do
+ case $ac_multi_file in
+ */Makefile)
+ grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
+ esac
+done
;;
esac
done
diff --git a/libjava/configure.ac b/libjava/configure.ac
index 9f16149a8f6..2df1385c099 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -1029,7 +1029,6 @@ NATIVE=yes
# Which gcj do we use?
which_gcj=default
built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
-built_hostdir="`cd ${builddotdot}/../../${host_subdir} && ${PWDCMD-pwd}`"
if test -n "${with_cross_host}"; then
# We are being configured with a cross compiler. We can't
# use ac_exeext, because that is for the target platform.
@@ -1068,10 +1067,8 @@ fi
case "${which_gcj}" in
built)
GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
- # GCJH='$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
- GCJH="$built_gcc_dir/gcjh"
- # ZIP='$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
- ZIP="$built_hostdir/fastjar/fastjar"
+ GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
+ ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
;;
cross)
if test "x${with_newlib}" = "xyes"; then
@@ -1088,7 +1085,7 @@ case "${which_gcj}" in
GCJ="gcj -B`${PWDCMD-pwd}`/"
## In this case, gcj is found outside the build tree. However, zip is
## found in the build tree.
- ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
+ ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
GCJH=gcjh
;;
esac
@@ -1402,6 +1399,12 @@ case " $CONFIG_FILES " in
ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
;;
esac
+for ac_multi_file in $CONFIG_FILES; do
+ case $ac_multi_file in
+ */Makefile)
+ grep "^MULTI[[^ ]]* =" Makefile >> "$ac_multi_file" ;;
+ esac
+done
],
srcdir=${srcdir}
host=${host}
diff --git a/libjava/external/sax/Makefile.am b/libjava/external/sax/Makefile.am
index 65c3a28b4c2..6c7ac28716b 100644
--- a/libjava/external/sax/Makefile.am
+++ b/libjava/external/sax/Makefile.am
@@ -5,9 +5,6 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
# May be used by various substitution variables.
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
-## Needed because $(ZIP) is a relative path.
-MULTIBUILDTOP = ../../
-
## The compiler with whatever flags we want for both -c and -C
## compiles.
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated -fbootclasspath=$(BOOTCLASSPATH)
diff --git a/libjava/external/sax/Makefile.in b/libjava/external/sax/Makefile.in
index 6834616dac0..6ee3e5f0bd0 100644
--- a/libjava/external/sax/Makefile.in
+++ b/libjava/external/sax/Makefile.in
@@ -299,7 +299,6 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
# May be used by various substitution variables.
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
-MULTIBUILDTOP = ../../
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated -fbootclasspath=$(BOOTCLASSPATH)
BOOTCLASSPATH = $(here)'$(CLASSPATH_SEPARATOR)'$(srcdir)'$(CLASSPATH_SEPARATOR)'$(top_srcdir)'$(CLASSPATH_SEPARATOR)'$(top_builddir)
AM_GCJFLAGS = \
diff --git a/libjava/external/w3c_dom/Makefile.am b/libjava/external/w3c_dom/Makefile.am
index 2c563dea56e..97235098f31 100644
--- a/libjava/external/w3c_dom/Makefile.am
+++ b/libjava/external/w3c_dom/Makefile.am
@@ -5,9 +5,6 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
# May be used by various substitution variables.
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
-## Needed because $(ZIP) is a relative path.
-MULTIBUILDTOP = ../../
-
## The compiler with whatever flags we want for both -c and -C
## compiles.
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated -fbootclasspath=$(BOOTCLASSPATH)
diff --git a/libjava/external/w3c_dom/Makefile.in b/libjava/external/w3c_dom/Makefile.in
index 5718e0b8fe0..934fd5feb75 100644
--- a/libjava/external/w3c_dom/Makefile.in
+++ b/libjava/external/w3c_dom/Makefile.in
@@ -299,7 +299,6 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
# May be used by various substitution variables.
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
-MULTIBUILDTOP = ../../
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated -fbootclasspath=$(BOOTCLASSPATH)
BOOTCLASSPATH = $(here)'$(CLASSPATH_SEPARATOR)'$(srcdir)'$(CLASSPATH_SEPARATOR)'$(top_srcdir)'$(CLASSPATH_SEPARATOR)'$(top_builddir)
AM_GCJFLAGS = \