configure.ac: Add ACX_NONCANONICAL_HOST.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 16 May 2016 08:55:12 +0000 (08:55 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 16 May 2016 08:55:12 +0000 (08:55 +0000)
gnattools/
* configure.ac: Add ACX_NONCANONICAL_HOST.
* configure: Regenerate.
* Makefile.in: Replace host_alias with host_noncanonical.
(gnattools-cross): Do not rename the tools.
gcc/
* configure.ac: Add ACX_NONCANONICAL_HOST.
* configure: Regenerate.
* Makefile.in: Set host_noncanonical.
gcc/ada
* gcc-interface/Make-lang.in (GNATMAKE_FOR_HOST): In the canadian
cross case, use host_noncanonical instead of host as prefix.
(GNATBIND_FOR_HOST): Likewise.
(GNATLINK_FOR_HOST): Likewise.
(GNATLS_FOR_HOST): Likewise.

From-SVN: r236267

gcc/ChangeLog
gcc/Makefile.in
gcc/ada/ChangeLog
gcc/ada/gcc-interface/Make-lang.in
gcc/configure
gcc/configure.ac
gnattools/ChangeLog
gnattools/Makefile.in
gnattools/configure
gnattools/configure.ac

index c0f78ed83c8356b7f43a8ead848fa67b60ca67ad..da0814633fc1dcc634a7f69df0149ee233fa8c87 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * configure.ac: Add ACX_NONCANONICAL_HOST.
+       * configure: Regenerate.
+       * Makefile.in: Set host_noncanonical.
+
 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/71097
index 6c5adc0bb58cfce74f1fe26b1eec436bdbfb4fe0..673f87dad890fb596c597caf42d843a7ffe0302a 100644 (file)
@@ -56,6 +56,7 @@ MAKEOVERRIDES =
 
 build=@build@
 host=@host@
+host_noncanonical=@host_noncanonical@
 target=@target@
 target_noncanonical:=@target_noncanonical@
 
index 7cd2d413b6a414d4ea9bb057a162ad1afb4f51c5..6dde4738b5e6565dd2ef7c9161aab52cfac66d8b 100644 (file)
@@ -1,3 +1,11 @@
+2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/Make-lang.in (GNATMAKE_FOR_HOST): In the canadian
+       cross case, use host_noncanonical instead of host as prefix.
+       (GNATBIND_FOR_HOST): Likewise.
+       (GNATLINK_FOR_HOST): Likewise.
+       (GNATLS_FOR_HOST): Likewise.
+
 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR ada/70969
index fbfa6c62ea5a6a48c695e74d0882292282e149d5..47a92687f76cbb52745cc1bbfb1308823dada005 100644 (file)
@@ -175,10 +175,10 @@ else
   # or a cross-native compiler. We provide defaults for tools targeting the
   # host platform, but they can be overriden by just setting <tool>_FOR_HOST
   # variables.
-  GNATMAKE_FOR_HOST=$(host)-gnatmake
-  GNATBIND_FOR_HOST=$(host)-gnatbind
-  GNATLINK_FOR_HOST=$(host)-gnatlink
-  GNATLS_FOR_HOST=$(host)-gnatls
+  GNATMAKE_FOR_HOST=$(host_noncanonical)-gnatmake
+  GNATBIND_FOR_HOST=$(host_noncanonical)-gnatbind
+  GNATLINK_FOR_HOST=$(host_noncanonical)-gnatlink
+  GNATLS_FOR_HOST=$(host_noncanonical)-gnatls
 
   ifeq ($(host), $(target))
     # This is a cross native. All the sources are taken from the currently
index 319dcc3125e3cb351080e9c7da85fa9d2dcaa893..c8d8abcb3a502c58d799ce7664e151ba69b0fa98 100755 (executable)
@@ -822,6 +822,7 @@ host_subdir
 build_subdir
 build_libsubdir
 target_noncanonical
+host_noncanonical
 target_os
 target_vendor
 target_cpu
@@ -3323,7 +3324,7 @@ test -n "$target_alias" &&
     NONENONEs,x,x, &&
   program_prefix=${target_alias}-
 
-# Determine the noncanonical target name, for directory use.
+# Determine the noncanonical host name, for Ada.
  case ${build_alias} in
   "") build_noncanonical=${build} ;;
   *) build_noncanonical=${build_alias} ;;
@@ -3334,6 +3335,10 @@ esac
   *) host_noncanonical=${host_alias} ;;
 esac
 
+
+
+
+# Determine the noncanonical target name, for directory use.
  case ${target_alias} in
   "") target_noncanonical=${host_noncanonical} ;;
   *) target_noncanonical=${target_alias} ;;
@@ -18474,7 +18479,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 18477 "configure"
+#line 18482 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -18580,7 +18585,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 18583 "configure"
+#line 18588 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index d55f84589432359d1345ef686ade65ac76bc1216..ab91de6e4b11d9343de62526ea45dc1b50e354df 100644 (file)
@@ -35,6 +35,9 @@ AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
 
