2 # Configuration validation subroutine script.
3 # Copyright 2021 Thomas E. Dickey
4 # Copyright 1992-2021 Free Software Foundation, Inc.
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
29 # Please send patches to <config-patches@gnu.org>.
31 # Configuration subroutine to validate and canonicalize a configuration type.
32 # Supply the specified configuration type as an argument.
33 # If it is invalid, we print an error message on stderr and exit with code 1.
34 # Otherwise, we print the canonical config type on stdout and succeed.
36 # You can get the latest version of this script from:
37 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
39 # This file is supposed to be the same for all GNU packages
40 # and recognize all the CPU types, system types and aliases
41 # that are meaningful with *any* GNU software.
42 # Each package is responsible for reporting which valid configurations
43 # it does not support. The user should be able to distinguish
44 # a failure to support a valid configuration from a meaningless
47 # The goal of this file is to map all the various variations of a given
48 # machine specification into a single specification in the form:
49 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
50 # or in some cases, the newer four-part form:
51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
52 # It is wrong to echo any other type of specification.
54 me=`echo "$0" | sed -e 's,.*/,,'`
57 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
59 Canonicalize a configuration name.
62 -h, --help print this help, then exit
63 -t, --time-stamp print date of last modification, then exit
64 -v, --version print version number, then exit
66 Report bugs and patches to <config-patches@gnu.org>."
69 GNU config.sub ($timestamp)
71 Copyright 1992-2021 Free Software Foundation, Inc.
73 This is free software; see the source for copying conditions. There is NO
74 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
77 Try \`$me --help' for more information."
80 while test $# -gt 0 ; do
82 --time-stamp | --time* | -t )
83 echo "$timestamp" ; exit ;;
85 echo "$version" ; exit ;;
87 echo "$usage"; exit ;;
88 -- ) # Stop option processing
90 - ) # Use stdin as input.
93 echo "$me: invalid option $1$help" >&2
97 # First pass through any local machine types.
107 0) echo "$me: missing argument$help" >&2
110 *) echo "$me: too many arguments$help" >&2
114 # Split fields of configuration type
115 # shellcheck disable=SC2162
116 IFS="-" read field1 field2 field3 field4 <<EOF
120 # Separate into logical components for further validation
123 echo Invalid configuration \`"$1"\': more than four components >&2
127 basic_machine=$field1-$field2
128 basic_os=$field3-$field4
131 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
133 maybe_os=$field2-$field3
135 nto-qnx* | linux-* | uclinux-uclibc* \
136 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
137 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
138 | storm-chaos* | os2-emx* | rtmk-nova*)
139 basic_machine=$field1
143 basic_machine=$field1-unknown
144 basic_os=linux-android
147 basic_machine=$field1-$field2
153 # A lone config we happen to match not fitting any pattern
154 case $field1-$field2 in
156 basic_machine=mips-dec
160 # Second component is usually, but not always the OS
162 # Prevent following clause from handling this valid os
164 basic_machine=$field1
168 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
169 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
170 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
171 | convergent* | ncr* | news | 32* | 3600* | 3100* \
172 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
173 | ultra | tti* | harris | dolphin | highlevel | gould \
174 | cbm | ns | masscomp | apple | axis | knuth | cray \
175 | microblaze* | sim | cisco \
176 | oki | wec | wrs | winbond)
177 basic_machine=$field1-$field2
181 basic_machine=$field1
189 # Convert single-component short-hands not valid as part of
190 # multi-component configurations.
193 basic_machine=i386-pc
197 basic_machine=a29k-amd
201 basic_machine=m68010-adobe
205 basic_machine=fx80-alliant
209 basic_machine=m68k-altos
213 basic_machine=a29k-none
217 basic_machine=580-amdahl
221 basic_machine=m68k-unknown
225 basic_machine=m68k-unknown
229 basic_machine=m68k-unknown
233 basic_machine=m68k-apollo
237 basic_machine=m68k-apollo
241 basic_machine=i386-pc
245 basic_machine=m68k-apple
249 basic_machine=ns32k-sequent
253 basic_machine=bfin-unknown
257 basic_machine=arm-unknown
261 basic_machine=c1-convex
265 basic_machine=c2-convex
269 basic_machine=c32-convex
273 basic_machine=c34-convex
277 basic_machine=c38-convex
281 basic_machine=j90-cray
285 basic_machine=m68k-crds
289 basic_machine=m68k-da30
292 decstation | pmax | pmin | dec3100 | decstatn)
293 basic_machine=mips-dec
297 basic_machine=m88k-motorola
301 basic_machine=i686-pc
305 basic_machine=i586-pc
309 basic_machine=a29k-amd
312 es1800 | OSE68k | ose68k | ose | OSE)
313 basic_machine=m68k-ericsson
317 basic_machine=tron-gmicro
321 basic_machine=i386-pc
325 basic_machine=h8300-hitachi
329 basic_machine=h8300-hitachi
333 basic_machine=h8500-hitachi
337 basic_machine=m88k-harris
341 basic_machine=m68k-hp
345 basic_machine=m68k-hp
349 basic_machine=hppa1.1-hp
353 basic_machine=hppa1.1-hp
357 basic_machine=i386-mach
361 basic_machine=m68k-isi
365 basic_machine=m68k-unknown
369 basic_machine=mips-mips
373 basic_machine=ns32k-utek
377 basic_machine=x86_64-pc
381 basic_machine=i686-pc
385 basic_machine=arm-unknown
389 basic_machine=m68k-rom68k
393 basic_machine=powerpc-unknown
397 basic_machine=moxie-unknown
401 basic_machine=i386-pc
405 basic_machine=i686-pc
409 basic_machine=i370-ibm
413 basic_machine=le32-unknown
417 basic_machine=i486-ncr
421 basic_machine=i386-pc
425 basic_machine=armv4l-rebel
428 news | news700 | news800 | news900)
429 basic_machine=m68k-sony
433 basic_machine=m68030-sony
437 basic_machine=v70-nec
441 basic_machine=m68k-harris
445 basic_machine=m88k-harris
449 basic_machine=i960-intel
453 basic_machine=i960-intel
457 basic_machine=mips-compaq
461 basic_machine=powerpc-ibm
465 basic_machine=m68000-ericsson
469 basic_machine=m68k-none
473 basic_machine=i860-intel
477 basic_machine=hppa-unknown
481 basic_machine=mipsallegrexel-sony
485 basic_machine=i586-unknown
489 basic_machine=x86_64-pc
493 basic_machine=i386-pc
497 basic_machine=m68k-rom68k
501 basic_machine=a29k-amd
505 basic_machine=mips-sei
509 basic_machine=i386-sequent
513 basic_machine=m68k-bull
517 basic_machine=m68k-tandem
521 basic_machine=i860-stratus
525 basic_machine=m68000-sun
529 basic_machine=m68000-sun
533 basic_machine=m68000-sun
537 basic_machine=m68k-sun
541 basic_machine=m68k-sun
545 basic_machine=m68k-sun
549 basic_machine=sparc-sun
553 basic_machine=sparc-sun
557 basic_machine=sparc-sun
561 basic_machine=sparc-sun
564 sun386 | sun386i | roadrunner)
565 basic_machine=i386-sun
569 basic_machine=sv1-cray
573 basic_machine=i386-sequent
577 basic_machine=alphaev5-cray
581 basic_machine=t90-cray
585 basic_machine=pdp10-xkl
589 basic_machine=s390x-ibm
593 basic_machine=a29k-amd
597 basic_machine=a29k-nyu
601 basic_machine=v810-nec
605 basic_machine=vax-dec
609 basic_machine=vax-dec
613 basic_machine=i386-pc
617 basic_machine=i960-wrs
621 basic_machine=m68k-wrs
625 basic_machine=a29k-wrs
629 basic_machine=i686-pc
633 basic_machine=ymp-cray
644 # Decode 1-component or ad-hoc basic machines
645 case $basic_machine in
646 # Here we handle the default manufacturer of certain CPU types. It is in
647 # some cases the only manufacturer, in others, it is the most popular.
677 # Recognize the various machine names and aliases which stand
678 # for a CPU type and a company and sometimes even an OS.
679 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
692 decsystem10* | dec10*)
697 decsystem20* | dec20*)
702 delta | 3300 | motorola-3300 | motorola-delta \
703 | 3300-motorola | delta-motorola)
712 encore | umax | mmax)
719 basic_os=${basic_os:-bsd}
734 hp3k9[0-9][0-9] | hp9[0-9][0-9])
738 hp9k2[0-9][0-9] | hp9k31[0-9])
746 hp9k6[0-9][0-9] | hp6[0-9][0-9])
750 hp9k7[0-79][0-9] | hp7[0-79][0-9])
754 hp9k78[0-9] | hp78[0-9])
755 # FIXME: really hppa2.0-hp
759 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
760 # FIXME: really hppa2.0-hp
764 hp9k8[0-9][13679] | hp8[0-9][13679])
768 hp9k8[0-9][0-9] | hp8[0-9][0-9])
773 cpu=`echo "$1" | sed -e 's/86.*/86/'`
778 cpu=`echo "$1" | sed -e 's/86.*/86/'`
783 cpu=`echo "$1" | sed -e 's/86.*/86/'`
788 cpu=`echo "$1" | sed -e 's/86.*/86/'`
795 basic_os=${basic_os:-unicos}
812 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
817 news-3600 | risc-news)
887 basic_os=${basic_os:-elf}
917 vendor=$basic_machine
921 vendor=`echo "$basic_machine" | sed 's/-.*//'`
925 # shellcheck disable=SC2162
926 IFS="-" read cpu vendor <<EOF
930 # We use `pc' rather than `unknown'
931 # because (1) that's what they normally are, and
932 # (2) the word "unknown" tends to confuse beginning users.
937 # These rules are duplicated from below for sake of the special case above;
938 # i.e. things that normalized to x86 arches should also default to "pc"
947 # Recognize the basic CPU types without company name.
954 unset -v basic_machine
956 # Decode basic machines in the full and proper CPU-Company form.
958 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
959 # some cases the only manufacturer, in others, it is the most popular.
962 basic_os=${basic_os:-unicosmp}
964 c90-unknown | c90-cray)
966 basic_os=${Basic_os:-unicos}
977 microblaze-unknown | microblazeel-unknown)
1001 xps-unknown | xps100-unknown)
1006 # Here we normalize CPU types with a missing or matching vendor
1007 dpx20-unknown | dpx20-bull)
1010 basic_os=${basic_os:-bosx}
1013 # Here we normalize CPU types irrespective of the vendor
1032 basic_os=${basic_os}"spe"
1044 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1054 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1057 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1060 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1072 ppcle-* | powerpclittle-*)
1078 ppc64le-* | powerpc64little-*)
1088 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1093 strongarm-* | thumb-*)
1105 xscale-* | xscalee[bl]-*)
1106 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1112 # Recognize the canonical CPU Types that limit and/or modify the
1113 # company names they are paired with.
1115 basic_os=${basic_os:-elf}
1117 crisv32-* | etraxfs*-*)
1126 basic_os=${basic_os:-elf}
1148 mipsallegrexel-sony)
1153 basic_os=${basic_os:-linux-gnu}
1157 # Recognize the canonical CPU types that are allowed with any
1162 | aarch64 | aarch64_be \
1164 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1165 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1166 | alphapca5[67] | alpha64pca5[67] \
1169 | arc | arceb | arc64 \
1170 | arm | arm[lb]e | arme[lb] | armv* \
1175 | bfin | bpf | bs2000 \
1176 | c[123]* | c30 | [cjt]90 | c4x \
1177 | c8051 | clipper | craynv | csky | cydra \
1178 | d10v | d30v | dlx | dsp16xx \
1179 | e2k | elxsi | epiphany \
1180 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1182 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1184 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1189 | loongarch32 | loongarch64 | loongarchx32 \
1190 | m32c | m32r | m32rle \
1191 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1192 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1193 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1194 | microblaze | microblazeel \
1195 | mips | mipsbe | mipseb | mipsel | mipsle \
1197 | mips64 | mips64eb | mips64el \
1198 | mips64octeon | mips64octeonel \
1199 | mips64orion | mips64orionel \
1200 | mips64r5900 | mips64r5900el \
1201 | mips64vr | mips64vrel \
1202 | mips64vr4100 | mips64vr4100el \
1203 | mips64vr4300 | mips64vr4300el \
1204 | mips64vr5000 | mips64vr5000el \
1205 | mips64vr5900 | mips64vr5900el \
1206 | mipsisa32 | mipsisa32el \
1207 | mipsisa32r2 | mipsisa32r2el \
1208 | mipsisa32r3 | mipsisa32r3el \
1209 | mipsisa32r5 | mipsisa32r5el \
1210 | mipsisa32r6 | mipsisa32r6el \
1211 | mipsisa64 | mipsisa64el \
1212 | mipsisa64r2 | mipsisa64r2el \
1213 | mipsisa64r3 | mipsisa64r3el \
1214 | mipsisa64r5 | mipsisa64r5el \
1215 | mipsisa64r6 | mipsisa64r6el \
1216 | mipsisa64sb1 | mipsisa64sb1el \
1217 | mipsisa64sr71k | mipsisa64sr71kel \
1218 | mipsr5900 | mipsr5900el \
1219 | mipstx39 | mipstx39el \
1221 | mn10200 | mn10300 \
1225 | nds32 | nds32le | nds32be \
1227 | nios | nios2 | nios2eb | nios2el \
1228 | none | np1 | ns16k | ns32k | nvptx \
1234 | pdp10 | pdp11 | pj | pjl | pn | power \
1235 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1238 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
1239 | rl78 | romp | rs6000 | rx \
1243 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1244 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1245 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1247 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1251 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1254 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1260 | x86 | x86_64 | xc16x | xgate | xps100 \
1261 | xstormy16 | xtensa* \
1267 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1274 # Here we canonicalize certain aliases for manufacturers.
1286 # Decode manufacturer-specific aliases for certain operating systems.
1288 if test x$basic_os != x
1291 # First recognize some ad-hoc caes, or perhaps split kernel-os, or else just
1296 os=`echo $basic_os | sed -e 's|gnu/linux|gnu|'`
1300 os=`echo $basic_os | sed -e 's|os2-emx|emx|'`
1304 os=`echo $basic_os | sed -e 's|nto-qnx|qnx|'`
1307 # shellcheck disable=SC2162
1308 IFS="-" read kernel os <<EOF
1312 # Default OS when just kernel was specified
1315 os=`echo $basic_os | sed -e 's|nto|qnx|'`
1319 os=`echo $basic_os | sed -e 's|linux|gnu|'`
1327 # Now, normalize the OS (knowing we just have one component, it's not a kernel,
1330 # First match some system type aliases that might get confused
1331 # with valid system types.
1332 # solaris* is a basic system type, with this one exception.
1339 solaris1 | solaris1.*)
1340 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1348 # es1800 is here to avoid being matched by es* (a different OS)
1352 # Some version numbers need modification
1369 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1393 # don't get caught up in next wildcard
1399 os=`echo "$os" | sed -e 's|mac|macos|'`
1408 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1411 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1443 # Preserve the version number of sinix5.
1445 os=`echo $os | sed -e 's|sinix|sysv|'`
1471 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1478 # Until real need of OS specific support for
1479 # particular features comes up, bare metal
1480 # configurations are quite functional.
1491 # No normalization, but not necessarily accepted, that comes below.
1497 # Here we handle the default operating systems that come with various machines.
1498 # The value should be what the vendor currently ships out the door with their
1499 # machine or put another way, the most popular os provided with the machine.
1501 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1502 # "-sun"), then you have to tell the case statement up towards the top
1503 # that MANUFACTURER isn't an operating system. Otherwise, code above
1504 # will signal an error saying that MANUFACTURER isn't an operating
1505 # system, and we'll never get to this point.
1508 case $cpu-$vendor in
1546 # This must come before the *-dec entry.
1580 *-tti) # must be before sparc entry or we get the wrong os.
1613 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1664 f30[01]-fujitsu | f700-fujitsu)
1689 # Now, validate our (potentially fixed-up) OS.
1691 # Sometimes we do "kernel-libc", so those need to count as OSes.
1692 musl* | newlib* | uclibc*)
1694 # Likewise for "kernel-abi"
1697 # VxWorks passes extra cpu info in the 4th filed.
1698 simlinux | simwindows | spe)
1700 # Now accept the basic system types.
1701 # The portable systems comes first.
1702 # Each alternative MUST end in a * to match a version number.
1703 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1704 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
1705 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1706 | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
1707 | hiux* | abug | nacl* | netware* | windows* \
1708 | os9* | macos* | osx* | ios* \
1709 | mpw* | magic* | mmixware* | mon960* | lnews* \
1710 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1711 | aos* | aros* | cloudabi* | sortix* | twizzler* \
1712 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1713 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1714 | mirbsd* | netbsd* | dicos* | openedition* | ose* \
1715 | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
1716 | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
1717 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1718 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1719 | udi* | lites* | ieee* | go32* | aux* | hcos* \
1720 | chorusrdb* | cegcc* | glidix* | serenity* \
1721 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1722 | midipix* | mingw32* | mingw64* | mint* \
1723 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1724 | interix* | uwin* | mks* | rhapsody* | darwin* \
1725 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1726 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1727 | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
1728 | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
1729 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1730 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1731 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1732 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1733 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*)
1735 # This one is extra strict with allowed versions
1736 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1737 # Don't forget version if it is 3.2v4 or newer.
1742 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1747 # As a final step for OS-related things, validate the OS-kernel combination
1748 # (given a valid OS), if there is a kernel.
1750 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* | linux-musl* | linux-uclibc* )
1754 -dietlibc* | -newlib* | -musl* | -uclibc* )
1755 # These are just libc implementations, not actual OSes, and thus
1757 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1760 kfreebsd*-gnu* | kopensolaris*-gnu*)
1762 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1768 *-eabi* | *-gnueabi*)
1771 # Blank kernel with real OS is always fine.
1774 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1779 # Here we handle the case where we know the os, and the CPU type, but not the
1780 # manufacturer. We pick the logical manufacturer.
1835 *-vxsim* | *-vxworks* | *-windiss*)
1847 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
1857 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
1861 # eval: (add-hook 'before-save-hook 'time-stamp)
1862 # time-stamp-start: "timestamp='"
1863 # time-stamp-format: "%:y-%02m-%02d"
1864 # time-stamp-end: "'"