diff options
author | Andreas Franck <afranck@gmx.de> | 2001-11-08 20:18:18 +0000 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2001-11-08 15:18:18 -0500 |
commit | b21d216c74a2df1acd6afcfc3e5956034022b4a1 (patch) | |
tree | 093809cebe8d2f89053f9c1edc959ff2b43580cb /gcc/java | |
parent | c8a14e0e9aa678c6bd3eb62fe658eea8424432ba (diff) | |
download | gcc-b21d216c74a2df1acd6afcfc3e5956034022b4a1.zip gcc-b21d216c74a2df1acd6afcfc3e5956034022b4a1.tar.gz gcc-b21d216c74a2df1acd6afcfc3e5956034022b4a1.tar.bz2 |
configure.in: Add AC_ARG_PROGRAM to support program name transformation with --program-prefix...
* configure.in: Add AC_ARG_PROGRAM to support program name
transformation with --program-prefix, --program-suffix and
--program-transform-name.
* Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(GCC_TARGET_INSTALL_NAME): Define.
(install-driver): Use the transformed target alias name.
* Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
DEMANGLER_CROSS_NAME): Handle program_transform_name the way
suggested by autoconf.
(GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
(c++.install-common): Use the transformed target alias names.
* Make-lang.in (G77_INSTALL_NAME, G77_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
* Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(java.install-common): Also transform auxiliary program names with
program_transform_name.
From-SVN: r46856
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/java/Make-lang.in | 11 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index a016b69..e2a115f 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +2001-11-08 Andreas Franck <afranck@gmx.de> + + * Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle + program_transform_name the way suggested by autoconf. + (java.install-common): Also transform auxiliary program names with + program_transform_name. + 2001-11-08 Tom Tromey <tromey@cygnus.com> * parse.y (trap_overflow_corner_case): New rule. diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in index 7186aed..f217139 100644 --- a/gcc/java/Make-lang.in +++ b/gcc/java/Make-lang.in @@ -42,10 +42,10 @@ # - define the names for selecting the language in LANGUAGES. # Actual names to use when installing a native compiler. -JAVA_INSTALL_NAME = `t='$(program_transform_name)'; echo gcj | sed $$t` +JAVA_INSTALL_NAME = `echo gcj|sed '$(program_transform_name)'` # Actual names to use when installing a cross-compiler. -JAVA_CROSS_NAME = `t='$(program_transform_cross_name)'; echo gcj | sed $$t` +JAVA_CROSS_NAME = `echo gcj|sed '$(program_transform_cross_name)'` GCJ = gcj @@ -170,10 +170,11 @@ java.install-common: installdirs fi ; \ fi ; \ for tool in $(JAVA_TARGET_INDEPENDENT_BIN_TOOLS); do \ + tool_transformed_name=`echo $$tool|sed '$(program_transform_name)'`; \ if [ -f $$tool$(exeext) ]; then \ - rm -f $(bindir)/$$tool$(exeext); \ - $(INSTALL_PROGRAM) $$tool$(exeext) $(bindir)/$$tool$(exeext); \ - chmod a+x $(bindir)/$$tool$(exeext); \ + rm -f $(bindir)/$$tool_transformed_name$(exeext); \ + $(INSTALL_PROGRAM) $$tool$(exeext) $(bindir)/$$tool_transformed_name$(exeext); \ + chmod a+x $(bindir)/$$tool_transformed_name$(exeext); \ fi ; \ done |