Browse Source

Update autoconf helper scripts

master
Hampa Hug 6 years ago
parent
commit
cb9ef43ff7
3 changed files with 156 additions and 100 deletions
  1. 52
    35
      config.guess
  2. 83
    51
      config.sub
  3. 21
    14
      install-sh

+ 52
- 35
config.guess View File

@@ -1,14 +1,12 @@
1 1
 #! /bin/sh
2 2
 # Attempt to guess a canonical system name.
3
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
-#   2011 Free Software Foundation, Inc.
3
+#   Copyright 1992-2013 Free Software Foundation, Inc.
6 4
 
7
-timestamp='2011-06-03'
5
+timestamp='2013-02-12'
8 6
 
9 7
 # This file is free software; you can redistribute it and/or modify it
10 8
 # under the terms of the GNU General Public License as published by
11
-# the Free Software Foundation; either version 2 of the License, or
9
+# the Free Software Foundation; either version 3 of the License, or
12 10
 # (at your option) any later version.
13 11
 #
14 12
 # This program is distributed in the hope that it will be useful, but
@@ -17,26 +15,22 @@ timestamp='2011-06-03'
17 15
 # General Public License for more details.
18 16
 #
19 17
 # You should have received a copy of the GNU General Public License
20
-# along with this program; if not, write to the Free Software
21
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22
-# 02110-1301, USA.
18
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
23 19
 #
24 20
 # As a special exception to the GNU General Public License, if you
25 21
 # distribute this file as part of a program that contains a
26 22
 # configuration script generated by Autoconf, you may include it under
27
-# the same distribution terms that you use for the rest of that program.
28
-
29
-
30
-# Originally written by Per Bothner.  Please send patches (context
31
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
32
-# entry.
23
+# the same distribution terms that you use for the rest of that
24
+# program.  This Exception is an additional permission under section 7
25
+# of the GNU General Public License, version 3 ("GPLv3").
33 26
 #
34
-# This script attempts to guess a canonical system name similar to
35
-# config.sub.  If it succeeds, it prints the system name on stdout, and
36
-# exits with 0.  Otherwise, it exits with 1.
27
+# Originally written by Per Bothner.
37 28
 #
38 29
 # You can get the latest version of this script from:
39 30
 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
31
+#
32
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
33
+
40 34
 
41 35
 me=`echo "$0" | sed -e 's,.*/,,'`
42 36
 
@@ -56,9 +50,7 @@ version="\
56 50
 GNU config.guess ($timestamp)
57 51
 
58 52
 Originally written by Per Bothner.
59
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
61
-Software Foundation, Inc.
53
+Copyright 1992-2013 Free Software Foundation, Inc.
62 54
 
63 55
 This is free software; see the source for copying conditions.  There is NO
64 56
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -145,7 +137,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
145 137
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
146 138
     *:NetBSD:*:*)
147 139
 	# NetBSD (nbsd) targets should (where applicable) match one or
148
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
140
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
149 141
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
150 142
 	# switched to ELF, *-*-netbsd* would select the old
151 143
 	# object file format.  This provides both forward
@@ -202,6 +194,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
202 194
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
203 195
 	echo "${machine}-${os}${release}"
204 196
 	exit ;;
197
+    *:Bitrig:*:*)
198
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
199
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
200
+	exit ;;
205 201
     *:OpenBSD:*:*)
206 202
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
207 203
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
@@ -304,7 +300,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
304 300
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
305 301
 	echo arm-acorn-riscix${UNAME_RELEASE}
306 302
 	exit ;;
307
-    arm:riscos:*:*|arm:RISCOS:*:*)
303
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
308 304
 	echo arm-unknown-riscos
309 305
 	exit ;;
310 306
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
@@ -792,21 +788,26 @@ EOF
792 788
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
793 789
 	exit ;;
794 790
     *:FreeBSD:*:*)
795
-	case ${UNAME_MACHINE} in
796
-	    pc98)
797
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
791
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
792
+	case ${UNAME_PROCESSOR} in
798 793
 	    amd64)
799 794
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
800 795
 	    *)
801
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
802 797
 	esac
803 798
 	exit ;;
804 799
     i*:CYGWIN*:*)
805 800
 	echo ${UNAME_MACHINE}-pc-cygwin
806 801
 	exit ;;
802
+    *:MINGW64*:*)
803
+	echo ${UNAME_MACHINE}-pc-mingw64
804
+	exit ;;
807 805
     *:MINGW*:*)
