Mercurial > dwindows
annotate config.guess @ 3005:522ef24b0aba default tip
GTK4: Fix even more deprecation warnings in GTK 4.10 and later.
Migrate to GtkAlertDialog for 4.10 from GtkMessageDialog.
Still need to center the dialog or something.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 20 Dec 2023 05:17:54 +0000 |
parents | 83c17a84bc27 |
children |
rev | line source |
---|---|
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1 #!/usr/bin/sh |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2 # Attempt to guess a canonical system name. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
3 # Copyright 1992-2022 Free Software Foundation, Inc. |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
4 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
5 # shellcheck disable=SC2006,SC2268 # see below for rationale |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
6 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
7 timestamp='2022-05-25' |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
8 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
9 # This file is free software; you can redistribute it and/or modify it |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
10 # under the terms of the GNU General Public License as published by |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
11 # the Free Software Foundation, either version 3 of the License, or |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
12 # (at your option) any later version. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
13 # |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
14 # This program is distributed in the hope that it will be useful, but |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
15 # WITHOUT ANY WARRANTY; without even the implied warranty of |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
17 # General Public License for more details. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
18 # |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
19 # You should have received a copy of the GNU General Public License |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
20 # along with this program; if not, see <https://www.gnu.org/licenses/>. |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
21 # |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
22 # As a special exception to the GNU General Public License, if you |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
23 # distribute this file as part of a program that contains a |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
24 # configuration script generated by Autoconf, you may include it under |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
25 # the same distribution terms that you use for the rest of that |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
26 # program. This Exception is an additional permission under section 7 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
27 # of the GNU General Public License, version 3 ("GPLv3"). |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
28 # |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
29 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
30 # |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
31 # You can get the latest version of this script from: |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
32 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
33 # |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
34 # Please send patches to <config-patches@gnu.org>. |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
35 |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
36 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
37 # The "shellcheck disable" line above the timestamp inhibits complaints |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
38 # about features and limitations of the classic Bourne shell that were |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
39 # superseded or lifted in POSIX. However, this script identifies a wide |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
40 # variety of pre-POSIX systems that do not have POSIX shells at all, and |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
41 # even some reasonably current systems (Solaris 10 as case-in-point) still |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
42 # have a pre-POSIX /bin/sh. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
43 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
44 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
45 me=`echo "$0" | sed -e 's,.*/,,'` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
46 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
47 usage="\ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
48 Usage: $0 [OPTION] |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
49 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
50 Output the configuration name of the system \`$me' is run on. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
51 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
52 Options: |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
53 -h, --help print this help, then exit |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
54 -t, --time-stamp print date of last modification, then exit |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
55 -v, --version print version number, then exit |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
56 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
57 Report bugs and patches to <config-patches@gnu.org>." |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
58 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
59 version="\ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
60 GNU config.guess ($timestamp) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
61 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
62 Originally written by Per Bothner. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
63 Copyright 1992-2022 Free Software Foundation, Inc. |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
64 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
65 This is free software; see the source for copying conditions. There is NO |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
66 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
67 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
68 help=" |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
69 Try \`$me --help' for more information." |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
70 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
71 # Parse command line |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
72 while test $# -gt 0 ; do |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
73 case $1 in |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
74 --time-stamp | --time* | -t ) |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
75 echo "$timestamp" ; exit ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
76 --version | -v ) |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
77 echo "$version" ; exit ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
78 --help | --h* | -h ) |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
79 echo "$usage"; exit ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
80 -- ) # Stop option processing |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
81 shift; break ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
82 - ) # Use stdin as input. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
83 break ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
84 -* ) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
85 echo "$me: invalid option $1$help" >&2 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
86 exit 1 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
87 * ) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
88 break ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
89 esac |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
90 done |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
91 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
92 if test $# != 0; then |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
93 echo "$me: too many arguments$help" >&2 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
94 exit 1 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
95 fi |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
96 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
97 # Just in case it came from the environment. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
98 GUESS= |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
99 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
100 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
101 # compiler to aid in system detection is discouraged as it requires |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
102 # temporary files to be created and, as you can see below, it is a |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
103 # headache to deal with in a portable fashion. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
104 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
105 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
106 # use `HOST_CC' if defined, but it is deprecated. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
107 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
108 # Portable tmp directory creation inspired by the Autoconf team. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
109 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
110 tmp= |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
111 # shellcheck disable=SC2172 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
112 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
113 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
114 set_cc_for_build() { |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
115 # prevent multiple calls if $tmp is already set |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
116 test "$tmp" && return 0 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
117 : "${TMPDIR=/tmp}" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
118 # shellcheck disable=SC2039,SC3028 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
119 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
120 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
121 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
122 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
123 dummy=$tmp/dummy |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
124 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
125 ,,) echo "int x;" > "$dummy.c" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
126 for driver in cc gcc c89 c99 ; do |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
127 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
128 CC_FOR_BUILD=$driver |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
129 break |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
130 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
131 done |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
132 if test x"$CC_FOR_BUILD" = x ; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
133 CC_FOR_BUILD=no_compiler_found |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
134 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
135 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
136 ,,*) CC_FOR_BUILD=$CC ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
137 ,*,*) CC_FOR_BUILD=$HOST_CC ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
138 esac |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
139 } |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
140 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
141 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
142 # (ghazi@noc.rutgers.edu 1994-08-24) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
143 if test -f /.attbin/uname ; then |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
144 PATH=$PATH:/.attbin ; export PATH |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
145 fi |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
146 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
147 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
148 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
149 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
150 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
151 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
152 case $UNAME_SYSTEM in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
153 Linux|GNU|GNU/*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
154 LIBC=unknown |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
155 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
156 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
157 cat <<-EOF > "$dummy.c" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
158 #include <features.h> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
159 #if defined(__UCLIBC__) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
160 LIBC=uclibc |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
161 #elif defined(__dietlibc__) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
162 LIBC=dietlibc |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
163 #elif defined(__GLIBC__) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
164 LIBC=gnu |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
165 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
166 #include <stdarg.h> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
167 /* First heuristic to detect musl libc. */ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
168 #ifdef __DEFINED_va_list |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
169 LIBC=musl |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
170 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
171 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
172 EOF |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
173 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
174 eval "$cc_set_libc" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
175 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
176 # Second heuristic to detect musl libc. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
177 if [ "$LIBC" = unknown ] && |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
178 command -v ldd >/dev/null && |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
179 ldd --version 2>&1 | grep -q ^musl; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
180 LIBC=musl |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
181 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
182 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
183 # If the system lacks a compiler, then just pick glibc. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
184 # We could probably try harder. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
185 if [ "$LIBC" = unknown ]; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
186 LIBC=gnu |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
187 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
188 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
189 esac |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
190 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
191 # Note: order is significant - the case branches are not exclusive. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
192 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
193 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
194 *:NetBSD:*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
195 # NetBSD (nbsd) targets should (where applicable) match one or |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
196 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
197 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
198 # switched to ELF, *-*-netbsd* would select the old |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
199 # object file format. This provides both forward |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
200 # compatibility and a consistent mechanism for selecting the |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
201 # object file format. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
202 # |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
203 # Note: NetBSD doesn't particularly care about the vendor |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
204 # portion of the name. We always set it to "unknown". |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
205 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
206 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
207 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
208 echo unknown)` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
209 case $UNAME_MACHINE_ARCH in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
210 aarch64eb) machine=aarch64_be-unknown ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
211 armeb) machine=armeb-unknown ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
212 arm*) machine=arm-unknown ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
213 sh3el) machine=shl-unknown ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
214 sh3eb) machine=sh-unknown ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
215 sh5el) machine=sh5le-unknown ;; |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
216 earmv*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
217 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
218 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
219 machine=${arch}${endian}-unknown |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
220 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
221 *) machine=$UNAME_MACHINE_ARCH-unknown ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
222 esac |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
223 # The Operating System including object format, if it has switched |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
224 # to ELF recently (or will in the future) and ABI. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
225 case $UNAME_MACHINE_ARCH in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
226 earm*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
227 os=netbsdelf |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
228 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
229 arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
230 set_cc_for_build |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
231 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
232 | grep -q __ELF__ |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
233 then |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
234 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
235 # Return netbsd for either. FIX? |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
236 os=netbsd |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
237 else |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
238 os=netbsdelf |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
239 fi |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
240 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
241 *) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
242 os=netbsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
243 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
244 esac |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
245 # Determine ABI tags. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
246 case $UNAME_MACHINE_ARCH in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
247 earm*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
248 expr='s/^earmv[0-9]/-eabi/;s/eb$//' |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
249 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
250 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
251 esac |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
252 # The OS release |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
253 # Debian GNU/NetBSD machines have a different userland, and |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
254 # thus, need a distinct triplet. However, they do not need |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
255 # kernel version information, so it can be replaced with a |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
256 # suitable tag, in the style of linux-gnu. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
257 case $UNAME_VERSION in |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
258 Debian*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
259 release='-gnu' |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
260 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
261 *) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
262 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
263 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
264 esac |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
265 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
266 # contains redundant information, the shorter form: |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
267 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
268 GUESS=$machine-${os}${release}${abi-} |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
269 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
270 *:Bitrig:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
271 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
272 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
273 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
274 *:OpenBSD:*:*) |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
275 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
276 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
277 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
278 *:SecBSD:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
279 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
280 GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
281 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
282 *:LibertyBSD:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
283 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
284 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
285 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
286 *:MidnightBSD:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
287 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
288 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
289 *:ekkoBSD:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
290 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
291 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
292 *:SolidBSD:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
293 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
294 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
295 *:OS108:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
296 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
297 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
298 macppc:MirBSD:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
299 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
300 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
301 *:MirBSD:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
302 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
303 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
304 *:Sortix:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
305 GUESS=$UNAME_MACHINE-unknown-sortix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
306 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
307 *:Twizzler:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
308 GUESS=$UNAME_MACHINE-unknown-twizzler |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
309 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
310 *:Redox:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
311 GUESS=$UNAME_MACHINE-unknown-redox |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
312 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
313 mips:OSF1:*.*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
314 GUESS=mips-dec-osf1 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
315 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
316 alpha:OSF1:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
317 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
318 trap '' 0 |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
319 case $UNAME_RELEASE in |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
320 *4.0) |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
321 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
322 ;; |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
323 *5.*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
324 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
325 ;; |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
326 esac |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
327 # According to Compaq, /usr/sbin/psrinfo has been available on |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
328 # OSF/1 and Tru64 systems produced since 1995. I hope that |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
329 # covers most systems running today. This code pipes the CPU |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
330 # types through head -n 1, so we only detect the type of CPU 0. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
331 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
332 case $ALPHA_CPU_TYPE in |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
333 "EV4 (21064)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
334 UNAME_MACHINE=alpha ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
335 "EV4.5 (21064)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
336 UNAME_MACHINE=alpha ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
337 "LCA4 (21066/21068)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
338 UNAME_MACHINE=alpha ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
339 "EV5 (21164)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
340 UNAME_MACHINE=alphaev5 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
341 "EV5.6 (21164A)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
342 UNAME_MACHINE=alphaev56 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
343 "EV5.6 (21164PC)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
344 UNAME_MACHINE=alphapca56 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
345 "EV5.7 (21164PC)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
346 UNAME_MACHINE=alphapca57 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
347 "EV6 (21264)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
348 UNAME_MACHINE=alphaev6 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
349 "EV6.7 (21264A)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
350 UNAME_MACHINE=alphaev67 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
351 "EV6.8CB (21264C)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
352 UNAME_MACHINE=alphaev68 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
353 "EV6.8AL (21264B)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
354 UNAME_MACHINE=alphaev68 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
355 "EV6.8CX (21264D)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
356 UNAME_MACHINE=alphaev68 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
357 "EV6.9A (21264/EV69A)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
358 UNAME_MACHINE=alphaev69 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
359 "EV7 (21364)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
360 UNAME_MACHINE=alphaev7 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
361 "EV7.9 (21364A)") |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
362 UNAME_MACHINE=alphaev79 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
363 esac |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
364 # A Pn.n version is a patched version. |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
365 # A Vn.n version is a released version. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
366 # A Tn.n version is a released field test version. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
367 # A Xn.n version is an unreleased experimental baselevel. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
368 # 1.2 uses "1.2" for uname -r. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
369 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
370 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
371 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
372 Amiga*:UNIX_System_V:4.0:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
373 GUESS=m68k-unknown-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
374 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
375 *:[Aa]miga[Oo][Ss]:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
376 GUESS=$UNAME_MACHINE-unknown-amigaos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
377 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
378 *:[Mm]orph[Oo][Ss]:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
379 GUESS=$UNAME_MACHINE-unknown-morphos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
380 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
381 *:OS/390:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
382 GUESS=i370-ibm-openedition |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
383 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
384 *:z/VM:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
385 GUESS=s390-ibm-zvmoe |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
386 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
387 *:OS400:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
388 GUESS=powerpc-ibm-os400 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
389 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
390 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
391 GUESS=arm-acorn-riscix$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
392 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
393 arm*:riscos:*:*|arm*:RISCOS:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
394 GUESS=arm-unknown-riscos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
395 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
396 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
397 GUESS=hppa1.1-hitachi-hiuxmpp |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
398 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
399 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
400 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
401 case `(/bin/universe) 2>/dev/null` in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
402 att) GUESS=pyramid-pyramid-sysv3 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
403 *) GUESS=pyramid-pyramid-bsd ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
404 esac |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
405 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
406 NILE*:*:*:dcosx) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
407 GUESS=pyramid-pyramid-svr4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
408 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
409 DRS?6000:unix:4.0:6*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
410 GUESS=sparc-icl-nx6 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
411 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
412 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
413 case `/usr/bin/uname -p` in |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
414 sparc) GUESS=sparc-icl-nx7 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
415 esac |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
416 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
417 s390x:SunOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
418 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
419 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
420 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
421 sun4H:SunOS:5.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
422 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
423 GUESS=sparc-hal-solaris2$SUN_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
424 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
425 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
426 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
427 GUESS=sparc-sun-solaris2$SUN_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
428 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
429 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
430 GUESS=i386-pc-auroraux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
431 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
432 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
433 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
434 SUN_ARCH=i386 |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
435 # If there is a compiler, see if it is configured for 64-bit objects. |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
436 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
437 # This test works for both compilers. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
438 if test "$CC_FOR_BUILD" != no_compiler_found; then |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
439 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
440 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
441 grep IS_64BIT_ARCH >/dev/null |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
442 then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
443 SUN_ARCH=x86_64 |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
444 fi |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
445 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
446 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
447 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
448 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
449 sun4*:SunOS:6*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
450 # According to config.sub, this is the proper way to canonicalize |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
451 # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
452 # it's likely to be more like Solaris than SunOS4. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
453 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
454 GUESS=sparc-sun-solaris3$SUN_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
455 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
456 sun4*:SunOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
457 case `/usr/bin/arch -k` in |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
458 Series*|S4*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
459 UNAME_RELEASE=`uname -v` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
460 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
461 esac |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
462 # Japanese Language versions have a version number like `4.1.3-JL'. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
463 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
464 GUESS=sparc-sun-sunos$SUN_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
465 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
466 sun3*:SunOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
467 GUESS=m68k-sun-sunos$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
468 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
469 sun*:*:4.2BSD:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
470 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
471 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
472 case `/bin/arch` in |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
473 sun3) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
474 GUESS=m68k-sun-sunos$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
475 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
476 sun4) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
477 GUESS=sparc-sun-sunos$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
478 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
479 esac |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
480 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
481 aushp:SunOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
482 GUESS=sparc-auspex-sunos$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
483 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
484 # The situation for MiNT is a little confusing. The machine name |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
485 # can be virtually everything (everything which is not |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
486 # "atarist" or "atariste" at least should have a processor |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
487 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
488 # to the lowercase version "mint" (or "freemint"). Finally |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
489 # the system name "TOS" denotes a system which is actually not |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
490 # MiNT. But MiNT is downward compatible to TOS, so this should |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
491 # be no problem. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
492 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
493 GUESS=m68k-atari-mint$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
494 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
495 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
496 GUESS=m68k-atari-mint$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
497 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
498 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
499 GUESS=m68k-atari-mint$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
500 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
501 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
502 GUESS=m68k-milan-mint$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
503 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
504 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
505 GUESS=m68k-hades-mint$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
506 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
507 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
508 GUESS=m68k-unknown-mint$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
509 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
510 m68k:machten:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
511 GUESS=m68k-apple-machten$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
512 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
513 powerpc:machten:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
514 GUESS=powerpc-apple-machten$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
515 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
516 RISC*:Mach:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
517 GUESS=mips-dec-mach_bsd4.3 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
518 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
519 RISC*:ULTRIX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
520 GUESS=mips-dec-ultrix$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
521 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
522 VAX*:ULTRIX*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
523 GUESS=vax-dec-ultrix$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
524 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
525 2020:CLIX:*:* | 2430:CLIX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
526 GUESS=clipper-intergraph-clix$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
527 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
528 mips:*:*:UMIPS | mips:*:*:RISCos) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
529 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
530 sed 's/^ //' << EOF > "$dummy.c" |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
531 #ifdef __cplusplus |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
532 #include <stdio.h> /* for printf() prototype */ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
533 int main (int argc, char *argv[]) { |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
534 #else |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
535 int main (argc, argv) int argc; char *argv[]; { |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
536 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
537 #if defined (host_mips) && defined (MIPSEB) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
538 #if defined (SYSTYPE_SYSV) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
539 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
540 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
541 #if defined (SYSTYPE_SVR4) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
542 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
543 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
544 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
545 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
546 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
547 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
548 exit (-1); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
549 } |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
550 EOF |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
551 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
552 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
553 SYSTEM_NAME=`"$dummy" "$dummyarg"` && |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
554 { echo "$SYSTEM_NAME"; exit; } |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
555 GUESS=mips-mips-riscos$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
556 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
557 Motorola:PowerMAX_OS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
558 GUESS=powerpc-motorola-powermax |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
559 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
560 Motorola:*:4.3:PL8-*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
561 GUESS=powerpc-harris-powermax |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
562 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
563 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
564 GUESS=powerpc-harris-powermax |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
565 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
566 Night_Hawk:Power_UNIX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
567 GUESS=powerpc-harris-powerunix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
568 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
569 m88k:CX/UX:7*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
570 GUESS=m88k-harris-cxux7 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
571 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
572 m88k:*:4*:R4*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
573 GUESS=m88k-motorola-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
574 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
575 m88k:*:3*:R3*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
576 GUESS=m88k-motorola-sysv3 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
577 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
578 AViiON:dgux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
579 # DG/UX returns AViiON for all architectures |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
580 UNAME_PROCESSOR=`/usr/bin/uname -p` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
581 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
582 then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
583 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
584 test "$TARGET_BINARY_INTERFACE"x = x |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
585 then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
586 GUESS=m88k-dg-dgux$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
587 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
588 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
589 fi |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
590 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
591 GUESS=i586-dg-dgux$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
592 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
593 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
594 M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
595 GUESS=m88k-dolphin-sysv3 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
596 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
597 M88*:*:R3*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
598 # Delta 88k system running SVR3 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
599 GUESS=m88k-motorola-sysv3 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
600 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
601 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
602 GUESS=m88k-tektronix-sysv3 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
603 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
604 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
605 GUESS=m68k-tektronix-bsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
606 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
607 *:IRIX*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
608 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
609 GUESS=mips-sgi-irix$IRIX_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
610 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
611 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
612 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
613 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
614 i*86:AIX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
615 GUESS=i386-ibm-aix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
616 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
617 ia64:AIX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
618 if test -x /usr/bin/oslevel ; then |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
619 IBM_REV=`/usr/bin/oslevel` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
620 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
621 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
622 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
623 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
624 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
625 *:AIX:2:3) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
626 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
627 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
628 sed 's/^ //' << EOF > "$dummy.c" |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
629 #include <sys/systemcfg.h> |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
630 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
631 main() |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
632 { |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
633 if (!__power_pc()) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
634 exit(1); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
635 puts("powerpc-ibm-aix3.2.5"); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
636 exit(0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
637 } |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
638 EOF |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
639 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
640 then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
641 GUESS=$SYSTEM_NAME |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
642 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
643 GUESS=rs6000-ibm-aix3.2.5 |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
644 fi |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
645 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
646 GUESS=rs6000-ibm-aix3.2.4 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
647 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
648 GUESS=rs6000-ibm-aix3.2 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
649 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
650 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
651 *:AIX:*:[4567]) |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
652 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
653 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
654 IBM_ARCH=rs6000 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
655 else |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
656 IBM_ARCH=powerpc |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
657 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
658 if test -x /usr/bin/lslpp ; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
659 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
660 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
661 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
662 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
663 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
664 GUESS=$IBM_ARCH-ibm-aix$IBM_REV |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
665 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
666 *:AIX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
667 GUESS=rs6000-ibm-aix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
668 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
669 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
670 GUESS=romp-ibm-bsd4.4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
671 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
672 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
673 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
674 ;; # report: romp-ibm BSD 4.3 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
675 *:BOSX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
676 GUESS=rs6000-bull-bosx |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
677 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
678 DPX/2?00:B.O.S.:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
679 GUESS=m68k-bull-sysv3 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
680 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
681 9000/[34]??:4.3bsd:1.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
682 GUESS=m68k-hp-bsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
683 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
684 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
685 GUESS=m68k-hp-bsd4.4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
686 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
687 9000/[34678]??:HP-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
688 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
689 case $UNAME_MACHINE in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
690 9000/31?) HP_ARCH=m68000 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
691 9000/[34]??) HP_ARCH=m68k ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
692 9000/[678][0-9][0-9]) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
693 if test -x /usr/bin/getconf; then |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
694 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
695 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
696 case $sc_cpu_version in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
697 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
698 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
699 532) # CPU_PA_RISC2_0 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
700 case $sc_kernel_bits in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
701 32) HP_ARCH=hppa2.0n ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
702 64) HP_ARCH=hppa2.0w ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
703 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
704 esac ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
705 esac |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
706 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
707 if test "$HP_ARCH" = ""; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
708 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
709 sed 's/^ //' << EOF > "$dummy.c" |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
710 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
711 #define _HPUX_SOURCE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
712 #include <stdlib.h> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
713 #include <unistd.h> |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
714 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
715 int main () |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
716 { |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
717 #if defined(_SC_KERNEL_BITS) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
718 long bits = sysconf(_SC_KERNEL_BITS); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
719 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
720 long cpu = sysconf (_SC_CPU_VERSION); |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
721 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
722 switch (cpu) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
723 { |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
724 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
725 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
726 case CPU_PA_RISC2_0: |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
727 #if defined(_SC_KERNEL_BITS) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
728 switch (bits) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
729 { |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
730 case 64: puts ("hppa2.0w"); break; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
731 case 32: puts ("hppa2.0n"); break; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
732 default: puts ("hppa2.0"); break; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
733 } break; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
734 #else /* !defined(_SC_KERNEL_BITS) */ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
735 puts ("hppa2.0"); break; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
736 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
737 default: puts ("hppa1.0"); break; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
738 } |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
739 exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
740 } |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
741 EOF |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
742 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
743 test -z "$HP_ARCH" && HP_ARCH=hppa |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
744 fi ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
745 esac |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
746 if test "$HP_ARCH" = hppa2.0w |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
747 then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
748 set_cc_for_build |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
749 |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
750 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
751 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
752 # generating 64-bit code. GNU and HP use different nomenclature: |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
753 # |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
754 # $ CC_FOR_BUILD=cc ./config.guess |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
755 # => hppa2.0w-hp-hpux11.23 |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
756 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
757 # => hppa64-hp-hpux11.23 |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
758 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
759 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
760 grep -q __LP64__ |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
761 then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
762 HP_ARCH=hppa2.0w |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
763 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
764 HP_ARCH=hppa64 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
765 fi |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
766 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
767 GUESS=$HP_ARCH-hp-hpux$HPUX_REV |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
768 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
769 ia64:HP-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
770 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
771 GUESS=ia64-hp-hpux$HPUX_REV |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
772 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
773 3050*:HI-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
774 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
775 sed 's/^ //' << EOF > "$dummy.c" |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
776 #include <unistd.h> |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
777 int |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
778 main () |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
779 { |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
780 long cpu = sysconf (_SC_CPU_VERSION); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
781 /* The order matters, because CPU_IS_HP_MC68K erroneously returns |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
782 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
783 results, however. */ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
784 if (CPU_IS_PA_RISC (cpu)) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
785 { |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
786 switch (cpu) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
787 { |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
788 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
789 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
790 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
791 default: puts ("hppa-hitachi-hiuxwe2"); break; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
792 } |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
793 } |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
794 else if (CPU_IS_HP_MC68K (cpu)) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
795 puts ("m68k-hitachi-hiuxwe2"); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
796 else puts ("unknown-hitachi-hiuxwe2"); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
797 exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
798 } |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
799 EOF |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
800 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
801 { echo "$SYSTEM_NAME"; exit; } |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
802 GUESS=unknown-hitachi-hiuxwe2 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
803 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
804 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
805 GUESS=hppa1.1-hp-bsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
806 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
807 9000/8??:4.3bsd:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
808 GUESS=hppa1.0-hp-bsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
809 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
810 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
811 GUESS=hppa1.0-hp-mpeix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
812 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
813 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
814 GUESS=hppa1.1-hp-osf |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
815 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
816 hp8??:OSF1:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
817 GUESS=hppa1.0-hp-osf |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
818 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
819 i*86:OSF1:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
820 if test -x /usr/sbin/sysversion ; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
821 GUESS=$UNAME_MACHINE-unknown-osf1mk |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
822 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
823 GUESS=$UNAME_MACHINE-unknown-osf1 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
824 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
825 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
826 parisc*:Lites*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
827 GUESS=hppa1.1-hp-lites |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
828 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
829 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
830 GUESS=c1-convex-bsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
831 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
832 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
833 if getsysinfo -f scalar_acc |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
834 then echo c32-convex-bsd |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
835 else echo c2-convex-bsd |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
836 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
837 exit ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
838 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
839 GUESS=c34-convex-bsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
840 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
841 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
842 GUESS=c38-convex-bsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
843 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
844 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
845 GUESS=c4-convex-bsd |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
846 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
847 CRAY*Y-MP:*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
848 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
849 GUESS=ymp-cray-unicos$CRAY_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
850 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
851 CRAY*[A-Z]90:*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
852 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
853 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
854 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
855 -e 's/\.[^.]*$/.X/' |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
856 exit ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
857 CRAY*TS:*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
858 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
859 GUESS=t90-cray-unicos$CRAY_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
860 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
861 CRAY*T3E:*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
862 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
863 GUESS=alphaev5-cray-unicosmk$CRAY_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
864 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
865 CRAY*SV1:*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
866 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
867 GUESS=sv1-cray-unicos$CRAY_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
868 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
869 *:UNICOS/mp:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
870 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
871 GUESS=craynv-cray-unicosmp$CRAY_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
872 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
873 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
874 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
875 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
876 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
877 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
878 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
879 5000:UNIX_System_V:4.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
880 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
881 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
882 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
883 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
884 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
885 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
886 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
887 sparc*:BSD/OS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
888 GUESS=sparc-unknown-bsdi$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
889 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
890 *:BSD/OS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
891 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
892 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
893 arm:FreeBSD:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
894 UNAME_PROCESSOR=`uname -p` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
895 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
896 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
897 | grep -q __ARM_PCS_VFP |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
898 then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
899 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
900 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
901 else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
902 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
903 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
904 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
905 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
906 *:FreeBSD:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
907 UNAME_PROCESSOR=`/usr/bin/uname -p` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
908 case $UNAME_PROCESSOR in |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
909 amd64) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
910 UNAME_PROCESSOR=x86_64 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
911 i386) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
912 UNAME_PROCESSOR=i586 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
913 esac |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
914 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
915 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
916 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
917 i*:CYGWIN*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
918 GUESS=$UNAME_MACHINE-pc-cygwin |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
919 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
920 *:MINGW64*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
921 GUESS=$UNAME_MACHINE-pc-mingw64 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
922 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
923 *:MINGW*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
924 GUESS=$UNAME_MACHINE-pc-mingw32 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
925 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
926 *:MSYS*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
927 GUESS=$UNAME_MACHINE-pc-msys |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
928 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
929 i*:PW*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
930 GUESS=$UNAME_MACHINE-pc-pw32 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
931 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
932 *:SerenityOS:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
933 GUESS=$UNAME_MACHINE-pc-serenity |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
934 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
935 *:Interix*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
936 case $UNAME_MACHINE in |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
937 x86) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
938 GUESS=i586-pc-interix$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
939 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
940 authenticamd | genuineintel | EM64T) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
941 GUESS=x86_64-unknown-interix$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
942 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
943 IA64) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
944 GUESS=ia64-unknown-interix$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
945 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
946 esac ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
947 i*:UWIN*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
948 GUESS=$UNAME_MACHINE-pc-uwin |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
949 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
950 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
951 GUESS=x86_64-pc-cygwin |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
952 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
953 prep*:SunOS:5.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
954 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
955 GUESS=powerpcle-unknown-solaris2$SUN_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
956 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
957 *:GNU:*:*) |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
958 # the GNU system |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
959 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
960 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
961 GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
962 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
963 *:GNU/*:*:*) |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
964 # other systems with GNU libc and userland |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
965 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
966 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
967 GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
968 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
969 *:Minix:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
970 GUESS=$UNAME_MACHINE-unknown-minix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
971 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
972 aarch64:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
973 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
974 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
975 aarch64_be:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
976 UNAME_MACHINE=aarch64_be |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
977 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
978 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
979 alpha:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
980 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
981 EV5) UNAME_MACHINE=alphaev5 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
982 EV56) UNAME_MACHINE=alphaev56 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
983 PCA56) UNAME_MACHINE=alphapca56 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
984 PCA57) UNAME_MACHINE=alphapca56 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
985 EV6) UNAME_MACHINE=alphaev6 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
986 EV67) UNAME_MACHINE=alphaev67 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
987 EV68*) UNAME_MACHINE=alphaev68 ;; |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
988 esac |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
989 objdump --private-headers /bin/sh | grep -q ld.so.1 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
990 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
991 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
992 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
993 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
994 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
995 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
996 arm*:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
997 set_cc_for_build |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
998 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
999 | grep -q __ARM_EABI__ |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1000 then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1001 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1002 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1003 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1004 | grep -q __ARM_PCS_VFP |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1005 then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1006 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1007 else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1008 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1009 fi |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1010 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1011 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1012 avr32*:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1013 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1014 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1015 cris:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1016 GUESS=$UNAME_MACHINE-axis-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1017 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1018 crisv32:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1019 GUESS=$UNAME_MACHINE-axis-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1020 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1021 e2k:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1022 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1023 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1024 frv:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1025 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1026 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1027 hexagon:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1028 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1029 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1030 i*86:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1031 GUESS=$UNAME_MACHINE-pc-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1032 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1033 ia64:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1034 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1035 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1036 k1om:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1037 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1038 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1039 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1040 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1041 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1042 m32r*:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1043 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1044 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1045 m68*:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1046 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1047 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1048 mips:Linux:*:* | mips64:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1049 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1050 IS_GLIBC=0 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1051 test x"${LIBC}" = xgnu && IS_GLIBC=1 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1052 sed 's/^ //' << EOF > "$dummy.c" |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1053 #undef CPU |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1054 #undef mips |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1055 #undef mipsel |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1056 #undef mips64 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1057 #undef mips64el |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1058 #if ${IS_GLIBC} && defined(_ABI64) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1059 LIBCABI=gnuabi64 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1060 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1061 #if ${IS_GLIBC} && defined(_ABIN32) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1062 LIBCABI=gnuabin32 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1063 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1064 LIBCABI=${LIBC} |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1065 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1066 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1067 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1068 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1069 CPU=mipsisa64r6 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1070 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1071 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1072 CPU=mipsisa32r6 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1073 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1074 #if defined(__mips64) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1075 CPU=mips64 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1076 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1077 CPU=mips |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1078 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1079 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1080 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1081 |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1082 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1083 MIPS_ENDIAN=el |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1084 #else |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1085 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1086 MIPS_ENDIAN= |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1087 #else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1088 MIPS_ENDIAN= |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1089 #endif |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1090 #endif |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1091 EOF |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1092 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1093 eval "$cc_set_vars" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1094 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1095 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1096 mips64el:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1097 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1098 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1099 openrisc*:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1100 GUESS=or1k-unknown-linux-$LIBC |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1101 ;; |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1102 or32:Linux:*:* | or1k*:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1103 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1104 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1105 padre:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1106 GUESS=sparc-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1107 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1108 parisc64:Linux:*:* | hppa64:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1109 GUESS=hppa64-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1110 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1111 parisc:Linux:*:* | hppa:Linux:*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1112 # Look for CPU level |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1113 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1114 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1115 PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1116 *) GUESS=hppa-unknown-linux-$LIBC ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1117 esac |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1118 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1119 ppc64:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1120 GUESS=powerpc64-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1121 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1122 ppc:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1123 GUESS=powerpc-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1124 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1125 ppc64le:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1126 GUESS=powerpc64le-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1127 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1128 ppcle:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1129 GUESS=powerpcle-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1130 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1131 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1132 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1133 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1134 s390:Linux:*:* | s390x:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1135 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1136 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1137 sh64*:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1138 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1139 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1140 sh*:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1141 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1142 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1143 sparc:Linux:*:* | sparc64:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1144 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1145 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1146 tile*:Linux:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1147 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1148 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1149 vax:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1150 GUESS=$UNAME_MACHINE-dec-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1151 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1152 x86_64:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1153 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1154 CPU=$UNAME_MACHINE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1155 LIBCABI=$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1156 if test "$CC_FOR_BUILD" != no_compiler_found; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1157 ABI=64 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1158 sed 's/^ //' << EOF > "$dummy.c" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1159 #ifdef __i386__ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1160 ABI=x86 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1161 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1162 #ifdef __ILP32__ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1163 ABI=x32 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1164 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1165 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1166 EOF |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1167 cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1168 eval "$cc_set_abi" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1169 case $ABI in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1170 x86) CPU=i686 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1171 x32) LIBCABI=${LIBC}x32 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1172 esac |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1173 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1174 GUESS=$CPU-pc-linux-$LIBCABI |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1175 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1176 xtensa*:Linux:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1177 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1178 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1179 i*86:DYNIX/ptx:4*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1180 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1181 # earlier versions are messed up and put the nodename in both |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1182 # sysname and nodename. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1183 GUESS=i386-sequent-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1184 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1185 i*86:UNIX_SV:4.2MP:2.*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1186 # Unixware is an offshoot of SVR4, but it has its own version |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1187 # number series starting with 2... |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1188 # I am not positive that other SVR4 systems won't match this, |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1189 # I just have to hope. -- rms. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1190 # Use sysv4.2uw... so that sysv4* matches it. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1191 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1192 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1193 i*86:OS/2:*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1194 # If we were able to find `uname', then EMX Unix compatibility |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1195 # is probably installed. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1196 GUESS=$UNAME_MACHINE-pc-os2-emx |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1197 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1198 i*86:XTS-300:*:STOP) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1199 GUESS=$UNAME_MACHINE-unknown-stop |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1200 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1201 i*86:atheos:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1202 GUESS=$UNAME_MACHINE-unknown-atheos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1203 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1204 i*86:syllable:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1205 GUESS=$UNAME_MACHINE-pc-syllable |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1206 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1207 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1208 GUESS=i386-unknown-lynxos$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1209 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1210 i*86:*DOS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1211 GUESS=$UNAME_MACHINE-pc-msdosdjgpp |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1212 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1213 i*86:*:4.*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1214 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1215 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1216 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1217 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1218 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1219 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1220 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1221 i*86:*:5:[678]*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1222 # UnixWare 7.x, OpenUNIX and OpenServer 6. |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1223 case `/bin/uname -X | grep "^Machine"` in |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1224 *486*) UNAME_MACHINE=i486 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1225 *Pentium) UNAME_MACHINE=i586 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1226 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1227 esac |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1228 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1229 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1230 i*86:*:3.2:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1231 if test -f /usr/options/cb.name; then |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1232 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1233 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1234 elif /bin/uname -X 2>/dev/null >/dev/null ; then |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1235 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1236 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1237 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1238 && UNAME_MACHINE=i586 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1239 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1240 && UNAME_MACHINE=i686 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1241 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1242 && UNAME_MACHINE=i686 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1243 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1244 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1245 GUESS=$UNAME_MACHINE-pc-sysv32 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1246 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1247 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1248 pc:*:*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1249 # Left here for compatibility: |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1250 # uname -m prints for DJGPP always 'pc', but it prints nothing about |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1251 # the processor, so we play safe by assuming i586. |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1252 # Note: whatever this is, it MUST be the same as what config.sub |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1253 # prints for the "djgpp" host, or else GDB configure will decide that |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1254 # this is a cross-build. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1255 GUESS=i586-pc-msdosdjgpp |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1256 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1257 Intel:Mach:3*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1258 GUESS=i386-pc-mach3 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1259 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1260 paragon:*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1261 GUESS=i860-intel-osf1 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1262 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1263 i860:*:4.*:*) # i860-SVR4 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1264 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1265 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1266 else # Add other i860-SVR4 vendors below as they are discovered. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1267 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1268 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1269 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1270 mini*:CTIX:SYS*5:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1271 # "miniframe" |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1272 GUESS=m68010-convergent-sysv |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1273 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1274 mc68k:UNIX:SYSTEM5:3.51m) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1275 GUESS=m68k-convergent-sysv |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1276 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1277 M680?0:D-NIX:5.3:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1278 GUESS=m68k-diab-dnix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1279 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1280 M68*:*:R3V[5678]*:*) |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1281 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1282 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1283 OS_REL='' |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1284 test -r /etc/.relid \ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1285 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1286 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1287 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1288 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1289 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1290 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1291 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1292 && { echo i486-ncr-sysv4; exit; } ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1293 NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1294 OS_REL='.3' |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1295 test -r /etc/.relid \ |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1296 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1297 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1298 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1299 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1300 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1301 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1302 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1303 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1304 GUESS=m68k-unknown-lynxos$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1305 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1306 mc68030:UNIX_System_V:4.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1307 GUESS=m68k-atari-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1308 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1309 TSUNAMI:LynxOS:2.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1310 GUESS=sparc-unknown-lynxos$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1311 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1312 rs6000:LynxOS:2.*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1313 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1314 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1315 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1316 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1317 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1318 SM[BE]S:UNIX_SV:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1319 GUESS=mips-dde-sysv$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1320 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1321 RM*:ReliantUNIX-*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1322 GUESS=mips-sni-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1323 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1324 RM*:SINIX-*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1325 GUESS=mips-sni-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1326 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1327 *:SINIX-*:*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1328 if uname -p 2>/dev/null >/dev/null ; then |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1329 UNAME_MACHINE=`(uname -p) 2>/dev/null` |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1330 GUESS=$UNAME_MACHINE-sni-sysv4 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1331 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1332 GUESS=ns32k-sni-sysv |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1333 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1334 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1335 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1336 # says <Richard.M.Bartel@ccMail.Census.GOV> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1337 GUESS=i586-unisys-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1338 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1339 *:UNIX_System_V:4*:FTX*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1340 # From Gerald Hewes <hewes@openmarket.com>. |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1341 # How about differentiating between stratus architectures? -djm |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1342 GUESS=hppa1.1-stratus-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1343 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1344 *:*:*:FTX*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1345 # From seanf@swdc.stratus.com. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1346 GUESS=i860-stratus-sysv4 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1347 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1348 i*86:VOS:*:*) |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1349 # From Paul.Green@stratus.com. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1350 GUESS=$UNAME_MACHINE-stratus-vos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1351 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1352 *:VOS:*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1353 # From Paul.Green@stratus.com. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1354 GUESS=hppa1.1-stratus-vos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1355 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1356 mc68*:A/UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1357 GUESS=m68k-apple-aux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1358 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1359 news*:NEWS-OS:6*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1360 GUESS=mips-sony-newsos6 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1361 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1362 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1363 if test -d /usr/nec; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1364 GUESS=mips-nec-sysv$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1365 else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1366 GUESS=mips-unknown-sysv$UNAME_RELEASE |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1367 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1368 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1369 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1370 GUESS=powerpc-be-beos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1371 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1372 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1373 GUESS=powerpc-apple-beos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1374 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1375 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1376 GUESS=i586-pc-beos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1377 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1378 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1379 GUESS=i586-pc-haiku |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1380 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1381 ppc:Haiku:*:*) # Haiku running on Apple PowerPC |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1382 GUESS=powerpc-apple-haiku |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1383 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1384 *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1385 GUESS=$UNAME_MACHINE-unknown-haiku |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1386 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1387 SX-4:SUPER-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1388 GUESS=sx4-nec-superux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1389 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1390 SX-5:SUPER-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1391 GUESS=sx5-nec-superux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1392 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1393 SX-6:SUPER-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1394 GUESS=sx6-nec-superux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1395 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1396 SX-7:SUPER-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1397 GUESS=sx7-nec-superux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1398 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1399 SX-8:SUPER-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1400 GUESS=sx8-nec-superux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1401 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1402 SX-8R:SUPER-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1403 GUESS=sx8r-nec-superux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1404 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1405 SX-ACE:SUPER-UX:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1406 GUESS=sxace-nec-superux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1407 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1408 Power*:Rhapsody:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1409 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1410 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1411 *:Rhapsody:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1412 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1413 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1414 arm64:Darwin:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1415 GUESS=aarch64-apple-darwin$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1416 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1417 *:Darwin:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1418 UNAME_PROCESSOR=`uname -p` |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1419 case $UNAME_PROCESSOR in |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1420 unknown) UNAME_PROCESSOR=powerpc ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1421 esac |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1422 if command -v xcode-select > /dev/null 2> /dev/null && \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1423 ! xcode-select --print-path > /dev/null 2> /dev/null ; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1424 # Avoid executing cc if there is no toolchain installed as |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1425 # cc will be a stub that puts up a graphical alert |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1426 # prompting the user to install developer tools. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1427 CC_FOR_BUILD=no_compiler_found |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1428 else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1429 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1430 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1431 if test "$CC_FOR_BUILD" != no_compiler_found; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1432 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1433 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1434 grep IS_64BIT_ARCH >/dev/null |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1435 then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1436 case $UNAME_PROCESSOR in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1437 i386) UNAME_PROCESSOR=x86_64 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1438 powerpc) UNAME_PROCESSOR=powerpc64 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1439 esac |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1440 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1441 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1442 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1443 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1444 grep IS_PPC >/dev/null |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1445 then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1446 UNAME_PROCESSOR=powerpc |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1447 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1448 elif test "$UNAME_PROCESSOR" = i386 ; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1449 # uname -m returns i386 or x86_64 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1450 UNAME_PROCESSOR=$UNAME_MACHINE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1451 fi |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1452 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1453 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1454 *:procnto*:*:* | *:QNX:[0123456789]*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1455 UNAME_PROCESSOR=`uname -p` |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1456 if test "$UNAME_PROCESSOR" = x86; then |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1457 UNAME_PROCESSOR=i386 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1458 UNAME_MACHINE=pc |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1459 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1460 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1461 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1462 *:QNX:*:4*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1463 GUESS=i386-pc-qnx |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1464 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1465 NEO-*:NONSTOP_KERNEL:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1466 GUESS=neo-tandem-nsk$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1467 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1468 NSE-*:NONSTOP_KERNEL:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1469 GUESS=nse-tandem-nsk$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1470 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1471 NSR-*:NONSTOP_KERNEL:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1472 GUESS=nsr-tandem-nsk$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1473 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1474 NSV-*:NONSTOP_KERNEL:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1475 GUESS=nsv-tandem-nsk$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1476 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1477 NSX-*:NONSTOP_KERNEL:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1478 GUESS=nsx-tandem-nsk$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1479 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1480 *:NonStop-UX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1481 GUESS=mips-compaq-nonstopux |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1482 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1483 BS2000:POSIX*:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1484 GUESS=bs2000-siemens-sysv |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1485 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1486 DS/*:UNIX_System_V:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1487 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1488 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1489 *:Plan9:*:*) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1490 # "uname -m" is not consistent, so use $cputype instead. 386 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1491 # is converted to i386 for consistency with other x86 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1492 # operating systems. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1493 if test "${cputype-}" = 386; then |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1494 UNAME_MACHINE=i386 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1495 elif test "x${cputype-}" != x; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1496 UNAME_MACHINE=$cputype |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1497 fi |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1498 GUESS=$UNAME_MACHINE-unknown-plan9 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1499 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1500 *:TOPS-10:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1501 GUESS=pdp10-unknown-tops10 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1502 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1503 *:TENEX:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1504 GUESS=pdp10-unknown-tenex |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1505 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1506 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1507 GUESS=pdp10-dec-tops20 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1508 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1509 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1510 GUESS=pdp10-xkl-tops20 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1511 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1512 *:TOPS-20:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1513 GUESS=pdp10-unknown-tops20 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1514 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1515 *:ITS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1516 GUESS=pdp10-unknown-its |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1517 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1518 SEI:*:*:SEIUX) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1519 GUESS=mips-sei-seiux$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1520 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1521 *:DragonFly:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1522 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1523 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1524 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1525 *:*VMS:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1526 UNAME_MACHINE=`(uname -p) 2>/dev/null` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1527 case $UNAME_MACHINE in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1528 A*) GUESS=alpha-dec-vms ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1529 I*) GUESS=ia64-dec-vms ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1530 V*) GUESS=vax-dec-vms ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1531 esac ;; |
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1532 *:XENIX:*:SysV) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1533 GUESS=i386-pc-xenix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1534 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1535 i*86:skyos:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1536 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1537 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1538 ;; |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1539 i*86:rdos:*:*) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1540 GUESS=$UNAME_MACHINE-pc-rdos |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1541 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1542 i*86:Fiwix:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1543 GUESS=$UNAME_MACHINE-pc-fiwix |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1544 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1545 *:AROS:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1546 GUESS=$UNAME_MACHINE-unknown-aros |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1547 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1548 x86_64:VMkernel:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1549 GUESS=$UNAME_MACHINE-unknown-esx |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1550 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1551 amd64:Isilon\ OneFS:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1552 GUESS=x86_64-unknown-onefs |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1553 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1554 *:Unleashed:*:*) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1555 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1556 ;; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1557 esac |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1558 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1559 # Do we have a guess based on uname results? |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1560 if test "x$GUESS" != x; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1561 echo "$GUESS" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1562 exit |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1563 fi |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1564 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1565 # No uname command or uname output not recognized. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1566 set_cc_for_build |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1567 cat > "$dummy.c" <<EOF |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1568 #ifdef _SEQUENT_ |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1569 #include <sys/types.h> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1570 #include <sys/utsname.h> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1571 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1572 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1573 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1574 #include <signal.h> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1575 #if defined(_SIZE_T_) || defined(SIGLOST) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1576 #include <sys/utsname.h> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1577 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1578 #endif |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1579 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1580 main () |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1581 { |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1582 #if defined (sony) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1583 #if defined (MIPSEB) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1584 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1585 I don't know.... */ |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1586 printf ("mips-sony-bsd\n"); exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1587 #else |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1588 #include <sys/param.h> |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1589 printf ("m68k-sony-newsos%s\n", |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1590 #ifdef NEWSOS4 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1591 "4" |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1592 #else |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1593 "" |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1594 #endif |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1595 ); exit (0); |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1596 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1597 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1598 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1599 #if defined (NeXT) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1600 #if !defined (__ARCHITECTURE__) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1601 #define __ARCHITECTURE__ "m68k" |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1602 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1603 int version; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1604 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1605 if (version < 4) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1606 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1607 else |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1608 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1609 exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1610 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1611 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1612 #if defined (MULTIMAX) || defined (n16) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1613 #if defined (UMAXV) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1614 printf ("ns32k-encore-sysv\n"); exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1615 #else |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1616 #if defined (CMU) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1617 printf ("ns32k-encore-mach\n"); exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1618 #else |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1619 printf ("ns32k-encore-bsd\n"); exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1620 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1621 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1622 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1623 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1624 #if defined (__386BSD__) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1625 printf ("i386-pc-bsd\n"); exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1626 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1627 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1628 #if defined (sequent) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1629 #if defined (i386) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1630 printf ("i386-sequent-dynix\n"); exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1631 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1632 #if defined (ns32000) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1633 printf ("ns32k-sequent-dynix\n"); exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1634 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1635 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1636 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1637 #if defined (_SEQUENT_) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1638 struct utsname un; |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1639 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1640 uname(&un); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1641 if (strncmp(un.version, "V2", 2) == 0) { |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1642 printf ("i386-sequent-ptx2\n"); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1643 } |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1644 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1645 printf ("i386-sequent-ptx1\n"); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1646 } |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1647 printf ("i386-sequent-ptx\n"); exit (0); |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1648 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1649 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1650 #if defined (vax) |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1651 #if !defined (ultrix) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1652 #include <sys/param.h> |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1653 #if defined (BSD) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1654 #if BSD == 43 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1655 printf ("vax-dec-bsd4.3\n"); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1656 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1657 #if BSD == 199006 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1658 printf ("vax-dec-bsd4.3reno\n"); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1659 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1660 printf ("vax-dec-bsd\n"); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1661 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1662 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1663 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1664 printf ("vax-dec-bsd\n"); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1665 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1666 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1667 #if defined(_SIZE_T_) || defined(SIGLOST) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1668 struct utsname un; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1669 uname (&un); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1670 printf ("vax-dec-ultrix%s\n", un.release); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1671 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1672 printf ("vax-dec-ultrix\n"); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1673 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1674 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1675 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1676 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1677 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1678 #if defined(_SIZE_T_) || defined(SIGLOST) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1679 struct utsname *un; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1680 uname (&un); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1681 printf ("mips-dec-ultrix%s\n", un.release); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1682 #else |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1683 printf ("mips-dec-ultrix\n"); exit (0); |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1684 #endif |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1685 #endif |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1686 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1687 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1688 #if defined (alliant) && defined (i860) |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1689 printf ("i860-alliant-bsd\n"); exit (0); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1690 #endif |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1691 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1692 exit (1); |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1693 } |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1694 EOF |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1695 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1696 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && |
1105
e6511648c59e
Updated to more current config.guess and config.sub files.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
869
diff
changeset
|
1697 { echo "$SYSTEM_NAME"; exit; } |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1698 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1699 # Apollos put the system type in the environment. |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1700 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1701 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1702 echo "$0: unable to guess system type" >&2 |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1703 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1704 case $UNAME_MACHINE:$UNAME_SYSTEM in |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1705 mips:Linux | mips64:Linux) |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1706 # If we got here on MIPS GNU/Linux, output extra information. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1707 cat >&2 <<EOF |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1708 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1709 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1710 the system type. Please install a C compiler and try again. |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1711 EOF |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1712 ;; |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1713 esac |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1714 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1715 cat >&2 <<EOF |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1716 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1717 This script (version $timestamp), has failed to recognize the |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1718 operating system you are using. If your script is old, overwrite *all* |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1719 copies of config.guess and config.sub with the latest versions from: |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1720 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1721 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1722 and |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1723 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1724 EOF |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1725 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1726 our_year=`echo $timestamp | sed 's,-.*,,'` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1727 thisyear=`date +%Y` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1728 # shellcheck disable=SC2003 |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1729 script_age=`expr "$thisyear" - "$our_year"` |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1730 if test "$script_age" -lt 3 ; then |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1731 cat >&2 <<EOF |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1732 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1733 If $0 has already been updated, send the following data and any |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1734 information you think might be pertinent to config-patches@gnu.org to |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1735 provide the necessary information to handle your system. |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1736 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1737 config.guess timestamp = $timestamp |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1738 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1739 uname -m = `(uname -m) 2>/dev/null || echo unknown` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1740 uname -r = `(uname -r) 2>/dev/null || echo unknown` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1741 uname -s = `(uname -s) 2>/dev/null || echo unknown` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1742 uname -v = `(uname -v) 2>/dev/null || echo unknown` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1743 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1744 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1745 /bin/uname -X = `(/bin/uname -X) 2>/dev/null` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1746 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1747 hostinfo = `(hostinfo) 2>/dev/null` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1748 /bin/universe = `(/bin/universe) 2>/dev/null` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1749 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1750 /bin/arch = `(/bin/arch) 2>/dev/null` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1751 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1753 |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1754 UNAME_MACHINE = "$UNAME_MACHINE" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1755 UNAME_RELEASE = "$UNAME_RELEASE" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1756 UNAME_SYSTEM = "$UNAME_SYSTEM" |
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1757 UNAME_VERSION = "$UNAME_VERSION" |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1758 EOF |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1759 fi |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1760 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1761 exit 1 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1762 |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1763 # Local variables: |
2970
83c17a84bc27
Update the configure scripts with the latest autotools.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1105
diff
changeset
|
1764 # eval: (add-hook 'before-save-hook 'time-stamp) |
869
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1765 # time-stamp-start: "timestamp='" |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1766 # time-stamp-format: "%:y-%02m-%02d" |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1767 # time-stamp-end: "'" |
21aa7434e7c5
Erm and config.guess.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1768 # End: |