+# Determine the noncanonical host name, for Ada.
+ACX_NONCANONICAL_HOST
+
 # Determine the noncanonical target name, for directory use.
 ACX_NONCANONICAL_TARGET
 
index 18aa7021d6618923e692282e38aa60e47d4b0d88..9432ce1add596852e2f483e2c2ef4812229a1e1a 100644 (file)
@@ -1,3 +1,10 @@
+2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * configure.ac: Add ACX_NONCANONICAL_HOST.
+       * configure: Regenerate.
+       * Makefile.in: Replace host_alias with host_noncanonical.
+       (gnattools-cross): Do not rename the tools.
+
 2016-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
 
        PR bootstrap/70173
index f949ca9b34bfae9641c1f85dd931a53534aae94d..b0860eaf96d9288893ccdec2bb7d9044ade32fd7 100644 (file)
@@ -25,7 +25,6 @@ libdir = @libdir@
 build = @build@
 target = @target@
 host = @host@
-host_alias = @host_alias@
 prefix = @prefix@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -34,6 +33,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 # Nonstandard autoconf-set variables.
 LN_S=@LN_S@
 target_noncanonical=@target_noncanonical@
+host_noncanonical=@host_noncanonical@
 
 # Variables for the user (or the top level) to override.
 exeext = @EXEEXT@
@@ -118,10 +118,10 @@ ifeq ($(build), $(host))
   GNATBIND_FOR_HOST=gnatbind
   GNATLS_FOR_HOST=gnatls
 else
-  GNATMAKE_FOR_HOST=$(host_alias)-gnatmake
-  GNATLINK_FOR_HOST=$(host_alias)-gnatlink
-  GNATBIND_FOR_HOST=$(host_alias)-gnatbind
-  GNATLS_FOR_HOST=$(host_alias)-gnatls
+  GNATMAKE_FOR_HOST=$(host_noncanonical)-gnatmake
+  GNATLINK_FOR_HOST=$(host_noncanonical)-gnatlink
+  GNATBIND_FOR_HOST=$(host_noncanonical)-gnatbind
+  GNATLS_FOR_HOST=$(host_noncanonical)-gnatls
 endif
 
 # Put the host RTS dir first in the PATH to hide the default runtime
@@ -219,50 +219,6 @@ gnattools-cross: $(GCC_DIR)/stamp-tools
        # gnattools2
        $(MAKE) -C $(GCC_DIR)/ada/tools -f ../Makefile \
          $(TOOLS_FLAGS_TO_PASS_CROSS) common-tools
-       # Rename cross tools to where the GCC makefile wants them when
-       # installing.  FIXME: installation should be done elsewhere.
-       if [ -f $(GCC_DIR)/gnatbind$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatbind$(exeext) $(GCC_DIR)/gnatbind-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatchop$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatchop$(exeext) $(GCC_DIR)/gnatchop-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnat$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnat$(exeext) $(GCC_DIR)/gnat-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatkr$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatkr$(exeext) $(GCC_DIR)/gnatkr-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatlink$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatlink$(exeext) $(GCC_DIR)/gnatlink-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatls$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatls$(exeext) $(GCC_DIR)/gnatls-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatmake$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatmake$(exeext) $(GCC_DIR)/gnatmake-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatmem$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatmem$(exeext) $(GCC_DIR)/gnatmem-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatname$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatname$(exeext) $(GCC_DIR)/gnatname-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatprep$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatprep$(exeext) $(GCC_DIR)/gnatprep-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatxref$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatxref$(exeext) $(GCC_DIR)/gnatxref-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatfind$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatfind$(exeext) $(GCC_DIR)/gnatfind-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatclean$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatclean$(exeext) $(GCC_DIR)/gnatclean-cross$(exeext); \
-       fi
-       if [ -f $(GCC_DIR)/gnatsym$(exeext) ] ; then \
-         mv $(GCC_DIR)/gnatsym$(exeext) $(GCC_DIR)/gnatsym-cross$(exeext); \
-       fi
 
 # Other
 # -----
index 5243ebd70e456a1e2abc7eb8311ff4148e872cc3..8c75cc06eb5a9bcaa91f2c203011e0229652505f 100755 (executable)
@@ -567,6 +567,7 @@ TOOLS_TARGET_PAIRS
 default_gnattools_target
 LN_S
 target_noncanonical
+host_noncanonical
 target_os
 target_vendor
 target_cpu
@@ -1990,6 +1991,8 @@ esac
   *) host_noncanonical=${host_alias} ;;
 esac
 
+
+
  case ${target_alias} in
   "") target_noncanonical=${host_noncanonical} ;;
   *) target_noncanonical=${target_alias} ;;
index 9a7c42ac818531a47baf7482a0c9244d05597f70..86d8926b6c01d238f7d9a9e248f0b9671e081c4e 100644 (file)
@@ -46,6 +46,7 @@ AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
 
+ACX_NONCANONICAL_HOST
 ACX_NONCANONICAL_TARGET
 
 # Need to pass this down for now :-P