808 806
 	echo ${UNAME_MACHINE}-pc-mingw32
809 807
 	exit ;;
808
+    i*:MSYS*:*)
809
+	echo ${UNAME_MACHINE}-pc-msys
810
+	exit ;;
810 811
     i*:windows32*:*)
811 812
 	# uname -m includes "-pc" on this system.
812 813
 	echo ${UNAME_MACHINE}-mingw32
@@ -861,6 +862,13 @@ EOF
861 862
     i*86:Minix:*:*)
862 863
 	echo ${UNAME_MACHINE}-pc-minix
863 864
 	exit ;;
865
+    aarch64:Linux:*:*)
866
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
867
+	exit ;;
868
+    aarch64_be:Linux:*:*)
869
+	UNAME_MACHINE=aarch64_be
870
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
871
+	exit ;;
864 872
     alpha:Linux:*:*)
865 873
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
866 874
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
@@ -895,13 +903,16 @@ EOF
895 903
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
896 904
 	exit ;;
897 905
     cris:Linux:*:*)
898
-	echo cris-axis-linux-gnu
906
+	echo ${UNAME_MACHINE}-axis-linux-gnu
899 907
 	exit ;;
900 908
     crisv32:Linux:*:*)
901
-	echo crisv32-axis-linux-gnu
909
+	echo ${UNAME_MACHINE}-axis-linux-gnu
902 910
 	exit ;;
903 911
     frv:Linux:*:*)
904
-	echo frv-unknown-linux-gnu
912
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
913
+	exit ;;
914
+    hexagon:Linux:*:*)
915
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
905 916
 	exit ;;
906 917
     i*86:Linux:*:*)
907 918
 	LIBC=gnu
@@ -942,8 +953,11 @@ EOF
942 953
 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
943 954
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
944 955
 	;;
956
+    or1k:Linux:*:*)
957
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
958
+	exit ;;
945 959
     or32:Linux:*:*)
946
-	echo or32-unknown-linux-gnu
960
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
947 961
 	exit ;;
948 962
     padre:Linux:*:*)
949 963
 	echo sparc-unknown-linux-gnu
@@ -984,7 +998,7 @@ EOF
984 998
 	echo ${UNAME_MACHINE}-dec-linux-gnu
985 999
 	exit ;;
986 1000
     x86_64:Linux:*:*)
987
-	echo x86_64-unknown-linux-gnu
1001
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
988 1002
 	exit ;;
989 1003
     xtensa*:Linux:*:*)
990 1004
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
@@ -1191,6 +1205,9 @@ EOF
1191 1205
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
1192 1206
 	echo i586-pc-haiku
1193 1207
 	exit ;;
1208
+    x86_64:Haiku:*:*)
1209
+	echo x86_64-unknown-haiku
1210
+	exit ;;
1194 1211
     SX-4:SUPER-UX:*:*)
1195 1212
 	echo sx4-nec-superux${UNAME_RELEASE}
1196 1213
 	exit ;;
@@ -1246,7 +1263,7 @@ EOF
1246 1263
     NEO-?:NONSTOP_KERNEL:*:*)
1247 1264
 	echo neo-tandem-nsk${UNAME_RELEASE}
1248 1265
 	exit ;;
1249
-    NSE-?:NONSTOP_KERNEL:*:*)
1266
+    NSE-*:NONSTOP_KERNEL:*:*)
1250 1267
 	echo nse-tandem-nsk${UNAME_RELEASE}
1251 1268
 	exit ;;
1252 1269
     NSR-?:NONSTOP_KERNEL:*:*)
@@ -1315,11 +1332,11 @@ EOF
1315 1332
     i*86:AROS:*:*)
1316 1333
 	echo ${UNAME_MACHINE}-pc-aros
1317 1334
 	exit ;;
1335
+    x86_64:VMkernel:*:*)
1336
+	echo ${UNAME_MACHINE}-unknown-esx
1337
+	exit ;;
1318 1338
 esac
1319 1339
 
1320
-#echo '(No uname command or uname output not recognized.)' 1>&2
1321
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1322
-
1323 1340
 eval $set_cc_for_build
1324 1341
 cat >$dummy.c <<EOF
1325 1342
 #ifdef _SEQUENT_

+ 83
- 51
config.sub View File

@@ -1,38 +1,31 @@
1 1
 #! /bin/sh
2 2
 # Configuration validation subroutine script.
3
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
-#   2011 Free Software Foundation, Inc.
3
+#   Copyright 1992-2013 Free Software Foundation, Inc.
6 4
 
