Commit 4c86f325 by Nathanael Nerode

Makefile.am: Set ZIP and GCJH directly using autoconf.

	* Makefile.am: Set ZIP and GCJH directly using autoconf.
	* Makefile.in, include/Makefile.in, testsuite/Makefile.in,
	gcj/Makefile.in: Regenerate.
	* configure.in: Set ZIP and GCJH.  Remove redundant condition
	in AM_CONDITIONAL(NATIVE,...)
	* configure: Regenerate.

From-SVN: r84832
parent 7740f00d
2004-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.am: Set ZIP and GCJH directly using autoconf.
* Makefile.in, include/Makefile.in, testsuite/Makefile.in,
gcj/Makefile.in: Regenerate.
* configure.in: Set ZIP and GCJH. Remove redundant condition
in AM_CONDITIONAL(NATIVE,...)
* configure: Regenerate.
2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org> 2004-07-15 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Use target_noncanonical rather than * configure.in: Use target_noncanonical rather than
......
...@@ -71,22 +71,8 @@ bin_SCRIPTS = addr2name.awk ...@@ -71,22 +71,8 @@ bin_SCRIPTS = addr2name.awk
## Compilers and compilation flags. ## Compilers and compilation flags.
## ##
## CANADIAN is a misnomer. Really we check to see if we must pick up GCJH = @GCJH@
## the tools from the path. ZIP = @ZIP@
if CANADIAN
if NULL_TARGET
## In this case, gcj is found outside the build tree. However, zip is
## found in the build tree.
ZIP = $(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar
GCJH = gcjh
else
ZIP = jar
GCJH = $(target_noncanonical)-gcjh
endif
else # CANADIAN
GCJH = $(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh
ZIP = $(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar
endif # CANADIAN
## The compiler with whatever flags we want for both -c and -C ## The compiler with whatever flags we want for both -c and -C
## compiles. ## compiles.
......
...@@ -196,12 +196,9 @@ propdir = $(libdir) ...@@ -196,12 +196,9 @@ propdir = $(libdir)
@NATIVE_TRUE@bin_PROGRAMS = @NATIVE_TRUE@jv-convert gij rmic rmiregistry @NATIVE_TRUE@bin_PROGRAMS = @NATIVE_TRUE@jv-convert gij rmic rmiregistry
bin_SCRIPTS = addr2name.awk bin_SCRIPTS = addr2name.awk
@CANADIAN_TRUE@@NULL_TARGET_TRUE@ZIP = @CANADIAN_TRUE@@NULL_TARGET_TRUE@$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar
@CANADIAN_TRUE@@NULL_TARGET_FALSE@ZIP = @CANADIAN_TRUE@@NULL_TARGET_FALSE@jar GCJH = @GCJH@
@CANADIAN_FALSE@ZIP = @CANADIAN_FALSE@$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar ZIP = @ZIP@
@CANADIAN_TRUE@@NULL_TARGET_TRUE@GCJH = @CANADIAN_TRUE@@NULL_TARGET_TRUE@gcjh
@CANADIAN_TRUE@@NULL_TARGET_FALSE@GCJH = @CANADIAN_TRUE@@NULL_TARGET_FALSE@$(target_noncanonical)-gcjh
@CANADIAN_FALSE@GCJH = @CANADIAN_FALSE@$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
...@@ -3075,7 +3072,7 @@ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ ...@@ -3075,7 +3072,7 @@ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DATA = $(jar_DATA) $(pkgconfig_DATA) $(toolexecmainlib_DATA) DATA = $(jar_DATA) $(pkgconfig_DATA) $(toolexecmainlib_DATA)
DIST_COMMON = README COPYING ChangeLog Makefile.am Makefile.in NEWS \ DIST_COMMON = README COPYING ChangeLog Makefile.am Makefile.in NEWS \
THANKS acinclude.m4 aclocal.m4 configure configure.in \ THANKS TODO acinclude.m4 aclocal.m4 configure configure.in \
libgcj-test.spec.in libgcj.pc.in libgcj.spec.in libgcj-test.spec.in libgcj.pc.in libgcj.spec.in
......
...@@ -1093,7 +1093,7 @@ case "${which_gcj}" in ...@@ -1093,7 +1093,7 @@ case "${which_gcj}" in
GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/" GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
;; ;;
cross) cross)
# See the comment in Makefile.am about CANADIAN being a misnomer # See the comment below about CANADIAN being a misnomer
CANADIAN=yes CANADIAN=yes
NULL_TARGET=no NULL_TARGET=no
if test "x${with_newlib}" = "xyes"; then if test "x${with_newlib}" = "xyes"; then
...@@ -1105,13 +1105,33 @@ case "${which_gcj}" in ...@@ -1105,13 +1105,33 @@ case "${which_gcj}" in
fi fi
;; ;;
path) path)
# See the comment in Makefile.am about CANADIAN being a misnomer # See the comment below about CANADIAN being a misnomer
CANADIAN=yes CANADIAN=yes
NULL_TARGET=yes NULL_TARGET=yes
GCJ="gcj -B`${PWDCMD-pwd}`/" GCJ="gcj -B`${PWDCMD-pwd}`/"
;; ;;
esac esac
## CANADIAN is a misnomer. Really we check to see if we must pick up
## the tools from the path.
if test $CANADIAN = yes ; then
if test $NULL_TARGET = yes ; then
## In this case, gcj is found outside the build tree. However, zip is
## found in the build tree.
ZIP = '$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar'
GCJH = gcjh
else
ZIP = jar
GCJH = '$(target_noncanonical)-gcjh'
fi
else # CANADIAN
GCJH = '$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
ZIP = '$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar'
fi # CANADIAN
AC_SUBST(GCJH)
AC_SUBST(ZIP)
# Create it, so that compile/link tests don't fail # Create it, so that compile/link tests don't fail
test -f libgcj.spec || touch libgcj.spec test -f libgcj.spec || touch libgcj.spec
...@@ -1163,9 +1183,7 @@ AC_SUBST(CHECKREFSPEC) ...@@ -1163,9 +1183,7 @@ AC_SUBST(CHECKREFSPEC)
AC_SUBST(EXCEPTIONSPEC) AC_SUBST(EXCEPTIONSPEC)
AC_SUBST(IEEESPEC) AC_SUBST(IEEESPEC)
AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes) AM_CONDITIONAL(NATIVE, test "$NATIVE" = yes)
AM_CONDITIONAL(NULL_TARGET, test "$NULL_TARGET" = yes)
AM_CONDITIONAL(NATIVE, test "$NATIVE" = yes || test "$NULL_TARGET" = yes)
AM_CONDITIONAL(NEEDS_DATA_START, test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes) AM_CONDITIONAL(NEEDS_DATA_START, test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes)
AC_SUBST(GCC_UNWIND_INCLUDE) AC_SUBST(GCC_UNWIND_INCLUDE)
......
...@@ -85,6 +85,7 @@ GCDEPS = @GCDEPS@ ...@@ -85,6 +85,7 @@ GCDEPS = @GCDEPS@
GCINCS = @GCINCS@ GCINCS = @GCINCS@
GCJ = @GCJ@ GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@ GCJFLAGS = @GCJFLAGS@
GCJH = @GCJH@
GCJVERSION = @GCJVERSION@ GCJVERSION = @GCJVERSION@
GCLIBS = @GCLIBS@ GCLIBS = @GCLIBS@
GCOBJS = @GCOBJS@ GCOBJS = @GCOBJS@
...@@ -139,6 +140,7 @@ THREADSPEC = @THREADSPEC@ ...@@ -139,6 +140,7 @@ THREADSPEC = @THREADSPEC@
TOOLKIT = @TOOLKIT@ TOOLKIT = @TOOLKIT@
VERSION = @VERSION@ VERSION = @VERSION@
ZINCS = @ZINCS@ ZINCS = @ZINCS@
ZIP = @ZIP@
ZLIBS = @ZLIBS@ ZLIBS = @ZLIBS@
ZLIBSPEC = @ZLIBSPEC@ ZLIBSPEC = @ZLIBSPEC@
ZLIBTESTSPEC = @ZLIBTESTSPEC@ ZLIBTESTSPEC = @ZLIBTESTSPEC@
......
...@@ -85,6 +85,7 @@ GCDEPS = @GCDEPS@ ...@@ -85,6 +85,7 @@ GCDEPS = @GCDEPS@
GCINCS = @GCINCS@ GCINCS = @GCINCS@
GCJ = @GCJ@ GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@ GCJFLAGS = @GCJFLAGS@
GCJH = @GCJH@
GCJVERSION = @GCJVERSION@ GCJVERSION = @GCJVERSION@
GCLIBS = @GCLIBS@ GCLIBS = @GCLIBS@
GCOBJS = @GCOBJS@ GCOBJS = @GCOBJS@
...@@ -139,6 +140,7 @@ THREADSPEC = @THREADSPEC@ ...@@ -139,6 +140,7 @@ THREADSPEC = @THREADSPEC@
TOOLKIT = @TOOLKIT@ TOOLKIT = @TOOLKIT@
VERSION = @VERSION@ VERSION = @VERSION@
ZINCS = @ZINCS@ ZINCS = @ZINCS@
ZIP = @ZIP@
ZLIBS = @ZLIBS@ ZLIBS = @ZLIBS@
ZLIBSPEC = @ZLIBSPEC@ ZLIBSPEC = @ZLIBSPEC@
ZLIBTESTSPEC = @ZLIBTESTSPEC@ ZLIBTESTSPEC = @ZLIBTESTSPEC@
......
...@@ -85,6 +85,7 @@ GCDEPS = @GCDEPS@ ...@@ -85,6 +85,7 @@ GCDEPS = @GCDEPS@
GCINCS = @GCINCS@ GCINCS = @GCINCS@
GCJ = @GCJ@ GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@ GCJFLAGS = @GCJFLAGS@
GCJH = @GCJH@
GCJVERSION = @GCJVERSION@ GCJVERSION = @GCJVERSION@
GCLIBS = @GCLIBS@ GCLIBS = @GCLIBS@
GCOBJS = @GCOBJS@ GCOBJS = @GCOBJS@
...@@ -139,6 +140,7 @@ THREADSPEC = @THREADSPEC@ ...@@ -139,6 +140,7 @@ THREADSPEC = @THREADSPEC@
TOOLKIT = @TOOLKIT@ TOOLKIT = @TOOLKIT@
VERSION = @VERSION@ VERSION = @VERSION@
ZINCS = @ZINCS@ ZINCS = @ZINCS@
ZIP = @ZIP@
ZLIBS = @ZLIBS@ ZLIBS = @ZLIBS@
ZLIBSPEC = @ZLIBSPEC@ ZLIBSPEC = @ZLIBSPEC@
ZLIBTESTSPEC = @ZLIBTESTSPEC@ ZLIBTESTSPEC = @ZLIBTESTSPEC@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment