Mercurial > hg > early-roguelike
annotate build-aux/config.sub @ 317:aab761616489 default tip
Rearrange some Autoconf files.
Autoconf was failing to detect install-sh at the top level and needed
some explicit directions. It also wants config.guess and config.sub to
be provided too.
A few other macros have also been updated.
| author | John "Elwin" Edwards |
|---|---|
| date | Tue, 05 Sep 2023 20:05:24 -0400 |
| parents | |
| children |
| rev | line source |
|---|---|
| 317 | 1 #!/usr/bin/sh |
| 2 # Configuration validation subroutine script. | |
| 3 # Copyright 1992-2022 Free Software Foundation, Inc. | |
| 4 | |
| 5 # shellcheck disable=SC2006,SC2268 # see below for rationale | |
| 6 | |
| 7 timestamp='2022-01-03' | |
| 8 | |
| 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 | |
| 11 # the Free Software Foundation, either version 3 of the License, or | |
| 12 # (at your option) any later version. | |
| 13 # | |
| 14 # This program is distributed in the hope that it will be useful, but | |
| 15 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 17 # General Public License for more details. | |
| 18 # | |
| 19 # You should have received a copy of the GNU General Public License | |
| 20 # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
| 21 # | |
| 22 # As a special exception to the GNU General Public License, if you | |
| 23 # distribute this file as part of a program that contains a | |
| 24 # configuration script generated by Autoconf, you may include it under | |
| 25 # the same distribution terms that you use for the rest of that | |
| 26 # program. This Exception is an additional permission under section 7 | |
| 27 # of the GNU General Public License, version 3 ("GPLv3"). | |
| 28 | |
| 29 | |
| 30 # Please send patches to <config-patches@gnu.org>. | |
| 31 # | |
| 32 # Configuration subroutine to validate and canonicalize a configuration type. | |
| 33 # Supply the specified configuration type as an argument. | |
| 34 # If it is invalid, we print an error message on stderr and exit with code 1. | |
| 35 # Otherwise, we print the canonical config type on stdout and succeed. | |
| 36 | |
| 37 # You can get the latest version of this script from: | |
| 38 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub | |
| 39 | |
| 40 # This file is supposed to be the same for all GNU packages | |
| 41 # and recognize all the CPU types, system types and aliases | |
| 42 # that are meaningful with *any* GNU software. | |
| 43 # Each package is responsible for reporting which valid configurations | |
| 44 # it does not support. The user should be able to distinguish | |
| 45 # a failure to support a valid configuration from a meaningless | |
| 46 # configuration. | |
| 47 | |
| 48 # The goal of this file is to map all the various variations of a given | |
| 49 # machine specification into a single specification in the form: | |
| 50 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | |
| 51 # or in some cases, the newer four-part form: | |
| 52 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | |
| 53 # It is wrong to echo any other type of specification. | |
| 54 | |
| 55 # The "shellcheck disable" line above the timestamp inhibits complaints | |
| 56 # about features and limitations of the classic Bourne shell that were | |
| 57 # superseded or lifted in POSIX. However, this script identifies a wide | |
| 58 # variety of pre-POSIX systems that do not have POSIX shells at all, and | |
| 59 # even some reasonably current systems (Solaris 10 as case-in-point) still | |
| 60 # have a pre-POSIX /bin/sh. | |
| 61 | |
| 62 me=`echo "$0" | sed -e 's,.*/,,'` | |
| 63 | |
| 64 usage="\ | |
| 65 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS | |
| 66 | |
| 67 Canonicalize a configuration name. | |
| 68 | |
| 69 Options: | |
| 70 -h, --help print this help, then exit | |
| 71 -t, --time-stamp print date of last modification, then exit | |
| 72 -v, --version print version number, then exit | |
| 73 | |
| 74 Report bugs and patches to <config-patches@gnu.org>." | |
| 75 | |
| 76 version="\ | |
| 77 GNU config.sub ($timestamp) | |
| 78 | |
| 79 Copyright 1992-2022 Free Software Foundation, Inc. | |
| 80 | |
| 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." | |
| 83 | |
| 84 help=" | |
| 85 Try \`$me --help' for more information." | |
| 86 | |
| 87 # Parse command line | |
| 88 while test $# -gt 0 ; do | |
| 89 case $1 in | |
| 90 --time-stamp | --time* | -t ) | |
| 91 echo "$timestamp" ; exit ;; | |
| 92 --version | -v ) | |
|
aab761616489
Rearrange some Autoconf files.
John "Elwin" Edwards |