7
-timestamp='2011-06-03'
5
+timestamp='2013-02-12'
8 6
 
9
-# This file is (in principle) common to ALL GNU software.
10
-# The presence of a machine in this file suggests that SOME GNU software
11
-# can handle that machine.  It does not imply ALL GNU software can.
12
-#
13
-# This file is free software; you can redistribute it and/or modify
14
-# it under the terms of the GNU General Public License as published by
15
-# the Free Software Foundation; either version 2 of the License, or
7
+# This file is free software; you can redistribute it and/or modify it
8
+# under the terms of the GNU General Public License as published by
9
+# the Free Software Foundation; either version 3 of the License, or
16 10
 # (at your option) any later version.
17 11
 #
18
-# This program is distributed in the hope that it will be useful,
19
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
-# GNU General Public License for more details.
12
+# This program is distributed in the hope that it will be useful, but
13
+# WITHOUT ANY WARRANTY; without even the implied warranty of
14
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+# General Public License for more details.
22 16
 #
23 17
 # You should have received a copy of the GNU General Public License
24
-# along with this program; if not, write to the Free Software
25
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
-# 02110-1301, USA.
18
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
27 19
 #
28 20
 # As a special exception to the GNU General Public License, if you
29 21
 # distribute this file as part of a program that contains a
30 22
 # configuration script generated by Autoconf, you may include it under
31
-# the same distribution terms that you use for the rest of that program.
23
+# the same distribution terms that you use for the rest of that
24
+# program.  This Exception is an additional permission under section 7
25
+# of the GNU General Public License, version 3 ("GPLv3").
32 26
 
33 27
 
34
-# Please send patches to <config-patches@gnu.org>.  Submit a context
35
-# diff and a properly formatted GNU ChangeLog entry.
28
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
36 29
 #
37 30
 # Configuration subroutine to validate and canonicalize a configuration type.
38 31
 # Supply the specified configuration type as an argument.
@@ -75,9 +68,7 @@ Report bugs and patches to <config-patches@gnu.org>."
75 68
 version="\
76 69
 GNU config.sub ($timestamp)
77 70
 
78
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
79
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
80
-Software Foundation, Inc.
71
+Copyright 1992-2013 Free Software Foundation, Inc.
81 72
 
82 73
 This is free software; see the source for copying conditions.  There is NO
83 74
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -125,13 +116,17 @@ esac
125 116
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126 117
 case $maybe_os in
127 118
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
128
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
129 120
   knetbsd*-gnu* | netbsd*-gnu* | \
130 121
   kopensolaris*-gnu* | \
131 122
   storm-chaos* | os2-emx* | rtmk-nova*)
132 123
     os=-$maybe_os
133 124
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
134 125
     ;;
126
+  android-linux)
127
+    os=-linux-android
128
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
129
+    ;;
135 130
   *)
136 131
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
137 132
     if [ $basic_machine != $1 ]
@@ -154,7 +149,7 @@ case $os in
154 149
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
155 150
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
156 151
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
157
-	-apple | -axis | -knuth | -cray | -microblaze)
152
+	-apple | -axis | -knuth | -cray | -microblaze*)
158 153
 		os=
159 154
 		basic_machine=$1
160 155
 		;;
@@ -223,6 +218,12 @@ case $os in
223 218
 	-isc*)
224 219
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
225 220
 		;;
221
+	-lynx*178)
222
+		os=-lynxos178
223
+		;;
224
+	-lynx*5)
225
+		os=-lynxos5
226
+		;;
226 227
 	-lynx*)
227 228
 		os=-lynxos
228 229
 		;;
@@ -247,20 +248,27 @@ case $basic_machine in
247 248
 	# Some are omitted here because they have special meanings below.
248 249
 	1750a | 580 \
249 250
 	| a29k \
251
+	| aarch64 | aarch64_be \
250 252
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
251 253
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252 254
 	| am33_2.0 \
253
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
255
+	| arc \
256
+	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
257
+	| avr | avr32 \
258
+	| be32 | be64 \
254 259
 	| bfin \
255 260
 	| c4x | clipper \
256 261
 	| d10v | d30v | dlx | dsp16xx \
262
+	| epiphany \
257 263
 	| fido | fr30 | frv \
258 264
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265
+	| hexagon \
259 266
 	| i370 | i860 | i960 | ia64 \
260 267
 	| ip2k | iq2000 \
