Thu, 27 Dec 2018 11:59:21 +0800
Added tag mips64el-jdk8u192-b13 for changeset 64a3eeabf6e5
aph@1321 | 1 | #!/bin/sh |
aoqi@0 | 2 | # |
aph@1321 | 3 | # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
aoqi@0 | 4 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
aoqi@0 | 5 | # |
aoqi@0 | 6 | # This code is free software; you can redistribute it and/or modify it |
aoqi@0 | 7 | # under the terms of the GNU General Public License version 2 only, as |
aph@1321 | 8 | # published by the Free Software Foundation. |
aoqi@0 | 9 | # |
aoqi@0 | 10 | # This code is distributed in the hope that it will be useful, but WITHOUT |
aoqi@0 | 11 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
aoqi@0 | 12 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
aoqi@0 | 13 | # version 2 for more details (a copy is included in the LICENSE file that |
aoqi@0 | 14 | # accompanied this code). |
aoqi@0 | 15 | # |
aoqi@0 | 16 | # You should have received a copy of the GNU General Public License version |
aoqi@0 | 17 | # 2 along with this work; if not, write to the Free Software Foundation, |
aoqi@0 | 18 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
aoqi@0 | 19 | # |
aoqi@0 | 20 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
aoqi@0 | 21 | # or visit www.oracle.com if you need additional information or have any |
aoqi@0 | 22 | # questions. |
aoqi@0 | 23 | # |
aoqi@0 | 24 | |
aph@1321 | 25 | # This is a wrapper for the config.guess from autoconf. The latter |
aph@1321 | 26 | # does not know about all of our platforms. Instead of patching the |
aph@1321 | 27 | # autoconf system (which might easily get lost in a future update), we |
aph@1321 | 28 | # wrap it and fix the broken property, if needed. |
aoqi@0 | 29 | |
aph@1321 | 30 | DIR=`dirname $0` |
aoqi@0 | 31 | |
aph@1321 | 32 | # First, filter out everything that doesn't begin with "aarch64-" |
aph@1321 | 33 | if ! echo $* | grep '^aarch64-' >/dev/null ; then |
aph@1321 | 34 | . $DIR/autoconf-config.sub "$@" |
aph@1321 | 35 | # autoconf-config.sub exits, so we never reach here, but just in |
aph@1321 | 36 | # case we do: |
aph@1321 | 37 | exit |
aph@1321 | 38 | fi |
aoqi@0 | 39 | |
aoqi@0 | 40 | while test $# -gt 0 ; do |
aph@1321 | 41 | case $1 in |
aph@1321 | 42 | -- ) # Stop option processing |
aph@1321 | 43 | shift; break ;; |
dlong@1324 | 44 | aarch64-* ) |
dlong@1324 | 45 | config=`echo $1 | sed 's/^aarch64-/arm-/'` |
aph@1321 | 46 | sub_args="$sub_args $config" |
aph@1321 | 47 | shift; ;; |
aph@1321 | 48 | - ) # Use stdin as input. |
aph@1321 | 49 | sub_args="$sub_args $1" |
aph@1321 | 50 | shift; break ;; |
aph@1321 | 51 | * ) |
aph@1321 | 52 | sub_args="$sub_args $1" |
aph@1321 | 53 | shift; ;; |
aph@1321 | 54 | esac |
aoqi@0 | 55 | done |
aoqi@0 | 56 | |
aph@1321 | 57 | result=`. $DIR/autoconf-config.sub $sub_args "$@"` |
aph@1321 | 58 | exitcode=$? |
aoqi@0 | 59 | |
dlong@1324 | 60 | result=`echo $result | sed "s/^arm-/aarch64-/"` |
aoqi@0 | 61 | |
aph@1321 | 62 | echo $result |
aph@1321 | 63 | exit $exitcode |
aoqi@0 | 64 |