The R Project SVN R

Rev

Rev 87915 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87915 Rev 89778
Line 1... Line 1...
1
#! /bin/sh
1
#! /bin/sh
2
# Configuration validation subroutine script.
2
# Configuration validation subroutine script.
3
#   Copyright 1992-2024 Free Software Foundation, Inc.
3
#   Copyright 1992-2025 Free Software Foundation, Inc.
4
 
4
 
5
# shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale
5
# shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale
6
 
6
 
7
timestamp='2024-05-27'
7
timestamp='2025-07-10'
8
 
8
 
9
# This file is free software; you can redistribute it and/or modify it
9
# This file is free software; you can redistribute it and/or modify it
10
# under the terms of the GNU General Public License as published by
10
# under the terms of the GNU General Public License as published by
11
# the Free Software Foundation, either version 3 of the License, or
11
# the Free Software Foundation, either version 3 of the License, or
12
# (at your option) any later version.
12
# (at your option) any later version.
Line 74... Line 74...
74
Report bugs and patches to <config-patches@gnu.org>."
74
Report bugs and patches to <config-patches@gnu.org>."
75
 
75
 
76
version="\
76
version="\
77
GNU config.sub ($timestamp)
77
GNU config.sub ($timestamp)
78
 
78
 
79
Copyright 1992-2024 Free Software Foundation, Inc.
79
Copyright 1992-2025 Free Software Foundation, Inc.
80
 
80
 
81
This is free software; see the source for copying conditions.  There is NO
81
This is free software; see the source for copying conditions.  There is NO
82
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
82
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
83
 
83
 
84
help="
84
help="
Line 143... Line 143...
143
		case $maybe_os in
143
		case $maybe_os in
144
			  cloudabi*-eabi* \
144
			  cloudabi*-eabi* \
145
			| kfreebsd*-gnu* \
145
			| kfreebsd*-gnu* \
146
			| knetbsd*-gnu* \
146
			| knetbsd*-gnu* \
147
			| kopensolaris*-gnu* \
147
			| kopensolaris*-gnu* \
-
 
148
			| ironclad-* \
148
			| linux-* \
149
			| linux-* \
149
			| managarm-* \
150
			| managarm-* \
150
			| netbsd*-eabi* \
151
			| netbsd*-eabi* \
151
			| netbsd*-gnu* \
152
			| netbsd*-gnu* \
152
			| nto-qnx* \
153
			| nto-qnx* \
Line 240... Line 241...
240
					| rebel \
241
					| rebel \
241
					| rom68k \
242
					| rom68k \
242
					| rombug \
243
					| rombug \
243
					| semi \
244
					| semi \
244
					| sequent* \
245
					| sequent* \
245
					| siemens \
-
 
246
					| sgi* \
246
					| sgi* \
247
					| siemens \
247
					| siemens \
248
					| sim \
248
					| sim \
249
					| sni \
249
					| sni \
250
					| sony* \
250
					| sony* \
Line 259... Line 259...
259
					| winbond \
259
					| winbond \
260
					| wrs)
260
					| wrs)
261
						basic_machine=$field1-$field2
261
						basic_machine=$field1-$field2
262
						basic_os=
262
						basic_os=
263
						;;
263
						;;
264
					zephyr*)
264
					tock* | zephyr*)
265
						basic_machine=$field1-unknown
265
						basic_machine=$field1-unknown
266
						basic_os=$field2
266
						basic_os=$field2
267
						;;
267
						;;
268
					*)
268
					*)
269
						basic_machine=$field1
269
						basic_machine=$field1
Line 1192... Line 1192...
1192
		cpu=mipstx39el
1192
		cpu=mipstx39el
1193
		;;
1193
		;;
1194
	xscale-* | xscalee[bl]-*)
1194
	xscale-* | xscalee[bl]-*)
1195
		cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1195
		cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1196
		;;
1196
		;;
1197
	arm64-* | aarch64le-*)
1197
	arm64-* | aarch64le-* | arm64_32-*)
1198
		cpu=aarch64
1198
		cpu=aarch64
1199
		;;
1199
		;;
1200
 
1200
 
1201
	# Recognize the canonical CPU Types that limit and/or modify the
1201
	# Recognize the canonical CPU Types that limit and/or modify the
1202
	# company names they are paired with.
1202
	# company names they are paired with.
Line 1319... Line 1319...
1319
			| i370 \
1319
			| i370 \
1320
			| i860 \
1320
			| i860 \
1321
			| i960 \
1321
			| i960 \
1322
			| ia16 \
1322
			| ia16 \
1323
			| ia64 \
1323
			| ia64 \
-
 
1324
			| intelgt \
1324
			| ip2k \
1325
			| ip2k \
1325
			| iq2000 \
1326
			| iq2000 \
1326
			| javascript \
1327
			| javascript \
1327
			| k1om \
1328
			| k1om \
1328
			| kvx \
1329
			| kvx \