268
+	| le32 | le64 \
261 269
 	| lm32 \
262 270
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
263
-	| maxq | mb | microblaze | mcore | mep | metag \
271
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
264 272
 	| mips | mipsbe | mipseb | mipsel | mipsle \
265 273
 	| mips16 \
266 274
 	| mips64 | mips64el \
@@ -278,20 +286,21 @@ case $basic_machine in
278 286
 	| mipsisa64r2 | mipsisa64r2el \
279 287
 	| mipsisa64sb1 | mipsisa64sb1el \
280 288
 	| mipsisa64sr71k | mipsisa64sr71kel \
289
+	| mipsr5900 | mipsr5900el \
281 290
 	| mipstx39 | mipstx39el \
282 291
 	| mn10200 | mn10300 \
283 292
 	| moxie \
284 293
 	| mt \
285 294
 	| msp430 \
286 295
 	| nds32 | nds32le | nds32be \
287
-	| nios | nios2 \
296
+	| nios | nios2 | nios2eb | nios2el \
288 297
 	| ns16k | ns32k \
289 298
 	| open8 \
290
-	| or32 \
299
+	| or1k | or32 \
291 300
 	| pdp10 | pdp11 | pj | pjl \
292 301
 	| powerpc | powerpc64 | powerpc64le | powerpcle \
293 302
 	| pyramid \
294
-	| rx \
303
+	| rl78 | rx \
295 304
 	| score \
296 305
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
297 306
 	| sh64 | sh64le \
@@ -315,8 +324,7 @@ case $basic_machine in
315 324
 	c6x)
316 325
 		basic_machine=tic6x-unknown
317 326
 		;;
318
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
319
-		# Motorola 68HC11/12.
327
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
320 328
 		basic_machine=$basic_machine-unknown
321 329
 		os=-none
322 330
 		;;
@@ -329,7 +337,10 @@ case $basic_machine in
329 337
 	strongarm | thumb | xscale)
330 338
 		basic_machine=arm-unknown
331 339
 		;;
332
-
340
+	xgate)
341
+		basic_machine=$basic_machine-unknown
342
+		os=-none
343
+		;;
333 344
 	xscaleeb)
334 345
 		basic_machine=armeb-unknown
335 346
 		;;
@@ -352,11 +363,13 @@ case $basic_machine in
352 363
 	# Recognize the basic CPU types with company name.
353 364
 	580-* \
354 365
 	| a29k-* \
366
+	| aarch64-* | aarch64_be-* \
355 367
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
356 368
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
357 369
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
358 370
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
359 371
 	| avr-* | avr32-* \
372
+	| be32-* | be64-* \
360 373
 	| bfin-* | bs2000-* \
361 374
 	| c[123]* | c30-* | [cjt]90-* | c4x-* \
362 375
 	| clipper-* | craynv-* | cydra-* \
@@ -365,12 +378,15 @@ case $basic_machine in
365 378
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
366 379
 	| h8300-* | h8500-* \
367 380
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
381
+	| hexagon-* \
368 382
 	| i*86-* | i860-* | i960-* | ia64-* \
369 383
 	| ip2k-* | iq2000-* \
384
+	| le32-* | le64-* \
370 385
 	| lm32-* \
371 386
 	| m32c-* | m32r-* | m32rle-* \
372 387
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
373
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
388
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
389
+	| microblaze-* | microblazeel-* \
374 390
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
375 391
 	| mips16-* \
376 392
 	| mips64-* | mips64el-* \
@@ -388,19 +404,20 @@ case $basic_machine in
388 404
 	| mipsisa64r2-* | mipsisa64r2el-* \
389 405
 	| mipsisa64sb1-* | mipsisa64sb1el-* \
390 406
 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
407
+	| mipsr5900-* | mipsr5900el-* \
391 408
 	| mipstx39-* | mipstx39el-* \
392 409
 	| mmix-* \
393 410
 	| mt-* \
394 411
 	| msp430-* \
395 412
 	| nds32-* | nds32le-* | nds32be-* \
396
-	| nios-* | nios2-* \
413
+	| nios-* | nios2-* | nios2eb-* | nios2el-* \
397 414
 	| none-* | np1-* | ns16k-* | ns32k-* \
398 415
 	| open8-* \
399 416
 	| orion-* \
400 417
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
401 418
 	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
402 419
 	| pyramid-* \
