43 VAR_CPU_ENDIAN=little
44 ;;
45 arm*)
46 VAR_CPU=arm
47 VAR_CPU_ARCH=arm
48 VAR_CPU_BITS=32
49 VAR_CPU_ENDIAN=little
50 ;;
51 powerpc)
52 VAR_CPU=ppc
53 VAR_CPU_ARCH=ppc
54 VAR_CPU_BITS=32
55 VAR_CPU_ENDIAN=big
56 ;;
57 powerpc64)
58 VAR_CPU=ppc64
59 VAR_CPU_ARCH=ppc
60 VAR_CPU_BITS=64
61 VAR_CPU_ENDIAN=big
62 ;;
63 sparc)
64 VAR_CPU=sparc
65 VAR_CPU_ARCH=sparc
66 VAR_CPU_BITS=32
67 VAR_CPU_ENDIAN=big
68 ;;
69 sparcv9)
70 VAR_CPU=sparcv9
71 VAR_CPU_ARCH=sparc
72 VAR_CPU_BITS=64
73 VAR_CPU_ENDIAN=big
74 ;;
75 *)
76 AC_MSG_ERROR([unsupported cpu $1])
77 ;;
78 esac
79 ])
80
81 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
82 # Converts autoconf style OS name to OpenJDK style, into
96 ;;
97 *darwin*)
98 VAR_OS=macosx
99 VAR_OS_API=posix
100 VAR_OS_ENV=macosx
101 ;;
102 *bsd*)
103 VAR_OS=bsd
104 VAR_OS_API=posix
105 VAR_OS_ENV=bsd
106 ;;
107 *cygwin*)
108 VAR_OS=windows
109 VAR_OS_API=winapi
110 VAR_OS_ENV=windows.cygwin
111 ;;
112 *mingw*)
113 VAR_OS=windows
114 VAR_OS_API=winapi
115 VAR_OS_ENV=windows.msys
116 ;;
117 *)
118 AC_MSG_ERROR([unsupported operating system $1])
119 ;;
120 esac
121 ])
122
123 # Expects $host_os $host_cpu $build_os and $build_cpu
124 # and $with_target_bits to have been setup!
125 #
126 # Translate the standard triplet(quadruplet) definition
127 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
128 # OPENJDK_BUILD_OS, etc.
129 AC_DEFUN([PLATFORM_EXTRACT_TARGET_AND_BUILD],
130 [
131 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
132 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
133 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
134 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
135 OPENJDK_TARGET_AUTOCONF_NAME="$host"
|
43 VAR_CPU_ENDIAN=little
44 ;;
45 arm*)
46 VAR_CPU=arm
47 VAR_CPU_ARCH=arm
48 VAR_CPU_BITS=32
49 VAR_CPU_ENDIAN=little
50 ;;
51 powerpc)
52 VAR_CPU=ppc
53 VAR_CPU_ARCH=ppc
54 VAR_CPU_BITS=32
55 VAR_CPU_ENDIAN=big
56 ;;
57 powerpc64)
58 VAR_CPU=ppc64
59 VAR_CPU_ARCH=ppc
60 VAR_CPU_BITS=64
61 VAR_CPU_ENDIAN=big
62 ;;
63 rs6000)
64 VAR_CPU=ppc64
65 VAR_CPU_ARCH=ppc
66 VAR_CPU_BITS=64
67 VAR_CPU_ENDIAN=big
68 ;;
69 sparc)
70 VAR_CPU=sparc
71 VAR_CPU_ARCH=sparc
72 VAR_CPU_BITS=32
73 VAR_CPU_ENDIAN=big
74 ;;
75 sparcv9)
76 VAR_CPU=sparcv9
77 VAR_CPU_ARCH=sparc
78 VAR_CPU_BITS=64
79 VAR_CPU_ENDIAN=big
80 ;;
81 *)
82 AC_MSG_ERROR([unsupported cpu $1])
83 ;;
84 esac
85 ])
86
87 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
88 # Converts autoconf style OS name to OpenJDK style, into
102 ;;
103 *darwin*)
104 VAR_OS=macosx
105 VAR_OS_API=posix
106 VAR_OS_ENV=macosx
107 ;;
108 *bsd*)
109 VAR_OS=bsd
110 VAR_OS_API=posix
111 VAR_OS_ENV=bsd
112 ;;
113 *cygwin*)
114 VAR_OS=windows
115 VAR_OS_API=winapi
116 VAR_OS_ENV=windows.cygwin
117 ;;
118 *mingw*)
119 VAR_OS=windows
120 VAR_OS_API=winapi
121 VAR_OS_ENV=windows.msys
122 ;;
123 *aix*)
124 VAR_OS=aix
125 VAR_OS_API=posix
126 VAR_OS_ENV=aix
127 ;;
128 *)
129 AC_MSG_ERROR([unsupported operating system $1])
130 ;;
131 esac
132 ])
133
134 # Expects $host_os $host_cpu $build_os and $build_cpu
135 # and $with_target_bits to have been setup!
136 #
137 # Translate the standard triplet(quadruplet) definition
138 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
139 # OPENJDK_BUILD_OS, etc.
140 AC_DEFUN([PLATFORM_EXTRACT_TARGET_AND_BUILD],
141 [
142 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
143 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
144 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
145 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
146 OPENJDK_TARGET_AUTOCONF_NAME="$host"
|