Blame
Date:
Sat Dec 18 09:03:39 2021 UTC
Message:
Remove debug/sniffer build options by default
0001
2002-03-12
alex
#! /bin/sh
0002
2002-03-12
alex
# Configuration validation subroutine script.
0003
2020-05-10
alex
# Copyright 1992-2020 Free Software Foundation, Inc.
0004
2002-03-12
alex
0005
2020-01-02
alex
timestamp='2020-12-22'
0006
2002-03-12
alex
0007
2014-03-18
alex
# This file is free software; you can redistribute it and/or modify it
0008
2014-03-18
alex
# under the terms of the GNU General Public License as published by
0009
2014-03-18
alex
# the Free Software Foundation; either version 3 of the License, or
0010
2002-03-12
alex
# (at your option) any later version.
0011
2002-03-12
alex
#
0012
2014-03-18
alex
# This program is distributed in the hope that it will be useful, but
0013
2014-03-18
alex
# WITHOUT ANY WARRANTY; without even the implied warranty of
0014
2014-03-18
alex
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0015
2014-03-18
alex
# General Public License for more details.
0016
2002-03-12
alex
#
0017
2002-03-12
alex
# You should have received a copy of the GNU General Public License
0018
2018-04-01
alex
# along with this program; if not, see <https://www.gnu.org/licenses/>.
0019
2005-10-15
alex
#
0020
2002-03-12
alex
# As a special exception to the GNU General Public License, if you
0021
2002-03-12
alex
# distribute this file as part of a program that contains a
0022
2002-03-12
alex
# configuration script generated by Autoconf, you may include it under
0023
2014-03-18
alex
# the same distribution terms that you use for the rest of that
0024
2014-03-18
alex
# program. This Exception is an additional permission under section 7
0025
2014-03-18
alex
# of the GNU General Public License, version 3 ("GPLv3").
0026
2002-03-12
alex
0027
2005-10-15
alex
0028
2016-11-05
alex
# Please send patches to <config-patches@gnu.org>.
0029
2002-03-12
alex
#
0030
2002-03-12
alex
# Configuration subroutine to validate and canonicalize a configuration type.
0031
2002-03-12
alex
# Supply the specified configuration type as an argument.
0032
2002-03-12
alex
# If it is invalid, we print an error message on stderr and exit with code 1.
0033
2002-03-12
alex
# Otherwise, we print the canonical config type on stdout and succeed.
0034
2002-03-12
alex
0035
2012-02-27
alex
# You can get the latest version of this script from:
0036
2020-01-02
alex
# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
0037
2012-02-27
alex
0038
2002-03-12
alex
# This file is supposed to be the same for all GNU packages
0039
2002-03-12
alex
# and recognize all the CPU types, system types and aliases
0040
2002-03-12
alex
# that are meaningful with *any* GNU software.
0041
2002-03-12
alex
# Each package is responsible for reporting which valid configurations
0042
2002-03-12
alex
# it does not support. The user should be able to distinguish
0043
2002-03-12
alex
# a failure to support a valid configuration from a meaningless
0044
2002-03-12
alex
# configuration.
0045
2002-03-12
alex
0046
2002-03-12
alex
# The goal of this file is to map all the various variations of a given
0047
2002-03-12
alex
# machine specification into a single specification in the form:
0048
2002-03-12
alex
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
0049
2002-03-12
alex
# or in some cases, the newer four-part form:
0050
2002-03-12
alex
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
0051
2002-03-12
alex
# It is wrong to echo any other type of specification.
0052
2002-03-12
alex
0053
2020-01-02
alex
me=$(echo "$0" | sed -e 's,.*/,,')
0054
2002-03-12
alex
0055
2002-03-12
alex
usage="\
0056
2016-11-05
alex
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
0057
2002-03-12
alex
0058
2002-03-12
alex
Canonicalize a configuration name.
0059
2002-03-12
alex
0060
2018-04-01
alex
Options:
0061
2002-03-12
alex
-h, --help print this help, then exit
0062
2002-03-12
alex
-t, --time-stamp print date of last modification, then exit
0063
2002-03-12
alex
-v, --version print version number, then exit
0064
2002-03-12
alex
0065
2002-03-12
alex
Report bugs and patches to <config-patches@gnu.org>."
0066
2002-03-12
alex
0067
2002-03-12
alex
version="\
0068
2002-03-12
alex
GNU config.sub ($timestamp)
0069
2002-03-12
alex
0070
2020-05-10
alex
Copyright 1992-2020 Free Software Foundation, Inc.
0071
2002-03-12
alex
0072
2002-03-12
alex
This is free software; see the source for copying conditions. There is NO
0073
2002-03-12
alex
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
0074
2002-03-12
alex
0075
2002-03-12
alex
help="
0076
2002-03-12
alex
Try \`$me --help' for more information."
0077
2002-03-12
alex
0078
2002-03-12
alex
# Parse command line
0079
2002-03-12
alex
while test $# -gt 0 ; do
0080
2002-03-12
alex
case $1 in
0081
2002-03-12
alex
--time-stamp | --time* | -t )
0082
2005-10-15
alex
echo "$timestamp" ; exit ;;
0083
2002-03-12
alex
--version | -v )
0084
2005-10-15
alex
echo "$version" ; exit ;;
0085
2002-03-12
alex
--help | --h* | -h )
0086
2005-10-15
alex
echo "$usage"; exit ;;
0087
2002-03-12
alex
-- ) # Stop option processing
0088
2002-03-12
alex
shift; break ;;
0089
2002-03-12
alex
- ) # Use stdin as input.
0090
2002-03-12
alex
break ;;
0091
2002-03-12
alex
-* )
0092
2020-05-10
alex
echo "$me: invalid option $1$help" >&2
0093
2002-03-12
alex
exit 1 ;;
0094
2002-03-12
alex
0095
2002-03-12
alex
*local*)
0096
2002-03-12
alex
# First pass through any local machine types.
0097
2018-04-01
alex
echo "$1"
0098
2005-10-15
alex
exit ;;
0099
2002-03-12
alex
0100
2002-03-12
alex
* )
0101
2002-03-12
alex
break ;;
0102
2002-03-12
alex
esac
0103
2002-03-12
alex
done
0104
2002-03-12
alex
0105
2002-03-12
alex
case $# in
0106
2002-03-12
alex
0) echo "$me: missing argument$help" >&2
0107
2002-03-12
alex
exit 1;;
0108
2002-03-12
alex
1) ;;
0109
2002-03-12
alex
*) echo "$me: too many arguments$help" >&2
0110
2002-03-12
alex
exit 1;;
0111
2002-03-12
alex
esac
0112
2002-03-12
alex
0113
2020-05-10
alex
# Split fields of configuration type
0114
2020-05-10
alex
# shellcheck disable=SC2162
0115
2020-05-10
alex
IFS="-" read field1 field2 field3 field4 <<EOF
0116
2020-05-10
alex
$1
0117
2020-05-10
alex
EOF
0118
2002-03-12
alex
0119
2020-05-10
alex
# Separate into logical components for further validation
0120
2020-05-10
alex
case $1 in
0121
2020-05-10
alex
*-*-*-*-*)
0122
2020-05-10
alex
echo Invalid configuration \`"$1"\': more than four components >&2
0123
2020-05-10
alex
exit 1
0124
2002-03-12
alex
;;
0125
2020-05-10
alex
*-*-*-*)
0126
2020-05-10
alex
basic_machine=$field1-$field2
0127
2020-01-02
alex
basic_os=$field3-$field4
0128
2002-03-12
alex
;;
0129
2002-03-12
alex
*-*-*)
0130
2020-05-10
alex
# Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
0131
2020-05-10
alex
# parts
0132
2020-05-10
alex
maybe_os=$field2-$field3
0133
2020-05-10
alex
case $maybe_os in
0134
2020-01-02
alex
nto-qnx* | linux-* | uclinux-uclibc* \
0135
2020-05-10
alex
| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
0136
2020-05-10
alex
| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
0137
2020-05-10
alex
| storm-chaos* | os2-emx* | rtmk-nova*)
0138
2020-05-10
alex
basic_machine=$field1
0139
2020-01-02
alex
basic_os=$maybe_os
0140
2020-05-10
alex
;;
0141
2020-05-10
alex
android-linux)
0142
2020-05-10
alex
basic_machine=$field1-unknown
0143
2020-01-02
alex
basic_os=linux-android
0144
2020-05-10
alex
;;
0145
2020-05-10
alex
*)
0146
2020-05-10
alex
basic_machine=$field1-$field2
0147
2020-01-02
alex
basic_os=$field3
0148
2020-05-10
alex
;;
0149
2020-05-10
alex
esac
0150
2002-03-12
alex
;;
0151
2020-05-10
alex
*-*)
0152
2020-05-10
alex
# A lone config we happen to match not fitting any pattern
0153
2020-05-10
alex
case $field1-$field2 in
0154
2020-05-10
alex
decstation-3100)
0155
2020-05-10
alex
basic_machine=mips-dec
0156
2020-01-02
alex
basic_os=
0157
2020-05-10
alex
;;
0158
2020-05-10
alex
*-*)
0159
2020-05-10
alex
# Second component is usually, but not always the OS
0160
2020-05-10
alex
case $field2 in
0161
2020-05-10
alex
# Prevent following clause from handling this valid os
0162
2020-05-10
alex
sun*os*)
0163
2020-05-10
alex
basic_machine=$field1
0164
2020-01-02
alex
basic_os=$field2
0165
2020-05-10
alex
;;
0166
2020-05-10
alex
# Manufacturers
0167
2020-05-10
alex
dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
0168
2020-05-10
alex
| att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
0169
2020-05-10
alex
| unicom* | ibm* | next | hp | isi* | apollo | altos* \
0170
2020-05-10
alex
| convergent* | ncr* | news | 32* | 3600* | 3100* \
0171
2020-05-10
alex
| hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
0172
2020-05-10
alex
| ultra | tti* | harris | dolphin | highlevel | gould \
0173
2020-05-10
alex
| cbm | ns | masscomp | apple | axis | knuth | cray \
0174
2020-05-10
alex
| microblaze* | sim | cisco \
0175
2020-05-10
alex
| oki | wec | wrs | winbond)
0176
2020-05-10
alex
basic_machine=$field1-$field2
0177
2020-01-02
alex
basic_os=
0178
2020-05-10
alex
;;
0179
2020-05-10
alex
*)
0180
2020-05-10
alex
basic_machine=$field1
0181
2020-01-02
alex
basic_os=$field2
0182
2020-05-10
alex
;;
0183
2020-05-10
alex
esac
0184
2020-05-10
alex
;;
0185
2020-05-10
alex
esac
0186
2002-03-12
alex
;;
0187
2020-05-10
alex
*)
0188
2020-05-10
alex
# Convert single-component short-hands not valid as part of
0189
2020-05-10
alex
# multi-component configurations.
0190
2020-05-10
alex
case $field1 in
0191
2020-05-10
alex
386bsd)
0192
2020-05-10
alex
basic_machine=i386-pc
0193
2020-01-02
alex
basic_os=bsd
0194
2020-05-10
alex
;;
0195
2020-05-10
alex
a29khif)
0196
2020-05-10
alex
basic_machine=a29k-amd
0197
2020-01-02
alex
basic_os=udi
0198
2020-05-10
alex
;;
0199
2020-05-10
alex
adobe68k)
0200
2020-05-10
alex
basic_machine=m68010-adobe
0201
2020-01-02
alex
basic_os=scout
0202
2020-05-10
alex
;;
0203
2020-05-10
alex
alliant)
0204
2020-05-10
alex
basic_machine=fx80-alliant
0205
2020-01-02
alex
basic_os=
0206
2020-05-10
alex
;;
0207
2020-05-10
alex
altos | altos3068)
0208
2020-05-10
alex
basic_machine=m68k-altos
0209
2020-01-02
alex
basic_os=
0210
2020-05-10
alex
;;
0211
2020-05-10
alex
am29k)
0212
2020-05-10
alex
basic_machine=a29k-none
0213
2020-01-02
alex
basic_os=bsd
0214
2020-05-10
alex
;;
0215
2020-05-10
alex
amdahl)
0216
2020-05-10
alex
basic_machine=580-amdahl
0217
2020-01-02
alex
basic_os=sysv
0218
2020-05-10
alex
;;
0219
2020-05-10
alex
amiga)
0220
2020-05-10
alex
basic_machine=m68k-unknown
0221
2020-01-02
alex
basic_os=
0222
2020-05-10
alex
;;
0223
2020-05-10
alex
amigaos | amigados)
0224
2020-05-10
alex
basic_machine=m68k-unknown
0225
2020-01-02
alex
basic_os=amigaos
0226
2020-05-10
alex
;;
0227
2020-05-10
alex
amigaunix | amix)
0228
2020-05-10
alex
basic_machine=m68k-unknown
0229
2020-01-02
alex
basic_os=sysv4
0230
2020-05-10
alex
;;
0231
2020-05-10
alex
apollo68)
0232
2020-05-10
alex
basic_machine=m68k-apollo
0233
2020-01-02
alex
basic_os=sysv
0234
2020-05-10
alex
;;
0235
2020-05-10
alex
apollo68bsd)
0236
2020-05-10
alex
basic_machine=m68k-apollo
0237
2020-01-02
alex
basic_os=bsd
0238
2020-05-10
alex
;;
0239
2020-05-10
alex
aros)
0240
2020-05-10
alex
basic_machine=i386-pc
0241
2020-01-02
alex
basic_os=aros
0242
2020-05-10
alex
;;
0243
2020-05-10
alex
aux)
0244
2020-05-10
alex
basic_machine=m68k-apple
0245
2020-01-02
alex
basic_os=aux
0246
2020-05-10
alex
;;
0247
2020-05-10
alex
balance)
0248
2020-05-10
alex
basic_machine=ns32k-sequent
0249
2020-01-02
alex
basic_os=dynix
0250
2020-05-10
alex
;;
0251
2020-05-10
alex
blackfin)
0252
2020-05-10
alex
basic_machine=bfin-unknown
0253
2020-01-02
alex
basic_os=linux
0254
2020-05-10
alex
;;
0255
2020-05-10
alex
cegcc)
0256
2020-05-10
alex
basic_machine=arm-unknown
0257
2020-01-02
alex
basic_os=cegcc
0258
2020-05-10
alex
;;
0259
2020-05-10
alex
convex-c1)
0260
2020-05-10
alex
basic_machine=c1-convex
0261
2020-01-02
alex
basic_os=bsd
0262
2020-05-10
alex
;;
0263
2020-05-10
alex
convex-c2)
0264
2020-05-10
alex
basic_machine=c2-convex
0265
2020-01-02
alex
basic_os=bsd
0266
2020-05-10
alex
;;
0267
2020-05-10
alex
convex-c32)
0268
2020-05-10
alex
basic_machine=c32-convex
0269
2020-01-02
alex
basic_os=bsd
0270
2020-05-10
alex
;;
0271
2020-05-10
alex
convex-c34)
0272
2020-05-10
alex
basic_machine=c34-convex
0273
2020-01-02
alex
basic_os=bsd
0274
2020-05-10
alex
;;
0275
2020-05-10
alex
convex-c38)
0276
2020-05-10
alex
basic_machine=c38-convex
0277
2020-01-02
alex
basic_os=bsd
0278
2020-05-10
alex
;;
0279
2020-05-10
alex
cray)
0280
2020-05-10
alex
basic_machine=j90-cray
0281
2020-01-02
alex
basic_os=unicos
0282
2020-05-10
alex
;;
0283
2020-05-10
alex
crds | unos)
0284
2020-05-10
alex
basic_machine=m68k-crds
0285
2020-01-02
alex
basic_os=
0286
2020-05-10
alex
;;
0287
2020-05-10
alex
da30)
0288
2020-05-10
alex
basic_machine=m68k-da30
0289
2020-01-02
alex
basic_os=
0290
2020-05-10
alex
;;
0291
2020-05-10
alex
decstation | pmax | pmin | dec3100 | decstatn)
0292
2020-05-10
alex
basic_machine=mips-dec
0293
2020-01-02
alex
basic_os=
0294
2020-05-10
alex
;;
0295
2020-05-10
alex
delta88)
0296
2020-05-10
alex
basic_machine=m88k-motorola
0297
2020-01-02
alex
basic_os=sysv3
0298
2020-05-10
alex
;;
0299
2020-05-10
alex
dicos)
0300
2020-05-10
alex
basic_machine=i686-pc
0301
2020-01-02
alex
basic_os=dicos
0302
2020-05-10
alex
;;
0303
2020-05-10
alex
djgpp)
0304
2020-05-10
alex
basic_machine=i586-pc
0305
2020-01-02
alex
basic_os=msdosdjgpp
0306
2020-05-10
alex
;;
0307
2020-05-10
alex
ebmon29k)
0308
2020-05-10
alex
basic_machine=a29k-amd
0309
2020-01-02
alex
basic_os=ebmon
0310
2020-05-10
alex
;;
0311
2020-05-10
alex
es1800 | OSE68k | ose68k | ose | OSE)
0312
2020-05-10
alex
basic_machine=m68k-ericsson
0313
2020-01-02
alex
basic_os=ose
0314
2020-05-10
alex
;;
0315
2020-05-10
alex
gmicro)
0316
2020-05-10
alex
basic_machine=tron-gmicro
0317
2020-01-02
alex
basic_os=sysv
0318
2020-05-10
alex
;;
0319
2020-05-10
alex
go32)
0320
2020-05-10
alex
basic_machine=i386-pc
0321
2020-01-02
alex
basic_os=go32
0322
2020-05-10
alex
;;
0323
2020-05-10
alex
h8300hms)
0324
2020-05-10
alex
basic_machine=h8300-hitachi
0325
2020-01-02
alex
basic_os=hms
0326
2020-05-10
alex
;;
0327
2020-05-10
alex
h8300xray)
0328
2020-05-10
alex
basic_machine=h8300-hitachi
0329
2020-01-02
alex
basic_os=xray
0330
2020-05-10
alex
;;
0331
2020-05-10
alex
h8500hms)
0332
2020-05-10
alex
basic_machine=h8500-hitachi
0333
2020-01-02
alex
basic_os=hms
0334
2020-05-10
alex
;;
0335
2020-05-10
alex
harris)
0336
2020-05-10
alex
basic_machine=m88k-harris
0337
2020-01-02
alex
basic_os=sysv3
0338
2020-05-10
alex
;;
0339
2020-05-10
alex
hp300 | hp300hpux)
0340
2020-05-10
alex
basic_machine=m68k-hp
0341
2020-01-02
alex
basic_os=hpux
0342
2020-05-10
alex
;;
0343
2020-05-10
alex
hp300bsd)
0344
2020-05-10
alex
basic_machine=m68k-hp
0345
2020-01-02
alex
basic_os=bsd
0346
2020-05-10
alex
;;
0347
2020-05-10
alex
hppaosf)
0348
2020-05-10
alex
basic_machine=hppa1.1-hp
0349
2020-01-02
alex
basic_os=osf
0350
2020-05-10
alex
;;
0351
2020-05-10
alex
hppro)
0352
2020-05-10
alex
basic_machine=hppa1.1-hp
0353
2020-01-02
alex
basic_os=proelf
0354
2020-05-10
alex
;;
0355
2020-05-10
alex
i386mach)
0356
2020-05-10
alex
basic_machine=i386-mach
0357
2020-01-02
alex
basic_os=mach
0358
2020-05-10
alex
;;
0359
2020-05-10
alex
isi68 | isi)
0360
2020-05-10
alex
basic_machine=m68k-isi
0361
2020-01-02
alex
basic_os=sysv
0362
2020-05-10
alex
;;
0363
2020-05-10
alex
m68knommu)
0364
2020-05-10
alex
basic_machine=m68k-unknown
0365
2020-01-02
alex
basic_os=linux
0366
2020-05-10
alex
;;
0367
2020-05-10
alex
magnum | m3230)
0368
2020-05-10
alex
basic_machine=mips-mips
0369
2020-01-02
alex
basic_os=sysv
0370
2020-05-10
alex
;;
0371
2020-05-10
alex
merlin)
0372
2020-05-10
alex
basic_machine=ns32k-utek
0373
2020-01-02
alex
basic_os=sysv
0374
2020-05-10
alex
;;
0375
2020-05-10
alex
mingw64)
0376
2020-05-10
alex
basic_machine=x86_64-pc
0377
2020-01-02
alex
basic_os=mingw64
0378
2020-05-10
alex
;;
0379
2020-05-10
alex
mingw32)
0380
2020-05-10
alex
basic_machine=i686-pc
0381
2020-01-02
alex
basic_os=mingw32
0382
2020-05-10
alex
;;
0383
2020-05-10
alex
mingw32ce)
0384
2020-05-10
alex
basic_machine=arm-unknown
0385
2020-01-02
alex
basic_os=mingw32ce
0386
2020-05-10
alex
;;
0387
2020-05-10
alex
monitor)
0388
2020-05-10
alex
basic_machine=m68k-rom68k
0389
2020-01-02
alex
basic_os=coff
0390
2020-05-10
alex
;;
0391
2020-05-10
alex
morphos)
0392
2020-05-10
alex
basic_machine=powerpc-unknown
0393
2020-01-02
alex
basic_os=morphos
0394
2020-05-10
alex
;;
0395
2020-05-10
alex
moxiebox)
0396
2020-05-10
alex
basic_machine=moxie-unknown
0397
2020-01-02
alex
basic_os=moxiebox
0398
2020-05-10
alex
;;
0399
2020-05-10
alex
msdos)
0400
2020-05-10
alex
basic_machine=i386-pc
0401
2020-01-02
alex
basic_os=msdos
0402
2020-05-10
alex
;;
0403
2020-05-10
alex
msys)
0404
2020-05-10
alex
basic_machine=i686-pc
0405
2020-01-02
alex
basic_os=msys
0406
2020-05-10
alex
;;
0407
2020-05-10
alex
mvs)
0408
2020-05-10
alex
basic_machine=i370-ibm
0409
2020-01-02
alex
basic_os=mvs
0410
2020-05-10
alex
;;
0411
2020-05-10
alex
nacl)
0412
2020-05-10
alex
basic_machine=le32-unknown
0413
2020-01-02
alex
basic_os=nacl
0414
2020-05-10
alex
;;
0415
2020-05-10
alex
ncr3000)
0416
2020-05-10
alex
basic_machine=i486-ncr
0417
2020-01-02
alex
basic_os=sysv4
0418
2020-05-10
alex
;;
0419
2020-05-10
alex
netbsd386)
0420
2020-05-10
alex
basic_machine=i386-pc
0421
2020-01-02
alex
basic_os=netbsd
0422
2020-05-10
alex
;;
0423
2020-05-10
alex
netwinder)
0424
2020-05-10
alex
basic_machine=armv4l-rebel
0425
2020-01-02
alex
basic_os=linux
0426
2020-05-10
alex
;;
0427
2020-05-10
alex
news | news700 | news800 | news900)
0428
2020-05-10
alex
basic_machine=m68k-sony
0429
2020-01-02
alex
basic_os=newsos
0430
2020-05-10
alex
;;
0431
2020-05-10
alex
news1000)
0432
2020-05-10
alex
basic_machine=m68030-sony
0433
2020-01-02
alex
basic_os=newsos
0434
2020-05-10
alex
;;
0435
2020-05-10
alex
necv70)
0436
2020-05-10
alex
basic_machine=v70-nec
0437
2020-01-02
alex
basic_os=sysv
0438
2020-05-10
alex
;;
0439
2020-05-10
alex
nh3000)
0440
2020-05-10
alex
basic_machine=m68k-harris
0441
2020-01-02
alex
basic_os=cxux
0442
2020-05-10
alex
;;
0443
2020-05-10
alex
nh[45]000)
0444
2020-05-10
alex
basic_machine=m88k-harris
0445
2020-01-02
alex
basic_os=cxux
0446
2020-05-10
alex
;;
0447
2020-05-10
alex
nindy960)
0448
2020-05-10
alex
basic_machine=i960-intel
0449
2020-01-02
alex
basic_os=nindy
0450
2020-05-10
alex
;;
0451
2020-05-10
alex
mon960)
0452
2020-05-10
alex
basic_machine=i960-intel
0453
2020-01-02
alex
basic_os=mon960
0454
2020-05-10
alex
;;
0455
2020-05-10
alex
nonstopux)
0456
2020-05-10
alex
basic_machine=mips-compaq
0457
2020-01-02
alex
basic_os=nonstopux
0458
2020-05-10
alex
;;
0459
2020-05-10
alex
os400)
0460
2020-05-10
alex
basic_machine=powerpc-ibm
0461
2020-01-02
alex
basic_os=os400
0462
2020-05-10
alex
;;
0463
2020-05-10
alex
OSE68000 | ose68000)
0464
2020-05-10
alex
basic_machine=m68000-ericsson
0465
2020-01-02
alex
basic_os=ose
0466
2020-05-10
alex
;;
0467
2020-05-10
alex
os68k)
0468
2020-05-10
alex
basic_machine=m68k-none
0469
2020-01-02
alex
basic_os=os68k
0470
2020-05-10
alex
;;
0471
2020-05-10
alex
paragon)
0472
2020-05-10
alex
basic_machine=i860-intel
0473
2020-01-02
alex
basic_os=osf
0474
2020-05-10
alex
;;
0475
2020-05-10
alex
parisc)
0476
2020-05-10
alex
basic_machine=hppa-unknown
0477
2020-01-02
alex
basic_os=linux
0478
2020-05-10
alex
;;
0479
2020-01-02
alex
psp)
0480
2020-01-02
alex
basic_machine=mipsallegrexel-sony
0481
2020-01-02
alex
basic_os=psp
0482
2020-01-02
alex
;;
0483
2020-05-10
alex
pw32)
0484
2020-05-10
alex
basic_machine=i586-unknown
0485
2020-01-02
alex
basic_os=pw32
0486
2020-05-10
alex
;;
0487
2020-05-10
alex
rdos | rdos64)
0488
2020-05-10
alex
basic_machine=x86_64-pc
0489
2020-01-02
alex
basic_os=rdos
0490
2020-05-10
alex
;;
0491
2020-05-10
alex
rdos32)
0492
2020-05-10
alex
basic_machine=i386-pc
0493
2020-01-02
alex
basic_os=rdos
0494
2020-05-10
alex
;;
0495
2020-05-10
alex
rom68k)
0496
2020-05-10
alex
basic_machine=m68k-rom68k
0497
2020-01-02
alex
basic_os=coff
0498
2020-05-10
alex
;;
0499
2020-05-10
alex
sa29200)
0500
2020-05-10
alex
basic_machine=a29k-amd
0501
2020-01-02
alex
basic_os=udi
0502
2020-05-10
alex
;;
0503
2020-05-10
alex
sei)
0504
2020-05-10
alex
basic_machine=mips-sei
0505
2020-01-02
alex
basic_os=seiux
0506
2020-05-10
alex
;;
0507
2020-05-10
alex
sequent)
0508
2020-05-10
alex
basic_machine=i386-sequent
0509
2020-01-02
alex
basic_os=
0510
2020-05-10
alex
;;
0511
2020-05-10
alex
sps7)
0512
2020-05-10
alex
basic_machine=m68k-bull
0513
2020-01-02
alex
basic_os=sysv2
0514
2020-05-10
alex
;;
0515
2020-05-10
alex
st2000)
0516
2020-05-10
alex
basic_machine=m68k-tandem
0517
2020-01-02
alex
basic_os=
0518
2020-05-10
alex
;;
0519
2020-05-10
alex
stratus)
0520
2020-05-10
alex
basic_machine=i860-stratus
0521
2020-01-02
alex
basic_os=sysv4
0522
2020-05-10
alex
;;
0523
2020-05-10
alex
sun2)
0524
2020-05-10
alex
basic_machine=m68000-sun
0525
2020-01-02
alex
basic_os=
0526
2020-05-10
alex
;;
0527
2020-05-10
alex
sun2os3)
0528
2020-05-10
alex
basic_machine=m68000-sun
0529
2020-01-02
alex
basic_os=sunos3
0530
2020-05-10
alex
;;
0531
2020-05-10
alex
sun2os4)
0532
2020-05-10
alex
basic_machine=m68000-sun
0533
2020-01-02
alex
basic_os=sunos4
0534
2020-05-10
alex
;;
0535
2020-05-10
alex
sun3)
0536
2020-05-10
alex
basic_machine=m68k-sun
0537
2020-01-02
alex
basic_os=
0538
2020-05-10
alex
;;
0539
2020-05-10
alex
sun3os3)
0540
2020-05-10
alex
basic_machine=m68k-sun
0541
2020-01-02
alex
basic_os=sunos3
0542
2020-05-10
alex
;;
0543
2020-05-10
alex
sun3os4)
0544
2020-05-10
alex
basic_machine=m68k-sun
0545
2020-01-02
alex
basic_os=sunos4
0546
2020-05-10
alex
;;
0547
2020-05-10
alex
sun4)
0548
2020-05-10
alex
basic_machine=sparc-sun
0549
2020-01-02
alex
basic_os=
0550
2020-05-10
alex
;;
0551
2020-05-10
alex
sun4os3)
0552
2020-05-10
alex
basic_machine=sparc-sun
0553
2020-01-02
alex
basic_os=sunos3
0554
2020-05-10
alex
;;
0555
2020-05-10
alex
sun4os4)
0556
2020-05-10
alex
basic_machine=sparc-sun
0557
2020-01-02
alex
basic_os=sunos4
0558
2020-05-10
alex
;;
0559
2020-05-10
alex
sun4sol2)
0560
2020-05-10
alex
basic_machine=sparc-sun
0561
2020-01-02
alex
basic_os=solaris2
0562
2020-05-10
alex
;;
0563
2020-05-10
alex
sun386 | sun386i | roadrunner)
0564
2020-05-10
alex
basic_machine=i386-sun
0565
2020-01-02
alex
basic_os=
0566
2020-05-10
alex
;;
0567
2020-05-10
alex
sv1)
0568
2020-05-10
alex
basic_machine=sv1-cray
0569
2020-01-02
alex
basic_os=unicos
0570
2020-05-10
alex
;;
0571
2020-05-10
alex
symmetry)
0572
2020-05-10
alex
basic_machine=i386-sequent
0573
2020-01-02
alex
basic_os=dynix
0574
2020-05-10
alex
;;
0575
2020-05-10
alex
t3e)
0576
2020-05-10
alex
basic_machine=alphaev5-cray
0577
2020-01-02
alex
basic_os=unicos
0578
2020-05-10
alex
;;
0579
2020-05-10
alex
t90)
0580
2020-05-10
alex
basic_machine=t90-cray
0581
2020-01-02
alex
basic_os=unicos
0582
2020-05-10
alex
;;
0583
2020-05-10
alex
toad1)
0584
2020-05-10
alex
basic_machine=pdp10-xkl
0585
2020-01-02
alex
basic_os=tops20
0586
2020-05-10
alex
;;
0587
2020-05-10
alex
tpf)
0588
2020-05-10
alex
basic_machine=s390x-ibm
0589
2020-01-02
alex
basic_os=tpf
0590
2020-05-10
alex
;;
0591
2020-05-10
alex
udi29k)
0592
2020-05-10
alex
basic_machine=a29k-amd
0593
2020-01-02
alex
basic_os=udi
0594
2020-05-10
alex
;;
0595
2020-05-10
alex
ultra3)
0596
2020-05-10
alex
basic_machine=a29k-nyu
0597
2020-01-02
alex
basic_os=sym1
0598
2020-05-10
alex
;;
0599
2020-05-10
alex
v810 | necv810)
0600
2020-05-10
alex
basic_machine=v810-nec
0601
2020-01-02
alex
basic_os=none
0602
2020-05-10
alex
;;
0603
2020-05-10
alex
vaxv)
0604
2020-05-10
alex
basic_machine=vax-dec
0605
2020-01-02
alex
basic_os=sysv
0606
2020-05-10
alex
;;
0607
2020-05-10
alex
vms)
0608
2020-05-10
alex
basic_machine=vax-dec
0609
2020-01-02
alex
basic_os=vms
0610
2020-05-10
alex
;;
0611
2020-05-10
alex
vsta)
0612
2020-05-10
alex
basic_machine=i386-pc
0613
2020-01-02
alex
basic_os=vsta
0614
2020-05-10
alex
;;
0615
2020-05-10
alex
vxworks960)
0616
2020-05-10
alex
basic_machine=i960-wrs
0617
2020-01-02
alex
basic_os=vxworks
0618
2020-05-10
alex
;;
0619
2020-05-10
alex
vxworks68)
0620
2020-05-10
alex
basic_machine=m68k-wrs
0621
2020-01-02
alex
basic_os=vxworks
0622
2020-05-10
alex
;;
0623
2020-05-10
alex
vxworks29k)
0624
2020-05-10
alex
basic_machine=a29k-wrs
0625
2020-01-02
alex
basic_os=vxworks
0626
2020-05-10
alex
;;
0627
2020-05-10
alex
xbox)
0628
2020-05-10
alex
basic_machine=i686-pc
0629
2020-01-02
alex
basic_os=mingw32
0630
2020-05-10
alex
;;
0631
2020-05-10
alex
ymp)
0632
2020-05-10
alex
basic_machine=ymp-cray
0633
2020-01-02
alex
basic_os=unicos
0634
2020-05-10
alex
;;
0635
2020-05-10
alex
*)
0636
2020-05-10
alex
basic_machine=$1
0637
2020-01-02
alex
basic_os=
0638
2020-05-10
alex
;;
0639
2020-05-10
alex
esac
0640
2008-10-03
alex
;;
0641
2020-05-10
alex
esac
0642
2020-05-10
alex
0643
2020-05-10
alex
# Decode 1-component or ad-hoc basic machines
0644
2020-05-10
alex
case $basic_machine in
0645
2020-05-10
alex
# Here we handle the default manufacturer of certain CPU types. It is in
0646
2020-05-10
alex
# some cases the only manufacturer, in others, it is the most popular.
0647
2020-05-10
alex
w89k)
0648
2020-05-10
alex
cpu=hppa1.1
0649
2020-05-10
alex
vendor=winbond
0650
2020-05-10
alex
;;
0651
2020-05-10
alex
op50n)
0652
2020-05-10
alex
cpu=hppa1.1
0653
2020-05-10
alex
vendor=oki
0654
2020-05-10
alex
;;
0655
2020-05-10
alex
op60c)
0656
2020-05-10
alex
cpu=hppa1.1
0657
2020-05-10
alex
vendor=oki
0658
2020-05-10
alex
;;
0659
2020-05-10
alex
ibm*)
0660
2020-05-10
alex
cpu=i370
0661
2020-05-10
alex
vendor=ibm
0662
2020-05-10
alex
;;
0663
2020-05-10
alex
orion105)
0664
2020-05-10
alex
cpu=clipper
0665
2020-05-10
alex
vendor=highlevel
0666
2020-05-10
alex
;;
0667
2020-05-10
alex
mac | mpw | mac-mpw)
0668
2020-05-10
alex
cpu=m68k
0669
2020-05-10
alex
vendor=apple
0670
2020-05-10
alex
;;
0671
2020-05-10
alex
pmac | pmac-mpw)
0672
2020-05-10
alex
cpu=powerpc
0673
2020-05-10
alex
vendor=apple
0674
2020-05-10
alex
;;
0675
2020-05-10
alex
0676
2002-03-12
alex
# Recognize the various machine names and aliases which stand
0677
2002-03-12
alex
# for a CPU type and a company and sometimes even an OS.
0678
2002-03-12
alex
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
0679
2020-05-10
alex
cpu=m68000
0680
2020-05-10
alex
vendor=att
0681
2002-03-12
alex
;;
0682
2002-03-12
alex
3b*)
0683
2020-05-10
alex
cpu=we32k
0684
2020-05-10
alex
vendor=att
0685
2002-03-12
alex
;;
0686
2012-02-27
alex
bluegene*)
0687
2020-05-10
alex
cpu=powerpc
0688
2020-05-10
alex
vendor=ibm
0689
2020-01-02
alex
basic_os=cnk
0690
2012-02-27
alex
;;
0691
2002-03-12
alex
decsystem10* | dec10*)
0692
2020-05-10
alex
cpu=pdp10
0693
2020-05-10
alex
vendor=dec
0694
2020-01-02
alex
basic_os=tops10
0695
2002-03-12
alex
;;
0696
2002-03-12
alex
decsystem20* | dec20*)
0697
2020-05-10
alex
cpu=pdp10
0698
2020-05-10
alex
vendor=dec
0699
2020-01-02
alex
basic_os=tops20
0700
2002-03-12
alex
;;
0701
2002-03-12
alex
delta | 3300 | motorola-3300 | motorola-delta \
0702
2002-03-12
alex
| 3300-motorola | delta-motorola)
0703
2020-05-10
alex
cpu=m68k
0704
2020-05-10
alex
vendor=motorola
0705
2002-03-12
alex
;;
0706
2018-04-01
alex
dpx2*)
0707
2020-05-10
alex
cpu=m68k
0708
2020-05-10
alex
vendor=bull
0709
2020-01-02
alex
basic_os=sysv3
0710
2002-03-12
alex
;;
0711
2002-03-12
alex
encore | umax | mmax)
0712
2020-05-10
alex
cpu=ns32k
0713
2020-05-10
alex
vendor=encore
0714
2002-03-12
alex
;;
0715
2020-05-10
alex
elxsi)
0716
2020-05-10
alex
cpu=elxsi
0717
2020-05-10
alex
vendor=elxsi
0718
2020-01-02
alex
basic_os=${basic_os:-bsd}
0719
2002-03-12
alex
;;
0720
2002-03-12
alex
fx2800)
0721
2020-05-10
alex
cpu=i860
0722
2020-05-10
alex
vendor=alliant
0723
2002-03-12
alex
;;
0724
2002-03-12
alex
genix)
0725
2020-05-10
alex
cpu=ns32k
0726
2020-05-10
alex
vendor=ns
0727
2002-03-12
alex
;;
0728
2002-03-12
alex
h3050r* | hiux*)
0729
2020-05-10
alex
cpu=hppa1.1
0730
2020-05-10
alex
vendor=hitachi
0731
2020-01-02
alex
basic_os=hiuxwe2
0732
2002-03-12
alex
;;
0733
2002-03-12
alex
hp3k9[0-9][0-9] | hp9[0-9][0-9])
0734
2020-05-10
alex
cpu=hppa1.0
0735
2020-05-10
alex
vendor=hp
0736
2002-03-12
alex
;;
0737
2002-03-12
alex
hp9k2[0-9][0-9] | hp9k31[0-9])
0738
2020-05-10
alex
cpu=m68000
0739
2020-05-10
alex
vendor=hp
0740
2002-03-12
alex
;;
0741
2002-03-12
alex
hp9k3[2-9][0-9])
0742
2020-05-10
alex
cpu=m68k
0743
2020-05-10
alex
vendor=hp
0744
2002-03-12
alex
;;
0745
2002-03-12
alex
hp9k6[0-9][0-9] | hp6[0-9][0-9])
0746
2020-05-10
alex
cpu=hppa1.0
0747
2020-05-10
alex
vendor=hp
0748
2002-03-12
alex
;;
0749
2002-03-12
alex
hp9k7[0-79][0-9] | hp7[0-79][0-9])
0750
2020-05-10
alex
cpu=hppa1.1
0751
2020-05-10
alex
vendor=hp
0752
2002-03-12
alex
;;
0753
2002-03-12
alex
hp9k78[0-9] | hp78[0-9])
0754
2002-03-12
alex
# FIXME: really hppa2.0-hp
0755
2020-05-10
alex
cpu=hppa1.1
0756
2020-05-10
alex
vendor=hp
0757
2002-03-12
alex
;;
0758
2002-03-12
alex
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
0759
2002-03-12
alex
# FIXME: really hppa2.0-hp
0760
2020-05-10
alex
cpu=hppa1.1
0761
2020-05-10
alex
vendor=hp
0762
2002-03-12
alex
;;
0763
2002-03-12
alex
hp9k8[0-9][13679] | hp8[0-9][13679])
0764
2020-05-10
alex
cpu=hppa1.1
0765
2020-05-10
alex
vendor=hp
0766
2002-03-12
alex
;;
0767
2002-03-12
alex
hp9k8[0-9][0-9] | hp8[0-9][0-9])
0768
2020-05-10
alex
cpu=hppa1.0
0769
2020-05-10
alex
vendor=hp
0770
2002-03-12
alex
;;
0771
2002-03-12
alex
i*86v32)
0772
2020-01-02
alex
cpu=$(echo "$1" | sed -e 's/86.*/86/')
0773
2020-05-10
alex
vendor=pc
0774
2020-01-02
alex
basic_os=sysv32
0775
2002-03-12
alex
;;
0776
2002-03-12
alex
i*86v4*)
0777
2020-01-02
alex
cpu=$(echo "$1" | sed -e 's/86.*/86/')
0778
2020-05-10
alex
vendor=pc
0779
2020-01-02
alex
basic_os=sysv4
0780
2002-03-12
alex
;;
0781
2002-03-12
alex
i*86v)
0782
2020-01-02
alex
cpu=$(echo "$1" | sed -e 's/86.*/86/')
0783
2020-05-10
alex
vendor=pc
0784
2020-01-02
alex
basic_os=sysv
0785
2002-03-12
alex
;;
0786
2002-03-12
alex
i*86sol2)
0787
2020-01-02
alex
cpu=$(echo "$1" | sed -e 's/86.*/86/')
0788
2020-05-10
alex
vendor=pc
0789
2020-01-02
alex
basic_os=solaris2
0790
2002-03-12
alex
;;
0791
2020-05-10
alex
j90 | j90-cray)
0792
2020-05-10
alex
cpu=j90
0793
2020-05-10
alex
vendor=cray
0794
2020-01-02
alex
basic_os=${basic_os:-unicos}
0795
2002-03-12
alex
;;
0796
2002-03-12
alex
iris | iris4d)
0797
2020-05-10
alex
cpu=mips
0798
2020-05-10
alex
vendor=sgi
0799
2020-01-02
alex
case $basic_os in
0800
2020-05-10
alex
irix*)
0801
2002-03-12
alex
;;
0802
2002-03-12
alex
*)
0803
2020-01-02
alex
basic_os=irix4
0804
2002-03-12
alex
;;
0805
2002-03-12
alex
esac
0806
2002-03-12
alex
;;
0807
2002-03-12
alex
miniframe)
0808
2020-05-10
alex
cpu=m68000
0809
2020-05-10
alex
vendor=convergent
0810
2002-03-12
alex
;;
0811
2020-05-10
alex
*mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
0812
2020-05-10
alex
cpu=m68k
0813
2020-05-10
alex
vendor=atari
0814
2020-01-02
alex
basic_os=mint
0815
2002-03-12
alex
;;
0816
2002-03-12
alex
news-3600 | risc-news)
0817
2020-05-10
alex
cpu=mips
0818
2020-05-10
alex
vendor=sony
0819
2020-01-02
alex
basic_os=newsos
0820
2002-03-12
alex
;;
0821
2018-04-01
alex
next | m*-next)
0822
2020-05-10
alex
cpu=m68k
0823
2020-05-10
alex
vendor=next
0824
2020-01-02
alex
case $basic_os in
0825
2020-05-10
alex
openstep*)
0826
2020-05-10
alex
;;
0827
2020-05-10
alex
nextstep*)
0828
2002-03-12
alex
;;
0829
2020-05-10
alex
ns2*)
0830
2020-01-02
alex
basic_os=nextstep2
0831
2002-03-12
alex
;;
0832
2002-03-12
alex
*)
0833
2020-01-02
alex
basic_os=nextstep3
0834
2002-03-12
alex
;;
0835
2002-03-12
alex
esac
0836
2002-03-12
alex
;;
0837
2002-03-12
alex
np1)
0838
2020-05-10
alex
cpu=np1
0839
2020-05-10
alex
vendor=gould
0840
2002-03-12
alex
;;
0841
2002-03-12
alex
op50n-* | op60c-*)
0842
2020-05-10
alex
cpu=hppa1.1
0843
2020-05-10
alex
vendor=oki
0844
2020-01-02
alex
basic_os=proelf
0845
2002-03-12
alex
;;
0846
2002-03-12
alex
pa-hitachi)
0847
2020-05-10
alex
cpu=hppa1.1
0848
2020-05-10
alex
vendor=hitachi
0849
2020-01-02
alex
basic_os=hiuxwe2
0850
2002-03-12
alex
;;
0851
2002-03-12
alex
pbd)
0852
2020-05-10
alex
cpu=sparc
0853
2020-05-10
alex
vendor=tti
0854
2002-03-12
alex
;;
0855
2002-03-12
alex
pbb)
0856
2020-05-10
alex
cpu=m68k
0857
2020-05-10
alex
vendor=tti
0858
2002-03-12
alex
;;
0859
2020-05-10
alex
pc532)
0860
2020-05-10
alex
cpu=ns32k
0861
2020-05-10
alex
vendor=pc532
0862
2002-03-12
alex
;;
0863
2002-03-12
alex
pn)
0864
2020-05-10
alex
cpu=pn
0865
2020-05-10
alex
vendor=gould
0866
2002-03-12
alex
;;
0867
2020-05-10
alex
power)
0868
2020-05-10
alex
cpu=power
0869
2020-05-10
alex
vendor=ibm
0870
2002-03-12
alex
;;
0871
2002-03-12
alex
ps2)
0872
2020-05-10
alex
cpu=i386
0873
2020-05-10
alex
vendor=ibm
0874
2002-03-12
alex
;;
0875
2002-03-12
alex
rm[46]00)
0876
2020-05-10
alex
cpu=mips
0877
2020-05-10
alex
vendor=siemens
0878
2002-03-12
alex
;;
0879
2002-03-12
alex
rtpc | rtpc-*)
0880
2020-05-10
alex
cpu=romp
0881
2020-05-10
alex
vendor=ibm
0882
2002-03-12
alex
;;
0883
2007-05-26
alex
sde)
0884
2020-05-10
alex
cpu=mipsisa32
0885
2020-05-10
alex
vendor=sde
0886
2020-01-02
alex
basic_os=${basic_os:-elf}
0887
2007-05-26
alex
;;
0888
2018-04-01
alex
simso-wrs)
0889
2020-05-10
alex
cpu=sparclite
0890
2020-05-10
alex
vendor=wrs
0891
2020-01-02
alex
basic_os=vxworks
0892
2002-03-12
alex
;;
0893
2002-03-12
alex
tower | tower-32)
0894
2020-05-10
alex
cpu=m68k
0895
2020-05-10
alex
vendor=ncr
0896
2002-03-12
alex
;;
0897
2002-03-12
alex
vpp*|vx|vx-*)
0898
2020-05-10
alex
cpu=f301
0899
2020-05-10
alex
vendor=fujitsu
0900
2003-07-09
alex
;;
0901
2020-05-10
alex
w65)
0902
2020-05-10
alex
cpu=w65
0903
2020-05-10
alex
vendor=wdc
0904
2002-03-12
alex
;;
0905
2002-03-12
alex
w89k-*)
0906
2020-05-10
alex
cpu=hppa1.1
0907
2020-05-10
alex
vendor=winbond
0908
2020-01-02
alex
basic_os=proelf
0909
2002-03-12
alex
;;
0910
2020-05-10
alex
none)
0911
2020-05-10
alex
cpu=none
0912
2020-05-10
alex
vendor=none
0913
2018-04-01
alex
;;
0914
2020-05-10
alex
leon|leon[3-9])
0915
2020-05-10
alex
cpu=sparc
0916
2020-05-10
alex
vendor=$basic_machine
0917
2005-01-27
alex
;;
0918
2020-05-10
alex
leon-*|leon[3-9]-*)
0919
2020-05-10
alex
cpu=sparc
0920
2020-01-02
alex
vendor=$(echo "$basic_machine" | sed 's/-.*//')
0921
2002-03-12
alex
;;
0922
2020-05-10
alex
0923
2020-05-10
alex
*-*)
0924
2020-05-10
alex
# shellcheck disable=SC2162
0925
2020-05-10
alex
IFS="-" read cpu vendor <<EOF
0926
2020-05-10
alex
$basic_machine
0927
2020-05-10
alex
EOF
0928
2020-05-10
alex
;;
0929
2020-05-10
alex
# We use `pc' rather than `unknown'
0930
2020-05-10
alex
# because (1) that's what they normally are, and
0931
2020-05-10
alex
# (2) the word "unknown" tends to confuse beginning users.
0932
2020-05-10
alex
i*86 | x86_64)
0933
2020-05-10
alex
cpu=$basic_machine
0934
2020-05-10
alex
vendor=pc
0935
2020-05-10
alex
;;
0936
2020-05-10
alex
# These rules are duplicated from below for sake of the special case above;
0937
2020-05-10
alex
# i.e. things that normalized to x86 arches should also default to "pc"
0938
2020-05-10
alex
pc98)
0939
2020-05-10
alex
cpu=i386
0940
2020-05-10
alex
vendor=pc
0941
2020-05-10
alex
;;
0942
2020-05-10
alex
x64 | amd64)
0943
2020-05-10
alex
cpu=x86_64
0944
2020-05-10
alex
vendor=pc
0945
2020-05-10
alex
;;
0946
2020-05-10
alex
# Recognize the basic CPU types without company name.
0947
2020-05-10
alex
*)
0948
2020-05-10
alex
cpu=$basic_machine
0949
2020-05-10
alex
vendor=unknown
0950
2020-05-10
alex
;;
0951
2020-05-10
alex
esac
0952
2020-05-10
alex
0953
2020-05-10
alex
unset -v basic_machine
0954
2020-05-10
alex
0955
2020-05-10
alex
# Decode basic machines in the full and proper CPU-Company form.
0956
2020-05-10
alex
case $cpu-$vendor in
0957
2020-05-10
alex
# Here we handle the default manufacturer of certain CPU types in canonical form. It is in
0958
2020-05-10
alex
# some cases the only manufacturer, in others, it is the most popular.
0959
2020-05-10
alex
craynv-unknown)
0960
2020-05-10
alex
vendor=cray
0961
2020-01-02
alex
basic_os=${basic_os:-unicosmp}
0962
2020-05-10
alex
;;
0963
2020-05-10
alex
c90-unknown | c90-cray)
0964
2020-05-10
alex
vendor=cray
0965
2020-01-02
alex
basic_os=${Basic_os:-unicos}
0966
2020-05-10
alex
;;
0967
2020-05-10
alex
fx80-unknown)
0968
2020-05-10
alex
vendor=alliant
0969
2020-05-10
alex
;;
0970
2020-05-10
alex
romp-unknown)
0971
2020-05-10
alex
vendor=ibm
0972
2020-05-10
alex
;;
0973
2020-05-10
alex
mmix-unknown)
0974
2020-05-10
alex
vendor=knuth
0975
2020-05-10
alex
;;
0976
2020-05-10
alex
microblaze-unknown | microblazeel-unknown)
0977
2020-05-10
alex
vendor=xilinx
0978
2020-05-10
alex
;;
0979
2020-05-10
alex
rs6000-unknown)
0980
2020-05-10
alex
vendor=ibm
0981
2020-05-10
alex
;;
0982
2020-05-10
alex
vax-unknown)
0983
2020-05-10
alex
vendor=dec
0984
2020-05-10
alex
;;
0985
2020-05-10
alex
pdp11-unknown)
0986
2020-05-10
alex
vendor=dec
0987
2020-05-10
alex
;;
0988
2020-05-10
alex
we32k-unknown)
0989
2020-05-10
alex
vendor=att
0990
2020-05-10
alex
;;
0991
2020-05-10
alex
cydra-unknown)
0992
2020-05-10
alex
vendor=cydrome
0993
2020-05-10
alex
;;
0994
2020-05-10
alex
i370-ibm*)
0995
2020-05-10
alex
vendor=ibm
0996
2020-05-10
alex
;;
0997
2020-05-10
alex
orion-unknown)
0998
2020-05-10
alex
vendor=highlevel
0999
2020-05-10
alex
;;
1000
2020-05-10
alex
xps-unknown | xps100-unknown)
1001
2020-05-10
alex
cpu=xps100
1002
2020-05-10
alex
vendor=honeywell
1003
2020-05-10
alex
;;
1004
2020-05-10
alex
1005
2020-05-10
alex
# Here we normalize CPU types with a missing or matching vendor
1006
2020-05-10
alex
dpx20-unknown | dpx20-bull)
1007
2020-05-10
alex
cpu=rs6000
1008
2020-05-10
alex
vendor=bull
1009
2020-01-02
alex
basic_os=${basic_os:-bosx}
1010
2020-05-10
alex
;;
1011
2020-05-10
alex
1012
2020-05-10
alex
# Here we normalize CPU types irrespective of the vendor
1013
2020-05-10
alex
amd64-*)
1014
2020-05-10
alex
cpu=x86_64
1015
2020-05-10
alex
;;
1016
2020-05-10
alex
blackfin-*)
1017
2020-05-10
alex
cpu=bfin
1018
2020-01-02
alex
basic_os=linux
1019
2020-05-10
alex
;;
1020
2020-05-10
alex
c54x-*)
1021
2020-05-10
alex
cpu=tic54x
1022
2020-05-10
alex
;;
1023
2020-05-10
alex
c55x-*)
1024
2020-05-10
alex
cpu=tic55x
1025
2020-05-10
alex
;;
1026
2020-05-10
alex
c6x-*)
1027
2020-05-10
alex
cpu=tic6x
1028
2020-05-10
alex
;;
1029
2020-05-10
alex
e500v[12]-*)
1030
2020-05-10
alex
cpu=powerpc
1031
2020-01-02
alex
basic_os=${basic_os}"spe"
1032
2020-05-10
alex
;;
1033
2020-05-10
alex
mips3*-*)
1034
2020-05-10
alex
cpu=mips64
1035
2020-05-10
alex
;;
1036
2020-05-10
alex
ms1-*)
1037
2020-05-10
alex
cpu=mt
1038
2020-05-10
alex
;;
1039
2020-05-10
alex
m68knommu-*)
1040
2020-05-10
alex
cpu=m68k
1041
2020-01-02
alex
basic_os=linux
1042
2020-05-10
alex
;;
1043
2020-05-10
alex
m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1044
2020-05-10
alex
cpu=s12z
1045
2020-05-10
alex
;;
1046
2020-05-10
alex
openrisc-*)
1047
2020-05-10
alex
cpu=or32
1048
2020-05-10
alex
;;
1049
2020-05-10
alex
parisc-*)
1050
2020-05-10
alex
cpu=hppa
1051
2020-01-02
alex
basic_os=linux
1052
2020-05-10
alex
;;
1053
2020-05-10
alex
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1054
2020-05-10
alex
cpu=i586
1055
2020-05-10
alex
;;
1056
2020-05-10
alex
pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1057
2020-05-10
alex
cpu=i686
1058
2020-05-10
alex
;;
1059
2020-05-10
alex
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1060
2020-05-10
alex
cpu=i686
1061
2020-05-10
alex
;;
1062
2020-05-10
alex
pentium4-*)
1063
2020-05-10
alex
cpu=i786
1064
2020-05-10
alex
;;
1065
2020-05-10
alex
pc98-*)
1066
2020-05-10
alex
cpu=i386
1067
2020-05-10
alex
;;
1068
2020-05-10
alex
ppc-* | ppcbe-*)
1069
2020-05-10
alex
cpu=powerpc
1070
2020-05-10
alex
;;
1071
2020-05-10
alex
ppcle-* | powerpclittle-*)
1072
2020-05-10
alex
cpu=powerpcle
1073
2020-05-10
alex
;;
1074
2020-05-10
alex
ppc64-*)
1075
2020-05-10
alex
cpu=powerpc64
1076
2020-05-10
alex
;;
1077
2020-05-10
alex
ppc64le-* | powerpc64little-*)
1078
2020-05-10
alex
cpu=powerpc64le
1079
2020-05-10
alex
;;
1080
2020-05-10
alex
sb1-*)
1081
2020-05-10
alex
cpu=mipsisa64sb1
1082
2020-05-10
alex
;;
1083
2020-05-10
alex
sb1el-*)
1084
2020-05-10
alex
cpu=mipsisa64sb1el
1085
2020-05-10
alex
;;
1086
2020-05-10
alex
sh5e[lb]-*)
1087
2020-01-02
alex
cpu=$(echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/')
1088
2020-05-10
alex
;;
1089
2020-05-10
alex
spur-*)
1090
2020-05-10
alex
cpu=spur
1091
2020-05-10
alex
;;
1092
2020-05-10
alex
strongarm-* | thumb-*)
1093
2020-05-10
alex
cpu=arm
1094
2020-05-10
alex
;;
1095
2020-05-10
alex
tx39-*)
1096
2020-05-10
alex
cpu=mipstx39
1097
2020-05-10
alex
;;
1098
2020-05-10
alex
tx39el-*)
1099
2020-05-10
alex
cpu=mipstx39el
1100
2020-05-10
alex
;;
1101
2020-05-10
alex
x64-*)
1102
2020-05-10
alex
cpu=x86_64
1103
2020-05-10
alex
;;
1104
2012-02-27
alex
xscale-* | xscalee[bl]-*)
1105
2020-01-02
alex
cpu=$(echo "$cpu" | sed 's/^xscale/arm/')
1106
2012-02-27
alex
;;
1107
2020-01-02
alex
arm64-*)
1108
2020-01-02
alex
cpu=aarch64
1109
2020-01-02
alex
;;
1110
2002-03-12
alex
1111
2020-05-10
alex
# Recognize the canonical CPU Types that limit and/or modify the
1112
2020-05-10
alex
# company names they are paired with.
1113
2020-05-10
alex
cr16-*)
1114
2020-01-02
alex
basic_os=${basic_os:-elf}
1115
2002-03-12
alex
;;
1116
2020-05-10
alex
crisv32-* | etraxfs*-*)
1117
2020-05-10
alex
cpu=crisv32
1118
2020-05-10
alex
vendor=axis
1119
2002-03-12
alex
;;
1120
2020-05-10
alex
cris-* | etrax*-*)
1121
2020-05-10
alex
cpu=cris
1122
2020-05-10
alex
vendor=axis
1123
2002-03-12
alex
;;
1124
2020-05-10
alex
crx-*)
1125
2020-01-02
alex
basic_os=${basic_os:-elf}
1126
2002-03-12
alex
;;
1127
2020-05-10
alex
neo-tandem)
1128
2020-05-10
alex
cpu=neo
1129
2020-05-10
alex
vendor=tandem
1130
2004-12-25
alex
;;
1131
2020-05-10
alex
nse-tandem)
1132
2020-05-10
alex
cpu=nse
1133
2020-05-10
alex
vendor=tandem
1134
2002-03-12
alex
;;
1135
2020-05-10
alex
nsr-tandem)
1136
2020-05-10
alex
cpu=nsr
1137
2020-05-10
alex
vendor=tandem
1138
2002-03-12
alex
;;
1139
2020-05-10
alex
nsv-tandem)
1140
2020-05-10
alex
cpu=nsv
1141
2020-05-10
alex
vendor=tandem
1142
2002-03-12
alex
;;
1143
2020-05-10
alex
nsx-tandem)
1144
2020-05-10
alex
cpu=nsx
1145
2020-05-10
alex
vendor=tandem
1146
2002-03-12
alex
;;
1147
2020-01-02
alex
mipsallegrexel-sony)
1148
2020-01-02
alex
cpu=mipsallegrexel
1149
2020-01-02
alex
vendor=sony
1150
2002-03-12
alex
;;
1151
2020-05-10
alex
tile*-*)
1152
2020-01-02
alex
basic_os=${basic_os:-linux-gnu}
1153
2002-03-12
alex
;;
1154
2020-05-10
alex
1155
2002-03-12
alex
*)
1156
2020-05-10
alex
# Recognize the canonical CPU types that are allowed with any
1157
2020-05-10
alex
# company name.
1158
2020-05-10
alex
case $cpu in
1159
2020-05-10
alex
1750a | 580 \
1160
2020-05-10
alex
| a29k \
1161
2020-05-10
alex
| aarch64 | aarch64_be \
1162
2020-05-10
alex
| abacus \
1163
2020-05-10
alex
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1164
2020-05-10
alex
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1165
2020-05-10
alex
| alphapca5[67] | alpha64pca5[67] \
1166
2020-05-10
alex
| am33_2.0 \
1167
2020-05-10
alex
| amdgcn \
1168
2020-05-10
alex
| arc | arceb \
1169
2020-01-02
alex
| arm | arm[lb]e | arme[lb] | armv* \
1170
2020-05-10
alex
| avr | avr32 \
1171
2020-05-10
alex
| asmjs \
1172
2020-05-10
alex
| ba \
1173
2020-05-10
alex
| be32 | be64 \
1174
2020-05-10
alex
| bfin | bpf | bs2000 \
1175
2020-05-10
alex
| c[123]* | c30 | [cjt]90 | c4x \
1176
2020-05-10
alex
| c8051 | clipper | craynv | csky | cydra \
1177
2020-05-10
alex
| d10v | d30v | dlx | dsp16xx \
1178
2020-05-10
alex
| e2k | elxsi | epiphany \
1179
2020-05-10
alex
| f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1180
2020-05-10
alex
| h8300 | h8500 \
1181
2020-05-10
alex
| hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1182
2020-05-10
alex
| hexagon \
1183
2020-05-10
alex
| i370 | i*86 | i860 | i960 | ia16 | ia64 \
1184
2020-05-10
alex
| ip2k | iq2000 \
1185
2020-05-10
alex
| k1om \
1186
2020-05-10
alex
| le32 | le64 \
1187
2020-05-10
alex
| lm32 \
1188
2020-01-02
alex
| loongarch32 | loongarch64 | loongarchx32 \
1189
2020-05-10
alex
| m32c | m32r | m32rle \
1190
2020-05-10
alex
| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1191
2020-05-10
alex
| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1192
2020-05-10
alex
| m88110 | m88k | maxq | mb | mcore | mep | metag \
1193
2020-05-10
alex
| microblaze | microblazeel \
1194
2020-05-10
alex
| mips | mipsbe | mipseb | mipsel | mipsle \
1195
2020-05-10
alex
| mips16 \
1196
2020-05-10
alex
| mips64 | mips64eb | mips64el \
1197
2020-05-10
alex
| mips64octeon | mips64octeonel \
1198
2020-05-10
alex
| mips64orion | mips64orionel \
1199
2020-05-10
alex
| mips64r5900 | mips64r5900el \
1200
2020-05-10
alex
| mips64vr | mips64vrel \
1201
2020-05-10
alex
| mips64vr4100 | mips64vr4100el \
1202
2020-05-10
alex
| mips64vr4300 | mips64vr4300el \
1203
2020-05-10
alex
| mips64vr5000 | mips64vr5000el \
1204
2020-05-10
alex
| mips64vr5900 | mips64vr5900el \
1205
2020-05-10
alex
| mipsisa32 | mipsisa32el \
1206
2020-05-10
alex
| mipsisa32r2 | mipsisa32r2el \
1207
2020-05-10
alex
| mipsisa32r6 | mipsisa32r6el \
1208
2020-05-10
alex
| mipsisa64 | mipsisa64el \
1209
2020-05-10
alex
| mipsisa64r2 | mipsisa64r2el \
1210
2020-05-10
alex
| mipsisa64r6 | mipsisa64r6el \
1211
2020-05-10
alex
| mipsisa64sb1 | mipsisa64sb1el \
1212
2020-05-10
alex
| mipsisa64sr71k | mipsisa64sr71kel \
1213
2020-05-10
alex
| mipsr5900 | mipsr5900el \
1214
2020-05-10
alex
| mipstx39 | mipstx39el \
1215
2020-05-10
alex
| mmix \
1216
2020-05-10
alex
| mn10200 | mn10300 \
1217
2020-05-10
alex
| moxie \
1218
2020-05-10
alex
| mt \
1219
2020-05-10
alex
| msp430 \
1220
2020-05-10
alex
| nds32 | nds32le | nds32be \
1221
2020-05-10
alex
| nfp \
1222
2020-05-10
alex
| nios | nios2 | nios2eb | nios2el \
1223
2020-05-10
alex
| none | np1 | ns16k | ns32k | nvptx \
1224
2020-05-10
alex
| open8 \
1225
2020-05-10
alex
| or1k* \
1226
2020-05-10
alex
| or32 \
1227
2020-05-10
alex
| orion \
1228
2020-05-10
alex
| picochip \
1229
2020-05-10
alex
| pdp10 | pdp11 | pj | pjl | pn | power \
1230
2020-05-10
alex
| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1231
2020-05-10
alex
| pru \
1232
2020-05-10
alex
| pyramid \
1233
2020-05-10
alex
| riscv | riscv32 | riscv64 \
1234
2020-05-10
alex
| rl78 | romp | rs6000 | rx \
1235
2020-01-02
alex
| s390 | s390x \
1236
2020-05-10
alex
| score \
1237
2020-05-10
alex
| sh | shl \
1238
2020-05-10
alex
| sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1239
2020-05-10
alex
| sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1240
2020-05-10
alex
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1241
2020-05-10
alex
| sparclite \
1242
2020-05-10
alex
| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1243
2020-05-10
alex
| spu \
1244
2020-05-10
alex
| tahoe \
1245
2020-01-02
alex
| thumbv7* \
1246
2020-05-10
alex
| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1247
2020-05-10
alex
| tron \
1248
2020-05-10
alex
| ubicom32 \
1249
2020-05-10
alex
| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1250
2020-05-10
alex
| vax \
1251
2020-05-10
alex
| visium \
1252
2020-05-10
alex
| w65 \
1253
2020-05-10
alex
| wasm32 | wasm64 \
1254
2020-05-10
alex
| we32k \
1255
2020-05-10
alex
| x86 | x86_64 | xc16x | xgate | xps100 \
1256
2020-05-10
alex
| xstormy16 | xtensa* \
1257
2020-05-10
alex
| ymp \
1258
2020-05-10
alex
| z8k | z80)
1259
2020-05-10
alex
;;
1260
2020-05-10
alex
1261
2020-05-10
alex
*)
1262
2020-05-10
alex
echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1263
2020-05-10
alex
exit 1
1264
2020-05-10
alex
;;
1265
2020-05-10
alex
esac
1266
2002-03-12
alex
;;
1267
2002-03-12
alex
esac
1268
2002-03-12
alex
1269
2002-03-12
alex
# Here we canonicalize certain aliases for manufacturers.
1270
2020-05-10
alex
case $vendor in
1271
2020-05-10
alex
digital*)
1272
2020-05-10
alex
vendor=dec
1273
2002-03-12
alex
;;
1274
2020-05-10
alex
commodore*)
1275
2020-05-10
alex
vendor=cbm
1276
2002-03-12
alex
;;
1277
2002-03-12
alex
*)
1278
2002-03-12
alex
;;
1279
2002-03-12
alex
esac
1280
2002-03-12
alex
1281
2002-03-12
alex
# Decode manufacturer-specific aliases for certain operating systems.
1282
2002-03-12
alex
1283
2020-01-02
alex
if test x$basic_os != x
1284
2002-03-12
alex
then
1285
2020-01-02
alex
1286
2020-01-02
alex
# First recognize some ad-hoc caes, or perhaps split kernel-os, or else just
1287
2020-01-02
alex
# set os.
1288
2020-01-02
alex
case $basic_os in
1289
2020-01-02
alex
gnu/linux*)
1290
2020-01-02
alex
kernel=linux
1291
2020-01-02
alex
os=$(echo $basic_os | sed -e 's|gnu/linux|gnu|')
1292
2020-01-02
alex
;;
1293
2020-01-02
alex
os2-emx)
1294
2020-01-02
alex
kernel=os2
1295
2020-01-02
alex
os=$(echo $basic_os | sed -e 's|os2-emx|emx|')
1296
2020-01-02
alex
;;
1297
2020-01-02
alex
nto-qnx*)
1298
2020-01-02
alex
kernel=nto
1299
2020-01-02
alex
os=$(echo $basic_os | sed -e 's|nto-qnx|qnx|')
1300
2020-01-02
alex
;;
1301
2020-01-02
alex
*-*)
1302
2020-01-02
alex
# shellcheck disable=SC2162
1303
2020-01-02
alex
IFS="-" read kernel os <<EOF
1304
2020-01-02
alex
$basic_os
1305
2020-01-02
alex
EOF
1306
2020-01-02
alex
;;
1307
2020-01-02
alex
# Default OS when just kernel was specified
1308
2020-01-02
alex
nto*)
1309
2020-01-02
alex
kernel=nto
1310
2020-01-02
alex
os=$(echo $basic_os | sed -e 's|nto|qnx|')
1311
2020-01-02
alex
;;
1312
2020-01-02
alex
linux*)
1313
2020-01-02
alex
kernel=linux
1314
2020-01-02
alex
os=$(echo $basic_os | sed -e 's|linux|gnu|')
1315
2020-01-02
alex
;;
1316
2020-01-02
alex
*)
1317
2020-01-02
alex
kernel=
1318
2020-01-02
alex
os=$basic_os
1319
2020-01-02
alex
;;
1320
2020-01-02
alex
esac
1321
2020-01-02
alex
1322
2020-01-02
alex
# Now, normalize the OS (knowing we just have one component, it's not a kernel,
1323
2020-01-02
alex
# etc.)
1324
2002-03-12
alex
case $os in
1325
2018-04-01
alex
# First match some system type aliases that might get confused
1326
2018-04-01
alex
# with valid system types.
1327
2020-05-10
alex
# solaris* is a basic system type, with this one exception.
1328
2020-05-10
alex
auroraux)
1329
2020-05-10
alex
os=auroraux
1330
2012-02-27
alex
;;
1331
2020-05-10
alex
bluegene*)
1332
2020-05-10
alex
os=cnk
1333
2020-05-10
alex
;;
1334
2020-05-10
alex
solaris1 | solaris1.*)
1335
2020-01-02
alex
os=$(echo $os | sed -e 's|solaris1|sunos4|')
1336
2002-03-12
alex
;;
1337
2020-05-10
alex
solaris)
1338
2020-05-10
alex
os=solaris2
1339
2002-03-12
alex
;;
1340
2020-05-10
alex
unixware*)
1341
2020-05-10
alex
os=sysv4.2uw
1342
2002-03-12
alex
;;
1343
2018-04-01
alex
# es1800 is here to avoid being matched by es* (a different OS)
1344
2020-05-10
alex
es1800*)
1345
2020-05-10
alex
os=ose
1346
2018-04-01
alex
;;
1347
2020-05-10
alex
# Some version numbers need modification
1348
2020-05-10
alex
chorusos*)
1349
2020-05-10
alex
os=chorusos
1350
2020-05-10
alex
;;
1351
2020-05-10
alex
isc)
1352
2020-05-10
alex
os=isc2.2
1353
2020-05-10
alex
;;
1354
2020-05-10
alex
sco6)
1355
2020-05-10
alex
os=sco5v6
1356
2020-05-10
alex
;;
1357
2020-05-10
alex
sco5)
1358
2020-05-10
alex
os=sco3.2v5
1359
2020-05-10
alex
;;
1360
2020-05-10
alex
sco4)
1361
2020-05-10
alex
os=sco3.2v4
1362
2020-05-10
alex
;;
1363
2020-05-10
alex
sco3.2.[4-9]*)
1364
2020-01-02
alex
os=$(echo $os | sed -e 's/sco3.2./sco3.2v/')
1365
2020-05-10
alex
;;
1366
2020-01-02
alex
sco*v* | scout)
1367
2020-05-10
alex
# Don't match below
1368
2020-05-10
alex
;;
1369
2020-05-10
alex
sco*)
1370
2020-05-10
alex
os=sco3.2v2
1371
2020-05-10
alex
;;
1372
2020-05-10
alex
psos*)
1373
2020-05-10
alex
os=psos
1374
2020-05-10
alex
;;
1375
2020-05-10
alex
qnx*)
1376
2020-01-02
alex
os=qnx
1377
2002-03-12
alex
;;
1378
2020-05-10
alex
hiux*)
1379
2020-05-10
alex
os=hiuxwe2
1380
2003-07-09
alex
;;
1381
2020-05-10
alex
lynx*178)
1382
2020-05-10
alex
os=lynxos178
1383
2020-05-10
alex
;;
1384
2020-05-10
alex
lynx*5)
1385
2020-05-10
alex
os=lynxos5
1386
2020-05-10
alex
;;
1387
2020-01-02
alex
lynxos*)
1388
2020-01-02
alex
# don't get caught up in next wildcard
1389
2020-01-02
alex
;;
1390
2020-05-10
alex
lynx*)
1391
2020-05-10
alex
os=lynxos
1392
2020-05-10
alex
;;
1393
2020-01-02
alex
mac[0-9]*)
1394
2020-01-02
alex
os=$(echo "$os" | sed -e 's|mac|macos|')
1395
2020-05-10
alex
;;
1396
2020-05-10
alex
opened*)
1397
2020-05-10
alex
os=openedition
1398
2020-05-10
alex
;;
1399
2020-05-10
alex
os400*)
1400
2020-05-10
alex
os=os400
1401
2020-05-10
alex
;;
1402
2020-05-10
alex
sunos5*)
1403
2020-01-02
alex
os=$(echo "$os" | sed -e 's|sunos5|solaris2|')
1404
2002-03-12
alex
;;
1405
2020-05-10
alex
sunos6*)
1406
2020-01-02
alex
os=$(echo "$os" | sed -e 's|sunos6|solaris3|')
1407
2002-03-12
alex
;;
1408
2020-05-10
alex
wince*)
1409
2020-05-10
alex
os=wince
1410
2002-03-12
alex
;;
1411
2020-05-10
alex
utek*)
1412
2020-05-10
alex
os=bsd
1413
2004-03-11
alex
;;
1414
2020-05-10
alex
dynix*)
1415
2020-05-10
alex
os=bsd
1416
2002-03-12
alex
;;
1417
2020-05-10
alex
acis*)
1418
2020-05-10
alex
os=aos
1419
2002-03-12
alex
;;
1420
2020-05-10
alex
atheos*)
1421
2020-05-10
alex
os=atheos
1422
2002-03-12
alex
;;
1423
2020-05-10
alex
syllable*)
1424
2020-05-10
alex
os=syllable
1425
2002-03-12
alex
;;
1426
2020-05-10
alex
386bsd)
1427
2020-05-10
alex
os=bsd
1428
2002-03-12
alex
;;
1429
2020-05-10
alex
ctix* | uts*)
1430
2020-05-10
alex
os=sysv
1431
2004-03-11
alex
;;
1432
2020-05-10
alex
nova*)
1433
2020-05-10
alex
os=rtmk-nova
1434
2002-03-12
alex
;;
1435
2020-05-10
alex
ns2)
1436
2020-05-10
alex
os=nextstep2
1437
2002-03-12
alex
;;
1438
2002-03-12
alex
# Preserve the version number of sinix5.
1439
2020-05-10
alex
sinix5.*)
1440
2020-01-02
alex
os=$(echo $os | sed -e 's|sinix|sysv|')
1441
2002-03-12
alex
;;
1442
2020-05-10
alex
sinix*)
1443
2020-05-10
alex
os=sysv4
1444
2002-03-12
alex
;;
1445
2020-05-10
alex
tpf*)
1446
2020-05-10
alex
os=tpf
1447
2004-03-11
alex
;;
1448
2020-05-10
alex
triton*)
1449
2020-05-10
alex
os=sysv3
1450
2002-03-12
alex
;;
1451
2020-05-10
alex
oss*)
1452
2020-05-10
alex
os=sysv3
1453
2002-03-12
alex
;;
1454
2020-05-10
alex
svr4*)
1455
2020-05-10
alex
os=sysv4
1456
2002-03-12
alex
;;
1457
2020-05-10
alex
svr3)
1458
2020-05-10
alex
os=sysv3
1459
2002-03-12
alex
;;
1460
2020-05-10
alex
sysvr4)
1461
2020-05-10
alex
os=sysv4
1462
2002-03-12
alex
;;
1463
2020-05-10
alex
ose*)
1464
2020-05-10
alex
os=ose
1465
2002-03-12
alex
;;
1466
2020-05-10
alex
*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1467
2020-05-10
alex
os=mint
1468
2002-03-12
alex
;;
1469
2020-05-10
alex
dicos*)
1470
2020-05-10
alex
os=dicos
1471
2012-02-27
alex
;;
1472
2020-05-10
alex
pikeos*)
1473
2018-04-01
alex
# Until real need of OS specific support for
1474
2018-04-01
alex
# particular features comes up, bare metal
1475
2018-04-01
alex
# configurations are quite functional.
1476
2020-05-10
alex
case $cpu in
1477
2018-04-01
alex
arm*)
1478
2020-05-10
alex
os=eabi
1479
2018-04-01
alex
;;
1480
2018-04-01
alex
*)
1481
2020-05-10
alex
os=elf
1482
2018-04-01
alex
;;
1483
2018-04-01
alex
esac
1484
2018-04-01
alex
;;
1485
2002-03-12
alex
*)
1486
2020-01-02
alex
# No normalization, but not necessarily accepted, that comes below.
1487
2002-03-12
alex
;;
1488
2002-03-12
alex
esac
1489
2020-01-02
alex
1490
2002-03-12
alex
else
1491
2002-03-12
alex
1492
2002-03-12
alex
# Here we handle the default operating systems that come with various machines.
1493
2002-03-12
alex
# The value should be what the vendor currently ships out the door with their
1494
2002-03-12
alex
# machine or put another way, the most popular os provided with the machine.
1495
2002-03-12
alex
1496
2002-03-12
alex
# Note that if you're going to try to match "-MANUFACTURER" here (say,
1497
2002-03-12
alex
# "-sun"), then you have to tell the case statement up towards the top
1498
2002-03-12
alex
# that MANUFACTURER isn't an operating system. Otherwise, code above
1499
2002-03-12
alex
# will signal an error saying that MANUFACTURER isn't an operating
1500
2002-03-12
alex
# system, and we'll never get to this point.
1501
2002-03-12
alex
1502
2020-01-02
alex
kernel=
1503
2020-05-10
alex
case $cpu-$vendor in
1504
2012-02-27
alex
score-*)
1505
2020-05-10
alex
os=elf
1506
2007-05-26
alex
;;
1507
2012-02-27
alex
spu-*)
1508
2020-05-10
alex
os=elf
1509
2006-09-11
alex
;;
1510
2002-03-12
alex
*-acorn)
1511
2020-05-10
alex
os=riscix1.2
1512
2002-03-12
alex
;;
1513
2002-03-12
alex
arm*-rebel)
1514
2020-01-02
alex
kernel=linux
1515
2020-01-02
alex
os=gnu
1516
2002-03-12
alex
;;
1517
2002-03-12
alex
arm*-semi)
1518
2020-05-10
alex
os=aout
1519
2002-03-12
alex
;;
1520
2012-02-27
alex
c4x-* | tic4x-*)
1521
2020-05-10
alex
os=coff
1522
2006-09-11
alex
;;
1523
2014-03-18
alex
c8051-*)
1524
2020-05-10
alex
os=elf
1525
2014-03-18
alex
;;
1526
2020-05-10
alex
clipper-intergraph)
1527
2020-05-10
alex
os=clix
1528
2020-05-10
alex
;;
1529
2012-09-16
alex
hexagon-*)
1530
2020-05-10
alex
os=elf
1531
2012-09-16
alex
;;
1532
2012-02-27
alex
tic54x-*)
1533
2020-05-10
alex
os=coff
1534
2012-02-27
alex
;;
1535
2012-02-27
alex
tic55x-*)
1536
2020-05-10
alex
os=coff
1537
2012-02-27
alex
;;
1538
2012-02-27
alex
tic6x-*)
1539
2020-05-10
alex
os=coff
1540
2012-02-27
alex
;;
1541
2002-03-12
alex
# This must come before the *-dec entry.
1542
2002-03-12
alex
pdp10-*)
1543
2020-05-10
alex
os=tops20
1544
2002-03-12
alex
;;
1545
2003-07-09
alex
pdp11-*)
1546
2020-05-10
alex
os=none
1547
2002-03-12
alex
;;
1548
2002-03-12
alex
*-dec | vax-*)
1549
2020-05-10
alex
os=ultrix4.2
1550
2002-03-12
alex
;;
1551
2002-03-12
alex
m68*-apollo)
1552
2020-05-10
alex
os=domain
1553
2002-03-12
alex
;;
1554
2002-03-12
alex
i386-sun)
1555
2020-05-10
alex
os=sunos4.0.2
1556
2002-03-12
alex
;;
1557
2002-03-12
alex
m68000-sun)
1558
2020-05-10
alex
os=sunos3
1559
2002-03-12
alex
;;
1560
2002-03-12
alex
m68*-cisco)
1561
2020-05-10
alex
os=aout
1562
2002-03-12
alex
;;
1563
2012-02-27
alex
mep-*)
1564
2020-05-10
alex
os=elf
1565
2007-05-26
alex
;;
1566
2002-03-12
alex
mips*-cisco)
1567
2020-05-10
alex
os=elf
1568
2002-03-12
alex
;;
1569
2002-03-12
alex
mips*-*)
1570
2020-05-10
alex
os=elf
1571
2002-03-12
alex
;;
1572
2002-03-12
alex
or32-*)
1573
2020-05-10
alex
os=coff
1574
2002-03-12
alex
;;
1575
2002-03-12
alex
*-tti) # must be before sparc entry or we get the wrong os.
1576
2020-05-10
alex
os=sysv3
1577
2002-03-12
alex
;;
1578
2002-03-12
alex
sparc-* | *-sun)
1579
2020-05-10
alex
os=sunos4.1.1
1580
2002-03-12
alex
;;
1581
2018-04-01
alex
pru-*)
1582
2020-05-10
alex
os=elf
1583
2018-04-01
alex
;;
1584
2002-03-12
alex
*-be)
1585
2020-05-10
alex
os=beos
1586
2002-03-12
alex
;;
1587
2002-03-12
alex
*-ibm)
1588
2020-05-10
alex
os=aix
1589
2002-03-12
alex
;;
1590
2012-02-27
alex
*-knuth)
1591
2020-05-10
alex
os=mmixware
1592
2004-12-25
alex
;;
1593
2002-03-12
alex
*-wec)
1594
2020-05-10
alex
os=proelf
1595
2002-03-12
alex
;;
1596
2002-03-12
alex
*-winbond)
1597
2020-05-10
alex
os=proelf
1598
2002-03-12
alex
;;
1599
2002-03-12
alex
*-oki)
1600
2020-05-10
alex
os=proelf
1601
2002-03-12
alex
;;
1602
2002-03-12
alex
*-hp)
1603
2020-05-10
alex
os=hpux
1604
2002-03-12
alex
;;
1605
2002-03-12
alex
*-hitachi)
1606
2020-05-10
alex
os=hiux
1607
2002-03-12
alex
;;
1608
2002-03-12
alex
i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1609
2020-05-10
alex
os=sysv
1610
2002-03-12
alex
;;
1611
2002-03-12
alex
*-cbm)
1612
2020-05-10
alex
os=amigaos
1613
2002-03-12
alex
;;
1614
2002-03-12
alex
*-dg)
1615
2020-05-10
alex
os=dgux
1616
2002-03-12
alex
;;
1617
2002-03-12
alex
*-dolphin)
1618
2020-05-10
alex
os=sysv3
1619
2002-03-12
alex
;;
1620
2002-03-12
alex
m68k-ccur)
1621
2020-05-10
alex
os=rtu
1622
2002-03-12
alex
;;
1623
2002-03-12
alex
m88k-omron*)
1624
2020-05-10
alex
os=luna
1625
2002-03-12
alex
;;
1626
2018-04-01
alex
*-next)
1627
2020-05-10
alex
os=nextstep
1628
2002-03-12
alex
;;
1629
2002-03-12
alex
*-sequent)
1630
2020-05-10
alex
os=ptx
1631
2002-03-12
alex
;;
1632
2002-03-12
alex
*-crds)
1633
2020-05-10
alex
os=unos
1634
2002-03-12
alex
;;
1635
2002-03-12
alex
*-ns)
1636
2020-05-10
alex
os=genix
1637
2002-03-12
alex
;;
1638
2002-03-12
alex
i370-*)
1639
2020-05-10
alex
os=mvs
1640
2002-03-12
alex
;;
1641
2003-07-09
alex
*-gould)
1642
2020-05-10
alex
os=sysv
1643
2002-03-12
alex
;;
1644
2003-07-09
alex
*-highlevel)
1645
2020-05-10
alex
os=bsd
1646
2002-03-12
alex
;;
1647
2002-03-12
alex
*-encore)
1648
2020-05-10
alex
os=bsd
1649
2002-03-12
alex
;;
1650
2003-07-09
alex
*-sgi)
1651
2020-05-10
alex
os=irix
1652
2002-03-12
alex
;;
1653
2003-07-09
alex
*-siemens)
1654
2020-05-10
alex
os=sysv4
1655
2002-03-12
alex
;;
1656
2002-03-12
alex
*-masscomp)
1657
2020-05-10
alex
os=rtu
1658
2002-03-12
alex
;;
1659
2002-03-12
alex
f30[01]-fujitsu | f700-fujitsu)
1660
2020-05-10
alex
os=uxpv
1661
2002-03-12
alex
;;
1662
2002-03-12
alex
*-rom68k)
1663
2020-05-10
alex
os=coff
1664
2002-03-12
alex
;;
1665
2002-03-12
alex
*-*bug)
1666
2020-05-10
alex
os=coff
1667
2002-03-12
alex
;;
1668
2002-03-12
alex
*-apple)
1669
2020-05-10
alex
os=macos
1670
2002-03-12
alex
;;
1671
2002-03-12
alex
*-atari*)
1672
2020-05-10
alex
os=mint
1673
2002-03-12
alex
;;
1674
2020-05-10
alex
*-wrs)
1675
2020-05-10
alex
os=vxworks
1676
2020-05-10
alex
;;
1677
2002-03-12
alex
*)
1678
2020-05-10
alex
os=none
1679
2002-03-12
alex
;;
1680
2002-03-12
alex
esac
1681
2020-01-02
alex
1682
2002-03-12
alex
fi
1683
2002-03-12
alex
1684
2020-01-02
alex
# Now, validate our (potentially fixed-up) OS.
1685
2020-01-02
alex
case $os in
1686
2020-01-02
alex
# Sometimes we do "kernel-abi", so those need to count as OSes.
1687
2020-01-02
alex
musl* | newlib* | uclibc*)
1688
2020-01-02
alex
;;
1689
2020-01-02
alex
# Likewise for "kernel-libc"
1690
2020-01-02
alex
eabi | eabihf | gnueabi | gnueabihf)
1691
2020-01-02
alex
;;
1692
2020-01-02
alex
# Now accept the basic system types.
1693
2020-01-02
alex
# The portable systems comes first.
1694
2020-01-02
alex
# Each alternative MUST end in a * to match a version number.
1695
2020-01-02
alex
gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1696
2020-01-02
alex
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
1697
2020-01-02
alex
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1698
2020-01-02
alex
| sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
1699
2020-01-02
alex
| hiux* | abug | nacl* | netware* | windows* \
1700
2020-01-02
alex
| os9* | macos* | osx* | ios* \
1701
2020-01-02
alex
| mpw* | magic* | mmixware* | mon960* | lnews* \
1702
2020-01-02
alex
| amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1703
2020-01-02
alex
| aos* | aros* | cloudabi* | sortix* | twizzler* \
1704
2020-01-02
alex
| nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1705
2020-01-02
alex
| clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1706
2020-01-02
alex
| mirbsd* | netbsd* | dicos* | openedition* | ose* \
1707
2020-01-02
alex
| bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \
1708
2020-01-02
alex
| ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
1709
2020-01-02
alex
| bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1710
2020-01-02
alex
| ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1711
2020-01-02
alex
| udi* | lites* | ieee* | go32* | aux* | hcos* \
1712
2020-01-02
alex
| chorusrdb* | cegcc* | glidix* \
1713
2020-01-02
alex
| cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1714
2020-01-02
alex
| midipix* | mingw32* | mingw64* | mint* \
1715
2020-01-02
alex
| uxpv* | beos* | mpeix* | udk* | moxiebox* \
1716
2020-01-02
alex
| interix* | uwin* | mks* | rhapsody* | darwin* \
1717
2020-01-02
alex
| openstep* | oskit* | conix* | pw32* | nonstopux* \
1718
2020-01-02
alex
| storm-chaos* | tops10* | tenex* | tops20* | its* \
1719
2020-01-02
alex
| os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
1720
2020-01-02
alex
| scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
1721
2020-01-02
alex
| powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1722
2020-01-02
alex
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
1723
2020-01-02
alex
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1724
2020-01-02
alex
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1725
2020-01-02
alex
| nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*)
1726
2020-01-02
alex
;;
1727
2020-01-02
alex
# This one is extra strict with allowed versions
1728
2020-01-02
alex
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1729
2020-01-02
alex
# Don't forget version if it is 3.2v4 or newer.
1730
2020-01-02
alex
;;
1731
2020-01-02
alex
none)
1732
2020-01-02
alex
;;
1733
2020-01-02
alex
*)
1734
2020-01-02
alex
echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1735
2020-01-02
alex
exit 1
1736
2020-01-02
alex
;;
1737
2020-01-02
alex
esac
1738
2020-01-02
alex
1739
2020-01-02
alex
# As a final step for OS-related things, validate the OS-kernel combination
1740
2020-01-02
alex
# (given a valid OS), if there is a kernel.
1741
2020-01-02
alex
case $kernel-$os in
1742
2020-01-02
alex
linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* | linux-musl* | linux-uclibc* )
1743
2020-01-02
alex
;;
1744
2020-01-02
alex
uclinux-uclibc* )
1745
2020-01-02
alex
;;
1746
2020-01-02
alex
-dietlibc* | -newlib* | -musl* | -uclibc* )
1747
2020-01-02
alex
# These are just libc implementations, not actual OSes, and thus
1748
2020-01-02
alex
# require a kernel.
1749
2020-01-02
alex
echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1750
2020-01-02
alex
exit 1
1751
2020-01-02
alex
;;
1752
2020-01-02
alex
kfreebsd*-gnu* | kopensolaris*-gnu*)
1753
2020-01-02
alex
;;
1754
2020-01-02
alex
nto-qnx*)
1755
2020-01-02
alex
;;
1756
2020-01-02
alex
os2-emx)
1757
2020-01-02
alex
;;
1758
2020-01-02
alex
*-eabi* | *-gnueabi*)
1759
2020-01-02
alex
;;
1760
2020-01-02
alex
-*)
1761
2020-01-02
alex
# Blank kernel with real OS is always fine.
1762
2020-01-02
alex
;;
1763
2020-01-02
alex
*-*)
1764
2020-01-02
alex
echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1765
2020-01-02
alex
exit 1
1766
2020-01-02
alex
;;
1767
2020-01-02
alex
esac
1768
2020-01-02
alex
1769
2002-03-12
alex
# Here we handle the case where we know the os, and the CPU type, but not the
1770
2002-03-12
alex
# manufacturer. We pick the logical manufacturer.
1771
2020-05-10
alex
case $vendor in
1772
2020-05-10
alex
unknown)
1773
2020-01-02
alex
case $cpu-$os in
1774
2020-01-02
alex
*-riscix*)
1775
2002-03-12
alex
vendor=acorn
1776
2002-03-12
alex
;;
1777
2020-01-02
alex
*-sunos*)
1778
2002-03-12
alex
vendor=sun
1779
2002-03-12
alex
;;
1780
2020-01-02
alex
*-cnk* | *-aix*)
1781
2002-03-12
alex
vendor=ibm
1782
2002-03-12
alex
;;
1783
2020-01-02
alex
*-beos*)
1784
2002-03-12
alex
vendor=be
1785
2002-03-12
alex
;;
1786
2020-01-02
alex
*-hpux*)
1787
2002-03-12
alex
vendor=hp
1788
2002-03-12
alex
;;
1789
2020-01-02
alex
*-mpeix*)
1790
2002-03-12
alex
vendor=hp
1791
2002-03-12
alex
;;
1792
2020-01-02
alex
*-hiux*)
1793
2002-03-12
alex
vendor=hitachi
1794
2002-03-12
alex
;;
1795
2020-01-02
alex
*-unos*)
1796
2002-03-12
alex
vendor=crds
1797
2002-03-12
alex
;;
1798
2020-01-02
alex
*-dgux*)
1799
2002-03-12
alex
vendor=dg
1800
2002-03-12
alex
;;
1801
2020-01-02
alex
*-luna*)
1802
2002-03-12
alex
vendor=omron
1803
2002-03-12
alex
;;
1804
2020-01-02
alex
*-genix*)
1805
2002-03-12
alex
vendor=ns
1806
2002-03-12
alex
;;
1807
2020-01-02
alex
*-clix*)
1808
2020-05-10
alex
vendor=intergraph
1809
2020-05-10
alex
;;
1810
2020-01-02
alex
*-mvs* | *-opened*)
1811
2002-03-12
alex
vendor=ibm
1812
2002-03-12
alex
;;
1813
2020-01-02
alex
*-os400*)
1814
2004-03-11
alex
vendor=ibm
1815
2004-03-11
alex
;;
1816
2020-01-02
alex
s390-* | s390x-*)
1817
2020-01-02
alex
vendor=ibm
1818
2020-01-02
alex
;;
1819
2020-01-02
alex
*-ptx*)
1820
2002-03-12
alex
vendor=sequent
1821
2002-03-12
alex
;;
1822
2020-01-02
alex
*-tpf*)
1823
2004-03-11
alex
vendor=ibm
1824
2004-03-11
alex
;;
1825
2020-01-02
alex
*-vxsim* | *-vxworks* | *-windiss*)
1826
2002-03-12
alex
vendor=wrs
1827
2002-03-12
alex
;;
1828
2020-01-02
alex
*-aux*)
1829
2002-03-12
alex
vendor=apple
1830
2002-03-12
alex
;;
1831
2020-01-02
alex
*-hms*)
1832
2002-03-12
alex
vendor=hitachi
1833
2002-03-12
alex
;;
1834
2020-01-02
alex
*-mpw* | *-macos*)
1835
2002-03-12
alex
vendor=apple
1836
2002-03-12
alex
;;
1837
2020-01-02
alex
*-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
1838
2002-03-12
alex
vendor=atari
1839
2002-03-12
alex
;;
1840
2020-01-02
alex
*-vos*)
1841
2002-03-12
alex
vendor=stratus
1842
2002-03-12
alex
;;
1843
2002-03-12
alex
esac
1844
2002-03-12
alex
;;
1845
2002-03-12
alex
esac
1846
2002-03-12
alex
1847
2020-01-02
alex
echo "$cpu-$vendor-${kernel:+$kernel-}$os"
1848
2005-10-15
alex
exit
1849
2002-03-12
alex
1850
2002-03-12
alex
# Local variables:
1851
2018-04-01
alex
# eval: (add-hook 'before-save-hook 'time-stamp)
1852
2002-03-12
alex
# time-stamp-start: "timestamp='"
1853
2002-03-12
alex
# time-stamp-format: "%:y-%02m-%02d"
1854
2002-03-12
alex
# time-stamp-end: "'"
1855
2002-03-12
alex
# End:
IRCNow