403
-	| romp-* | rs6000-* | rx-* \
420
+	| rl78-* | romp-* | rs6000-* | rx-* \
404 421
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
405 422
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
406 423
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
@@ -712,7 +729,6 @@ case $basic_machine in
712 729
 	i370-ibm* | ibm*)
713 730
 		basic_machine=i370-ibm
714 731
 		;;
715
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
716 732
 	i*86v32)
717 733
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
718 734
 		os=-sysv32
@@ -770,9 +786,13 @@ case $basic_machine in
770 786
 		basic_machine=ns32k-utek
771 787
 		os=-sysv
772 788
 		;;
773
-	microblaze)
789
+	microblaze*)
774 790
 		basic_machine=microblaze-xilinx
775 791
 		;;
792
+	mingw64)
793
+		basic_machine=x86_64-pc
794
+		os=-mingw64
795
+		;;
776 796
 	mingw32)
777 797
 		basic_machine=i386-pc
778 798
 		os=-mingw32
@@ -809,10 +829,18 @@ case $basic_machine in
809 829
 	ms1-*)
810 830
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
811 831
 		;;
832
+	msys)
833
+		basic_machine=i386-pc
834
+		os=-msys
835
+		;;
812 836
 	mvs)
813 837
 		basic_machine=i370-ibm
814 838
 		os=-mvs
815 839
 		;;
840
+	nacl)
841
+		basic_machine=le32-unknown
842
+		os=-nacl
843
+		;;
816 844
 	ncr3000)
817 845
 		basic_machine=i486-ncr
818 846
 		os=-sysv4
@@ -993,7 +1021,11 @@ case $basic_machine in
993 1021
 		basic_machine=i586-unknown
994 1022
 		os=-pw32
995 1023
 		;;
996
-	rdos)
1024
+	rdos | rdos64)
1025
+		basic_machine=x86_64-pc
1026
+		os=-rdos
1027
+		;;
1028
+	rdos32)
997 1029
 		basic_machine=i386-pc
998 1030
 		os=-rdos
999 1031
 		;;
@@ -1320,21 +1352,21 @@ case $os in
1320 1352
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1321 1353
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1322 1354
 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1323
-	      | -sym* | -kopensolaris* \
1355
+	      | -sym* | -kopensolaris* | -plan9* \
1324 1356
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1325 1357
 	      | -aos* | -aros* \
1326 1358
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1327 1359
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1328 1360
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1329
-	      | -openbsd* | -solidbsd* \
1361
+	      | -bitrig* | -openbsd* | -solidbsd* \
1330 1362
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1331 1363
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1332 1364
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1333 1365
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1334 1366
 	      | -chorusos* | -chorusrdb* | -cegcc* \
1335
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1336
-	      | -mingw32* | -linux-gnu* | -linux-android* \
1337
-	      | -linux-newlib* | -linux-uclibc* \
1367
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1368
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1369
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1338 1370
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
1339 1371
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1340 1372
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
@@ -1466,9 +1498,6 @@ case $os in
1466 1498
 	-aros*)
1467 1499
 		os=-aros
1468 1500
 		;;
1469
-	-kaos*)
1470
-		os=-kaos
1471
-		;;
1472 1501
 	-zvmoe)
1473 1502
 		os=-zvmoe
1474 1503
 		;;
@@ -1517,6 +1546,9 @@ case $basic_machine in
1517 1546
 	c4x-* | tic4x-*)
1518 1547
 		os=-coff
1519 1548
 		;;
1549
+	hexagon-*)
1550
+		os=-elf
1551
+		;;
1520 1552
 	tic54x-*)
1521 1553
 		os=-coff
1522 1554
 		;;
@@ -1544,9 +1576,6 @@ case $basic_machine in
1544 1576
 		;;
1545 1577
 	m68000-sun)
1546 1578
 		os=-sunos3
1547
-		# This also exists in the configure program, but was not the
1548
-		# default.
1549
-		# os=-sunos4
1550 1579
 		;;
1551 1580
 	m68*-cisco)
1552 1581
 		os=-aout
@@ -1560,6 +1589,9 @@ case $basic_machine in
1560 1589
 	mips*-*)
1561 1590
 		os=-elf
1562 1591
 		;;
1592
+	or1k-*)
1593
+		os=-elf
1594
+		;;
1563 1595
 	or32-*)
1564 1596
 		os=-coff
1565 1597
 		;;

+ 21
- 14
install-sh View File

@@ -1,7 +1,7 @@
1 1
 #!/bin/sh
2 2
 # install - install a program, script, or datafile
3 3
 
