$basic_machine in`. The second case only needs to handle patterns
of the form *-*. We can drop some patterns without a change in
functionality.
Signed-off-by: Ben Elliston <bje@gnu.org>
in` arms. These patterns whitelist canonical CPU types that are
allowed with any vendor. The former arm accepts a provided vendor,
and the latter arm defaults a vendor when none is provided. Split
`case $basic_machine in` in to two, and then pre-default the
missing vendor so that only the explicit-vendor rules are needed.
Signed-off-by: Ben Elliston <bje@gnu.org>
for de-duplication. It causes Shellcheck to see more overlapping
patterns. Fix miscellaneous problems identified by Shellcheck.
* testsuite/config-sub.data: Adjust tests.
Signed-off-by: Ben Elliston <bje@gnu.org>
* config.guess (i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*): Use the
isainfo(1) command to guess what kind of system we have. Running
isainfo -b returns either "32" or "64".
that is executed via eval, with a POSIX shell function.
* Makefile (shellcheck): Ignore SC2039 diagnostics ("In POSIX sh,
RANDOM is undefined") and SC2172 ("Trapping signals by number is
not well defined. Prefer signal names").
"mint" and "clix".
I got rid of this forcing, as it can hide an error from the user and
is unlike how other OSes are handled. I added fallbacks for clix (MiNT
already had some) such that at least the following stil work:
$ ./config.sub clipper-clix
clipper-intergraph-clix
$ ./config.sub m68k-mint
m68k-atari-mint
$ ./config.sub mint
m68k-atari-mint
"clix" (as opposed to "nonsense-clix", ie. with at least one "-"
before) never worked, so I didn't add a short-hand to make it work
like "mint".
Signed-off-by: Ben Elliston <bje@gnu.org>
I'm not sure why this was originally added. It's certainly not needed
anymore because the OS will never be duplicated onto the send of the
`basic_machine`. If the user passed `unknown` or no vendor, this will
already be filled in. If they passed something more specific, it's
customary to respect that.
Signed-off-by: Ben Elliston <bje@gnu.org>
"wrs" is just a vendor that can be handled with all the other vendor
exceptions for two-component cases. `wrs) os=vxworks` can instead be
put with the other OS defaults down below.
Signed-off-by: Ben Elliston <bje@gnu.org>
Instead of just catching manufacturers as OSes across the board, catch
them just as the second of two components. This prevents nonsense
like:
$ ./config.sub amd64-unknown-ibm
x86_64-unknown-ibm-aix
Signed-off-by: Ben Elliston <bje@gnu.org>
$HOST_CC and $CC being undefined by using ${var-} style expansion.
(*:NetBSD:*:*): Likewise for $abi.
* testsuite/config-guess.sh: Run config.guess under `sh -eu'.