changeset 2851:ac0e7ec6e958

PR2684: AArch64 port not selected on architectures where host_cpu != aarch64 2016-01-06 Andrew John Hughes <gnu.andrew@member.fsf.org> PR2684: AArch64 port not selected on architectures where host_cpu != aarch64 * acinclude.m4: (IT_HAS_NATIVE_HOTSPOT_PORT): Depend on IT_SET_ARCH_SETTINGS and use values of INSTALL_ARCH_DIR to determine port availability rather than host_cpu.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Wed, 06 Jan 2016 05:23:06 +0000
parents d44ea9fb2df8
children 5350567049b8
files ChangeLog acinclude.m4
diffstat 2 files changed, 17 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jan 05 21:16:49 2016 +0000
+++ b/ChangeLog	Wed Jan 06 05:23:06 2016 +0000
@@ -1,3 +1,13 @@
+2016-01-06  Andrew John Hughes  <gnu.andrew@member.fsf.org>
+
+	PR2684: AArch64 port not selected on architectures
+	where host_cpu != aarch64
+	* acinclude.m4:
+	(IT_HAS_NATIVE_HOTSPOT_PORT): Depend on
+	IT_SET_ARCH_SETTINGS and use values of
+	INSTALL_ARCH_DIR to determine port availability
+	rather than host_cpu.
+
 2015-10-15  Stefan Ring <stefan@complang.tuwien.ac.at>
 
 	PR2652: CACAO fails as a build VM for icedtea
--- a/acinclude.m4	Tue Jan 05 21:16:49 2016 +0000
+++ b/acinclude.m4	Wed Jan 06 05:23:06 2016 +0000
@@ -2832,16 +2832,17 @@
 
 AC_DEFUN_ONCE([IT_HAS_NATIVE_HOTSPOT_PORT],
 [
+  AC_REQUIRE([IT_SET_ARCH_SETTINGS])
   AC_MSG_CHECKING([if a native HotSpot port is available for this architecture])
   has_native_hotspot_port=yes;
-  case "${host_cpu}" in
+  case "${INSTALL_ARCH_DIR}" in
     aarch64) ;;
-    arm64) ;;
-    i?86) ;;
+    amd64) ;;
+    i386) ;;
+    ppc64) ;;
+    ppc64le) ;;
     sparc) ;;
-    x86_64) ;;
-    powerpc64) ;;
-    powerpc64le) ;;
+    sparcv9) ;;
     *) has_native_hotspot_port=no;
   esac
   AC_MSG_RESULT([$has_native_hotspot_port])