4
-scriptversion=2009-04-28.21; # UTC
4
+scriptversion=2011-11-20.07; # UTC
5 5
 
6 6
 # This originates from X11R5 (mit/util/scripts/install.sh), which was
7 7
 # later released in X11R6 (xc/config/util/install.sh) with the
@@ -35,7 +35,7 @@ scriptversion=2009-04-28.21; # UTC
35 35
 # FSF changes to this file are in the public domain.
36 36
 #
37 37
 # Calling this script install-sh is preferred over install.sh, to prevent
38
-# `make' implicit rules from creating a file called install from it
38
+# 'make' implicit rules from creating a file called install from it
39 39
 # when there is no Makefile.
40 40
 #
41 41
 # This script is compatible with the BSD install script, but was written
@@ -156,6 +156,10 @@ while test $# -ne 0; do
156 156
     -s) stripcmd=$stripprog;;
157 157
 
158 158
     -t) dst_arg=$2
159
+	# Protect names problematic for 'test' and other utilities.
160
+	case $dst_arg in
161
+	  -* | [=\(\)!]) dst_arg=./$dst_arg;;
162
+	esac
159 163
 	shift;;
160 164
 
161 165
     -T) no_target_directory=true;;
@@ -186,6 +190,10 @@ if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
186 190
     fi
187 191
     shift # arg
188 192
     dst_arg=$arg
193
+    # Protect names problematic for 'test' and other utilities.
194
+    case $dst_arg in
195
+      -* | [=\(\)!]) dst_arg=./$dst_arg;;
196
+    esac
189 197
   done
190 198
 fi
191 199
 
@@ -194,13 +202,17 @@ if test $# -eq 0; then
194 202
     echo "$0: no input file specified." >&2
195 203
     exit 1
196 204
   fi
197
-  # It's OK to call `install-sh -d' without argument.
205
+  # It's OK to call 'install-sh -d' without argument.
198 206
   # This can happen when creating conditional directories.
199 207
   exit 0
200 208
 fi
201 209
 
202 210
 if test -z "$dir_arg"; then
203
-  trap '(exit $?); exit' 1 2 13 15
211
+  do_exit='(exit $ret); exit $ret'
212
+  trap "ret=129; $do_exit" 1
213
+  trap "ret=130; $do_exit" 2
214
+  trap "ret=141; $do_exit" 13
215
+  trap "ret=143; $do_exit" 15
204 216
 
205 217
   # Set umask so as not to create temps with too-generous modes.
206 218
   # However, 'strip' requires both read and write access to temps.
@@ -228,9 +240,9 @@ fi
228 240
 
229 241
 for src
230 242
 do
231
-  # Protect names starting with `-'.
243
+  # Protect names problematic for 'test' and other utilities.
232 244
   case $src in
233
-    -*) src=./$src;;
245
+    -* | [=\(\)!]) src=./$src;;
234 246
   esac
235 247
 
236 248
   if test -n "$dir_arg"; then
@@ -252,12 +264,7 @@ do
252 264
       echo "$0: no destination specified." >&2
253 265
       exit 1
254 266
     fi
255
-
256 267
     dst=$dst_arg
257
-    # Protect names starting with `-'.
258
-    case $dst in
259
-      -*) dst=./$dst;;
260
-    esac
261 268
 
262 269
     # If destination is a directory, append the input filename; won't work
263 270
     # if double slashes aren't ignored.
@@ -347,7 +354,7 @@ do
347 354
 	      if test -z "$dir_arg" || {
348 355
 		   # Check for POSIX incompatibilities with -m.
349 356
 		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
350
-		   # other-writeable bit of parent directory when it shouldn't.
357
+		   # other-writable bit of parent directory when it shouldn't.
351 358
 		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
352 359
 		   ls_ld_tmpdir=`ls -ld "$tmpdir"`
353 360
 		   case $ls_ld_tmpdir in
@@ -385,7 +392,7 @@ do
385 392
 
386 393
       case $dstdir in
387 394
 	/*) prefix='/';;
388
-	-*) prefix='./';;
395
+	[-=\(\)!]*) prefix='./';;
389 396
 	*)  prefix='';;
390 397
       esac
391 398
 
@@ -403,7 +410,7 @@ do
403 410
 
404 411
       for d
405 412
       do
406
-	test -z "$d" && continue
413
+	test X"$d" = X && continue
407 414
 
408 415
 	prefix=$prefix$d
409 416
 	if test -d "$prefix"; then

Loading…
Cancel
Save