Line 1520... Line 1521...
1520
	# Default OS when just kernel was specified
1521
	# Default OS when just kernel was specified
1521
	nto*)
1522
	nto*)
1522
		kernel=nto
1523
		kernel=nto
1523
		os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1524
		os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1524
		;;
1525
		;;
-
 
1526
	ironclad*)
-
 
1527
		kernel=ironclad
-
 
1528
		os=`echo "$basic_os" | sed -e 's|ironclad|mlibc|'`
-
 
1529
		;;
1525
	linux*)
1530
	linux*)
1526
		kernel=linux
1531
		kernel=linux
1527
		os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
1532
		os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
1528
		;;
1533
		;;
1529
	managarm*)
1534
	managarm*)
Line 1974... Line 1979...
1974
	| aos* \
1979
	| aos* \
1975
	| aros* \
1980
	| aros* \
1976
	| atheos* \
1981
	| atheos* \
1977
	| auroraux* \
1982
	| auroraux* \
1978
	| aux* \
1983
	| aux* \
-
 
1984
	| banan_os* \
1979
	| beos* \
1985
	| beos* \
1980
	| bitrig* \
1986
	| bitrig* \
1981
	| bme* \
1987
	| bme* \
1982
	| bosx* \
1988
	| bosx* \
1983
	| bsd* \
1989
	| bsd* \
Line 2020... Line 2026...
2020
	| ieee* \
2026
	| ieee* \
2021
	| interix* \
2027
	| interix* \
2022
	| ios* \
2028
	| ios* \
2023
	| iris* \
2029
	| iris* \
2024
	| irix* \
2030
	| irix* \
2025
	| ironclad* \
-
 
2026
	| isc* \
2031
	| isc* \
2027
	| its* \
2032
	| its* \
2028
	| l4re* \
2033
	| l4re* \
2029
	| libertybsd* \
2034
	| libertybsd* \
2030
	| lites* \
2035
	| lites* \
Line 2116... Line 2121...
2116
	| syllable* \
2121
	| syllable* \
2117
	| sym* \
2122
	| sym* \
2118
	| sysv* \
2123
	| sysv* \
2119
	| tenex* \
2124
	| tenex* \
2120
	| tirtos* \
2125
	| tirtos* \
-
 
2126
	| tock* \
2121
	| toppers* \
2127
	| toppers* \
2122
	| tops10* \
2128
	| tops10* \
2123
	| tops20* \
2129
	| tops20* \
2124
	| tpf* \
2130
	| tpf* \
2125
	| tvos* \
2131
	| tvos* \
Line 2212... Line 2218...
2212
		    | linux-mlibc*- | linux-musl*- | linux-newlib*- \
2218
		    | linux-mlibc*- | linux-musl*- | linux-newlib*- \
2213
		    | linux-relibc*- | linux-uclibc*- | linux-ohos*- )
2219
		    | linux-relibc*- | linux-uclibc*- | linux-ohos*- )
2214
		;;
2220
		;;
2215
	uclinux-uclibc*- | uclinux-gnu*- )
2221
	uclinux-uclibc*- | uclinux-gnu*- )
2216
		;;
2222
		;;
-
 
2223
	ironclad-mlibc*-)
-
 
2224
		;;
2217
	managarm-mlibc*- | managarm-kernel*- )
2225
	managarm-mlibc*- | managarm-kernel*- )
2218
		;;
2226
		;;
2219
	windows*-msvc*-)
2227
	windows*-msvc*-)
2220
		;;
2228
		;;
2221
	-dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \
2229
	-dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \
Line 2247... Line 2255...
2247
		;;
2255
		;;
2248
	rtmk-nova-)
2256
	rtmk-nova-)
2249
		;;
2257
		;;
2250
	*-eabi*- | *-gnueabi*-)
2258
	*-eabi*- | *-gnueabi*-)
2251
		;;
2259
		;;
-
 
2260
	ios*-simulator- | tvos*-simulator- | watchos*-simulator- )
-
 
2261
		;;
2252
	none--*)
2262
	none--*)
2253
		# None (no kernel, i.e. freestanding / bare metal),
2263
		# None (no kernel, i.e. freestanding / bare metal),
2254
		# can be paired with an machine code file format
2264
		# can be paired with an machine code file format
2255
		;;
2265
		;;
2256
	-*-)
2266
	-*-)
Line 2345... Line 2355...
2345
 
2355
 
2346
echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}"
2356
echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}"
2347
exit
2357
exit
2348
 
2358
 
2349
# Local variables:
2359
# Local variables:
2350
# eval: (add-hook 'before-save-hook 'time-stamp)
2360
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
2351
# time-stamp-start: "timestamp='"
2361
# time-stamp-start: "timestamp='"
2352
# time-stamp-format: "%:y-%02m-%02d"
2362
# time-stamp-format: "%Y-%02m-%02d"
2353
# time-stamp-end: "'"
2363
# time-stamp-end: "'"
2354
# End:
2364
# End: