Merge ~fnordahl/ubuntu/+source/openvswitch:ubuntu/jammy into ~ubuntu-server-dev/ubuntu/+source/openvswitch:ubuntu/jammy
- Git
- lp:~fnordahl/ubuntu/+source/openvswitch
- ubuntu/jammy
- Merge into ubuntu/jammy
Proposed by
Frode Nordahl
Status: | Merged |
---|---|
Merged at revision: | 16c83213ec0674bb7789244aecc3478b934cf600 |
Proposed branch: | ~fnordahl/ubuntu/+source/openvswitch:ubuntu/jammy |
Merge into: | ~ubuntu-server-dev/ubuntu/+source/openvswitch:ubuntu/jammy |
Diff against target: |
1036447 lines (+205848/-182837) 122 files modified
.ci/linux-build.sh (+1/-1) .cirrus.yml (+1/-1) Documentation/internals/maintainers.rst (+5/-0) Documentation/ref/ovs-actions.7.rst (+1/-1) Documentation/topics/dpdk/phy.rst (+7/-7) MAINTAINERS.rst (+15/-6) Makefile.in (+28/-13) NEWS (+10/-0) aclocal.m4 (+47/-32) build-aux/compile (+3/-3) build-aux/config.guess (+903/-611) build-aux/config.sub (+1325/-1268) build-aux/depcomp (+1/-1) build-aux/install-sh (+92/-69) build-aux/ltmain.sh (+574/-294) build-aux/missing (+1/-1) config.h.in (+79/-23) configure (+7898/-6581) configure.ac (+1/-1) datapath/Makefile.in (+7/-5) debian/changelog (+6/-0) include/openvswitch/meta-flow.h (+4/-0) include/openvswitch/version.h (+2/-2) include/sparse/numa.h (+17/-6) include/sparse/rte_memcpy.h (+1/-4) lib/classifier.c (+20/-5) lib/conntrack-tp.h (+7/-0) lib/conntrack.c (+89/-163) lib/cpu.c (+3/-1) lib/dpctl.c (+10/-12) lib/dpif-netdev.c (+1/-0) lib/dpif-netlink.c (+3/-2) lib/dpif-provider.h (+8/-0) lib/dpif.c (+7/-1) lib/dpif.h (+1/-0) lib/fatal-signal.c (+42/-8) lib/learning-switch.c (+1/-0) lib/meta-flow.c (+25/-0) lib/meta-flow.xml (+2/-2) lib/netdev-dpdk.c (+1/-1) lib/netdev-linux.c (+20/-6) lib/netdev-native-tnl.c (+22/-58) lib/netdev-offload-dpdk.c (+1/-1) lib/netdev-offload-tc.c (+131/-42) lib/netdev-offload.c (+38/-32) lib/netdev-vport-private.h (+6/-1) lib/netdev-vport.c (+108/-83) lib/netdev-windows.c (+11/-0) lib/netdev.h (+3/-1) lib/ofp-parse.c (+2/-5) lib/smap.c (+1/-1) lib/smap.h (+1/-1) lib/socket-util.c (+10/-3) lib/socket-util.h (+2/-1) lib/stream-ssl.c (+7/-1) lib/tc.c (+135/-62) lib/tc.h (+2/-2) m4/libtool.m4 (+129/-98) m4/ltoptions.m4 (+2/-2) m4/ltsugar.m4 (+1/-1) m4/ltversion.m4 (+7/-6) m4/lt~obsolete.m4 (+2/-2) ofproto/ofproto-dpif-ipfix.c (+105/-24) ofproto/ofproto-dpif-upcall.c (+67/-13) ofproto/ofproto-dpif-xlate.c (+14/-1) ofproto/ofproto-dpif.c (+9/-19) ofproto/ofproto-provider.h (+5/-0) ofproto/ofproto.c (+10/-0) ofproto/ofproto.h (+2/-0) ovsdb/jsonrpc-server.c (+27/-16) ovsdb/log.c (+17/-0) ovsdb/log.h (+3/-0) ovsdb/ovsdb-server.c (+44/-21) ovsdb/ovsdb-tool.c (+39/-4) ovsdb/ovsdb.c (+3/-0) ovsdb/relay.c (+18/-4) ovsdb/relay.h (+5/-2) ovsdb/storage.c (+16/-7) ovsdb/storage.h (+1/-1) ovsdb/transaction.c (+1/-1) ovsdb/transaction.h (+2/-1) ovsdb/trigger.c (+3/-2) package.m4 (+2/-2) python/ovs/stream.py (+2/-1) python/ovs/version.py (+1/-1) rhel/kmod-openvswitch-rhel6.spec (+1/-1) rhel/openvswitch-dkms.spec (+1/-1) rhel/openvswitch-fedora.spec (+1/-1) rhel/openvswitch-kmod-fedora.spec (+1/-1) rhel/openvswitch.spec (+1/-1) tests/automake.mk (+2/-1) tests/classifier.at (+88/-0) tests/dpctl.at (+16/-0) tests/learning-switch.at (+23/-0) tests/ofproto-dpif.at (+9/-9) tests/ofproto.at (+182/-0) tests/ovsdb-cluster-testsuite (+862/-816) tests/ovsdb-cluster.at (+7/-7) tests/ovsdb-server.at (+19/-1) tests/ovsdb-tool.at (+69/-0) tests/packet-type-aware.at (+1/-1) tests/system-afxdp-testsuite (+38804/-35849) tests/system-dpdk-testsuite (+584/-538) tests/system-interface.at (+59/-0) tests/system-kmod-macros.at (+10/-0) tests/system-kmod-testsuite (+26968/-23584) tests/system-layer3-tunnels.at (+2/-2) tests/system-offloads-testsuite (+3500/-472) tests/system-offloads-traffic.at (+183/-0) tests/system-traffic.at (+218/-0) tests/system-tso-testsuite (+40293/-37297) tests/system-userspace-macros.at (+8/-0) tests/system-userspace-testsuite (+28626/-25161) tests/testsuite (+52978/-49436) tests/testsuite.at (+1/-0) utilities/ovs-appctl-bashcomp.bash (+7/-0) utilities/ovs-sim.in (+3/-3) utilities/ovs-tcpdump.in (+11/-0) utilities/ovs-vsctl-bashcomp.bash (+7/-0) vswitchd/bridge.c (+3/-0) vswitchd/vswitch.xml (+13/-0) xenserver/openvswitch-xen.spec (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Page | Pending | ||
Review via email: mp+445670@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh | |||
2 | index 392c7ee..7487275 100755 | |||
3 | --- a/.ci/linux-build.sh | |||
4 | +++ b/.ci/linux-build.sh | |||
5 | @@ -233,7 +233,7 @@ elif [ "$M32" ]; then | |||
6 | 233 | # difference on 'configure' and 'make' stages. | 233 | # difference on 'configure' and 'make' stages. |
7 | 234 | export CC="$CC -m32" | 234 | export CC="$CC -m32" |
8 | 235 | elif [ "$TRAVIS_ARCH" != "aarch64" ]; then | 235 | elif [ "$TRAVIS_ARCH" != "aarch64" ]; then |
10 | 236 | OPTS="--enable-sparse" | 236 | EXTRA_OPTS="$EXTRA_OPTS --enable-sparse" |
11 | 237 | if [ "$AFXDP" ]; then | 237 | if [ "$AFXDP" ]; then |
12 | 238 | # netdev-afxdp uses memset for 64M for umem initialization. | 238 | # netdev-afxdp uses memset for 64M for umem initialization. |
13 | 239 | SPARSE_FLAGS="${SPARSE_FLAGS} -Wno-memcpy-max-count" | 239 | SPARSE_FLAGS="${SPARSE_FLAGS} -Wno-memcpy-max-count" |
14 | diff --git a/.cirrus.yml b/.cirrus.yml | |||
15 | index 29be500..2fadab6 100644 | |||
16 | --- a/.cirrus.yml | |||
17 | +++ b/.cirrus.yml | |||
18 | @@ -2,7 +2,7 @@ freebsd_build_task: | |||
19 | 2 | 2 | ||
20 | 3 | freebsd_instance: | 3 | freebsd_instance: |
21 | 4 | matrix: | 4 | matrix: |
23 | 5 | image_family: freebsd-12-3-snap | 5 | image_family: freebsd-12-4-snap |
24 | 6 | image_family: freebsd-13-1-snap | 6 | image_family: freebsd-13-1-snap |
25 | 7 | cpu: 4 | 7 | cpu: 4 |
26 | 8 | memory: 4G | 8 | memory: 4G |
27 | diff --git a/Documentation/internals/maintainers.rst b/Documentation/internals/maintainers.rst | |||
28 | index 172d684..0203bbe 100644 | |||
29 | --- a/Documentation/internals/maintainers.rst | |||
30 | +++ b/Documentation/internals/maintainers.rst | |||
31 | @@ -22,3 +22,8 @@ | |||
32 | 22 | Avoid deeper levels because they do not render well. | 22 | Avoid deeper levels because they do not render well. |
33 | 23 | 23 | ||
34 | 24 | .. include:: ../../MAINTAINERS.rst | 24 | .. include:: ../../MAINTAINERS.rst |
35 | 25 | :end-before: Cut here for the Documentation/internals/maintainers.rst | ||
36 | 26 | |||
37 | 27 | .. |responsibilities| replace:: :doc:`committer-responsibilities` | ||
38 | 28 | .. |grant-revocation| replace:: :doc:`committer-grant-revocation` | ||
39 | 29 | .. |emeritus-status| replace:: :doc:`committer-emeritus-status` | ||
40 | diff --git a/Documentation/ref/ovs-actions.7.rst b/Documentation/ref/ovs-actions.7.rst | |||
41 | index b59b763..d138956 100644 | |||
42 | --- a/Documentation/ref/ovs-actions.7.rst | |||
43 | +++ b/Documentation/ref/ovs-actions.7.rst | |||
44 | @@ -1380,7 +1380,7 @@ The ``delete_field`` action | |||
45 | 1380 | | ``delete_field:``\ *field* | 1380 | | ``delete_field:``\ *field* |
46 | 1381 | 1381 | ||
47 | 1382 | The ``delete_field`` action deletes a *field* in the syntax described under | 1382 | The ``delete_field`` action deletes a *field* in the syntax described under |
49 | 1383 | `Field Specifications`_ above. Currently, only the ``tun_metadta`` fields are | 1383 | `Field Specifications`_ above. Currently, only the ``tun_metadata`` fields are |
50 | 1384 | supported. | 1384 | supported. |
51 | 1385 | 1385 | ||
52 | 1386 | This action was added in Open vSwitch 2.14. | 1386 | This action was added in Open vSwitch 2.14. |
53 | diff --git a/Documentation/topics/dpdk/phy.rst b/Documentation/topics/dpdk/phy.rst | |||
54 | index 937f4c4..90c8691 100644 | |||
55 | --- a/Documentation/topics/dpdk/phy.rst | |||
56 | +++ b/Documentation/topics/dpdk/phy.rst | |||
57 | @@ -76,8 +76,8 @@ persist across reboots. In addition, there are two options available for this | |||
58 | 76 | kernel space driver - VFIO (Virtual Function I/O) and UIO (Userspace I/O) - | 76 | kernel space driver - VFIO (Virtual Function I/O) and UIO (Userspace I/O) - |
59 | 77 | along with a number of drivers for each option. We will demonstrate examples of | 77 | along with a number of drivers for each option. We will demonstrate examples of |
60 | 78 | both tools and will use the ``vfio-pci`` driver, which is the more secure, | 78 | both tools and will use the ``vfio-pci`` driver, which is the more secure, |
63 | 79 | robust driver of those available. More information can be found in the `DPDK | 79 | robust driver of those available. More information can be found in the |
64 | 80 | documentation <dpdk-drivers>`__. | 80 | `DPDK drivers documentation`_. |
65 | 81 | 81 | ||
66 | 82 | To list devices using :command:`driverctl`, run:: | 82 | To list devices using :command:`driverctl`, run:: |
67 | 83 | 83 | ||
68 | @@ -115,9 +115,9 @@ tool:: | |||
69 | 115 | Open vSwitch 2.6.0 added support for DPDK 16.07, which in turn renamed the | 115 | Open vSwitch 2.6.0 added support for DPDK 16.07, which in turn renamed the |
70 | 116 | former ``dpdk_nic_bind`` tool to ``dpdk-devbind``. | 116 | former ``dpdk_nic_bind`` tool to ``dpdk-devbind``. |
71 | 117 | 117 | ||
73 | 118 | For more information, refer to the `DPDK documentation <dpdk-drivers>`__. | 118 | For more information, refer to the `DPDK drivers documentation`_. |
74 | 119 | 119 | ||
76 | 120 | .. _dpdk-drivers: https://doc.dpdk.org/guides-21.11/linux_gsg/linux_drivers.html | 120 | .. _DPDK drivers documentation: https://doc.dpdk.org/guides-21.11/linux_gsg/linux_drivers.html |
77 | 121 | 121 | ||
78 | 122 | .. _dpdk-phy-multiqueue: | 122 | .. _dpdk-phy-multiqueue: |
79 | 123 | 123 | ||
80 | @@ -394,14 +394,14 @@ in the ``options`` column of the ``Interface`` table. | |||
81 | 394 | 394 | ||
82 | 395 | .. important:: | 395 | .. important:: |
83 | 396 | 396 | ||
86 | 397 | Some DPDK port use `bifurcated drivers <bifurcated-drivers>`__, | 397 | Some DPDK port use `bifurcated drivers`_, which means that a kernel |
87 | 398 | which means that a kernel netdevice remains when Open vSwitch is stopped. | 398 | netdevice remains when Open vSwitch is stopped. |
88 | 399 | 399 | ||
89 | 400 | In such case, any configuration applied to a VF would remain set on the | 400 | In such case, any configuration applied to a VF would remain set on the |
90 | 401 | kernel netdevice, and be inherited from it when Open vSwitch is restarted, | 401 | kernel netdevice, and be inherited from it when Open vSwitch is restarted, |
91 | 402 | even if the options described in this section are unset from Open vSwitch. | 402 | even if the options described in this section are unset from Open vSwitch. |
92 | 403 | 403 | ||
94 | 404 | .. _bifurcated-drivers: https://doc.dpdk.org/guides-21.11/linux_gsg/linux_drivers.html#bifurcated-driver | 404 | .. _bifurcated drivers: https://doc.dpdk.org/guides-21.11/linux_gsg/linux_drivers.html#bifurcated-driver |
95 | 405 | 405 | ||
96 | 406 | - Configure the VF MAC address:: | 406 | - Configure the VF MAC address:: |
97 | 407 | 407 | ||
98 | diff --git a/MAINTAINERS.rst b/MAINTAINERS.rst | |||
99 | index 27be4aa..1dc4061 100644 | |||
100 | --- a/MAINTAINERS.rst | |||
101 | +++ b/MAINTAINERS.rst | |||
102 | @@ -28,11 +28,11 @@ Committers | |||
103 | 28 | Open vSwitch committers are the people who have been granted access to push | 28 | Open vSwitch committers are the people who have been granted access to push |
104 | 29 | changes to the Open vSwitch git repository. | 29 | changes to the Open vSwitch git repository. |
105 | 30 | 30 | ||
108 | 31 | The responsibilities of an Open vSwitch committer are documented | 31 | The responsibilities of an Open vSwitch committer are documented here: |
109 | 32 | `here <Documentation/internals/committer-responsibilities.rst>`__. | 32 | |responsibilities|. |
110 | 33 | 33 | ||
113 | 34 | The process for adding or removing committers is documented | 34 | The process for adding or removing committers is documented here: |
114 | 35 | `here <Documentation/internals/committer-grant-revocation.rst>`__. | 35 | |grant-revocation|. |
115 | 36 | 36 | ||
116 | 37 | This is the current list of active Open vSwitch committers: | 37 | This is the current list of active Open vSwitch committers: |
117 | 38 | 38 | ||
118 | @@ -77,8 +77,8 @@ This is the current list of active Open vSwitch committers: | |||
119 | 77 | - yamamoto@midokura.com | 77 | - yamamoto@midokura.com |
120 | 78 | 78 | ||
121 | 79 | The project also maintains a list of Emeritus Committers (or Maintainers). | 79 | The project also maintains a list of Emeritus Committers (or Maintainers). |
124 | 80 | More information about Emeritus Committers can be found | 80 | More information about Emeritus Committers can be found here: |
125 | 81 | `here <Documentation/internals/committer-emeritus-status.rst>`__. | 81 | |emeritus-status|. |
126 | 82 | 82 | ||
127 | 83 | .. list-table:: OVS Emeritus Maintainers | 83 | .. list-table:: OVS Emeritus Maintainers |
128 | 84 | :header-rows: 1 | 84 | :header-rows: 1 |
129 | @@ -91,3 +91,12 @@ More information about Emeritus Committers can be found | |||
130 | 91 | - ejj@eecs.berkeley.edu | 91 | - ejj@eecs.berkeley.edu |
131 | 92 | * - Joe Stringer | 92 | * - Joe Stringer |
132 | 93 | - joe@ovn.org | 93 | - joe@ovn.org |
133 | 94 | |||
134 | 95 | .. Cut here for the Documentation/internals/maintainers.rst | ||
135 | 96 | |||
136 | 97 | .. |responsibilities| replace:: `Expectations for Developers with Open vSwitch | ||
137 | 98 | Repo Access <Documentation/internals/committer-responsibilities.rst>`__ | ||
138 | 99 | .. |grant-revocation| replace:: `OVS Committer Grant/Revocation Policy | ||
139 | 100 | <Documentation/internals/committer-grant-revocation.rst>`__ | ||
140 | 101 | .. |emeritus-status| replace:: `Emeritus Status for OVS Committers | ||
141 | 102 | <Documentation/internals/committer-emeritus-status.rst>`__ | ||
142 | diff --git a/Makefile.in b/Makefile.in | |||
143 | index 16011c4..93c6e98 100644 | |||
144 | --- a/Makefile.in | |||
145 | +++ b/Makefile.in | |||
146 | @@ -1,7 +1,7 @@ | |||
148 | 1 | # Makefile.in generated by automake 1.16.1 from Makefile.am. | 1 | # Makefile.in generated by automake 1.16.5 from Makefile.am. |
149 | 2 | # @configure_input@ | 2 | # @configure_input@ |
150 | 3 | 3 | ||
152 | 4 | # Copyright (C) 1994-2018 Free Software Foundation, Inc. | 4 | # Copyright (C) 1994-2021 Free Software Foundation, Inc. |
153 | 5 | 5 | ||
154 | 6 | # This Makefile.in is free software; the Free Software Foundation | 6 | # This Makefile.in is free software; the Free Software Foundation |
155 | 7 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
156 | @@ -1242,8 +1242,8 @@ am__recursive_targets = \ | |||
157 | 1242 | $(am__extra_recursive_targets) | 1242 | $(am__extra_recursive_targets) |
158 | 1243 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | 1243 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ |
159 | 1244 | cscope distdir distdir-am dist dist-all distcheck | 1244 | cscope distdir distdir-am dist dist-all distcheck |
162 | 1245 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ | 1245 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \ |
163 | 1246 | $(LISP)config.h.in | 1246 | config.h.in |
164 | 1247 | # Read a list of newline-separated strings from the standard input, | 1247 | # Read a list of newline-separated strings from the standard input, |
165 | 1248 | # and print each of them once, without duplicates. Input order is | 1248 | # and print each of them once, without duplicates. Input order is |
166 | 1249 | # *not* preserved. | 1249 | # *not* preserved. |
167 | @@ -1260,9 +1260,6 @@ am__define_uniq_tagged_files = \ | |||
168 | 1260 | unique=`for i in $$list; do \ | 1260 | unique=`for i in $$list; do \ |
169 | 1261 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | 1261 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
170 | 1262 | done | $(am__uniquify_input)` | 1262 | done | $(am__uniquify_input)` |
171 | 1263 | ETAGS = etags | ||
172 | 1264 | CTAGS = ctags | ||
173 | 1265 | CSCOPE = cscope | ||
174 | 1266 | DIST_SUBDIRS = $(SUBDIRS) | 1263 | DIST_SUBDIRS = $(SUBDIRS) |
175 | 1267 | am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Documentation/automake.mk \ | 1264 | am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Documentation/automake.mk \ |
176 | 1268 | $(srcdir)/Makefile.in $(srcdir)/build-aux/automake.mk \ | 1265 | $(srcdir)/Makefile.in $(srcdir)/build-aux/automake.mk \ |
177 | @@ -1347,6 +1344,8 @@ am__relativize = \ | |||
178 | 1347 | DIST_ARCHIVES = $(distdir).tar.gz | 1344 | DIST_ARCHIVES = $(distdir).tar.gz |
179 | 1348 | GZIP_ENV = --best | 1345 | GZIP_ENV = --best |
180 | 1349 | DIST_TARGETS = dist-gzip | 1346 | DIST_TARGETS = dist-gzip |
181 | 1347 | # Exists only to be overridden by the user if desired. | ||
182 | 1348 | AM_DISTCHECK_DVI_TARGET = dvi | ||
183 | 1350 | distuninstallcheck_listfiles = find . -type f -print | 1349 | distuninstallcheck_listfiles = find . -type f -print |
184 | 1351 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | 1350 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
185 | 1352 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | 1351 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
186 | @@ -1367,6 +1366,8 @@ CFLAGS = @CFLAGS@ | |||
187 | 1367 | CGCCFLAGS = @CGCCFLAGS@ | 1366 | CGCCFLAGS = @CGCCFLAGS@ |
188 | 1368 | CPP = @CPP@ | 1367 | CPP = @CPP@ |
189 | 1369 | CPPFLAGS = @CPPFLAGS@ | 1368 | CPPFLAGS = @CPPFLAGS@ |
190 | 1369 | CSCOPE = @CSCOPE@ | ||
191 | 1370 | CTAGS = @CTAGS@ | ||
192 | 1370 | CXX = @CXX@ | 1371 | CXX = @CXX@ |
193 | 1371 | CXXCPP = @CXXCPP@ | 1372 | CXXCPP = @CXXCPP@ |
194 | 1372 | CXXDEPMODE = @CXXDEPMODE@ | 1373 | CXXDEPMODE = @CXXDEPMODE@ |
195 | @@ -1385,8 +1386,10 @@ ECHO_C = @ECHO_C@ | |||
196 | 1385 | ECHO_N = @ECHO_N@ | 1386 | ECHO_N = @ECHO_N@ |
197 | 1386 | ECHO_T = @ECHO_T@ | 1387 | ECHO_T = @ECHO_T@ |
198 | 1387 | EGREP = @EGREP@ | 1388 | EGREP = @EGREP@ |
199 | 1389 | ETAGS = @ETAGS@ | ||
200 | 1388 | EXEEXT = @EXEEXT@ | 1390 | EXEEXT = @EXEEXT@ |
201 | 1389 | FGREP = @FGREP@ | 1391 | FGREP = @FGREP@ |
202 | 1392 | FILECMD = @FILECMD@ | ||
203 | 1390 | FLAKE8_WERROR = @FLAKE8_WERROR@ | 1393 | FLAKE8_WERROR = @FLAKE8_WERROR@ |
204 | 1391 | GREP = @GREP@ | 1394 | GREP = @GREP@ |
205 | 1392 | HAVE_CXX11 = @HAVE_CXX11@ | 1395 | HAVE_CXX11 = @HAVE_CXX11@ |
206 | @@ -1521,6 +1524,7 @@ pdfdir = @pdfdir@ | |||
207 | 1521 | prefix = @prefix@ | 1524 | prefix = @prefix@ |
208 | 1522 | program_transform_name = @program_transform_name@ | 1525 | program_transform_name = @program_transform_name@ |
209 | 1523 | psdir = @psdir@ | 1526 | psdir = @psdir@ |
210 | 1527 | runstatedir = @runstatedir@ | ||
211 | 1524 | sbindir = @sbindir@ | 1528 | sbindir = @sbindir@ |
212 | 1525 | sharedstatedir = @sharedstatedir@ | 1529 | sharedstatedir = @sharedstatedir@ |
213 | 1526 | srcdir = @srcdir@ | 1530 | srcdir = @srcdir@ |
214 | @@ -2625,7 +2629,8 @@ TESTSUITE_AT = \ | |||
215 | 2625 | tests/mcast-snooping.at \ | 2629 | tests/mcast-snooping.at \ |
216 | 2626 | tests/packet-type-aware.at \ | 2630 | tests/packet-type-aware.at \ |
217 | 2627 | tests/nsh.at \ | 2631 | tests/nsh.at \ |
219 | 2628 | tests/drop-stats.at | 2632 | tests/drop-stats.at \ |
220 | 2633 | tests/learning-switch.at | ||
221 | 2629 | 2634 | ||
222 | 2630 | FUZZ_REGRESSION_TESTS = \ | 2635 | FUZZ_REGRESSION_TESTS = \ |
223 | 2631 | tests/fuzz-regression/flow_extract_fuzzer-5112775280951296 \ | 2636 | tests/fuzz-regression/flow_extract_fuzzer-5112775280951296 \ |
224 | @@ -5500,7 +5505,6 @@ cscopelist-am: $(am__tagged_files) | |||
225 | 5500 | distclean-tags: | 5505 | distclean-tags: |
226 | 5501 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | 5506 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
227 | 5502 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | 5507 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files |
228 | 5503 | |||
229 | 5504 | distdir: $(BUILT_SOURCES) | 5508 | distdir: $(BUILT_SOURCES) |
230 | 5505 | $(MAKE) $(AM_MAKEFLAGS) distdir-am | 5509 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
231 | 5506 | 5510 | ||
232 | @@ -5587,6 +5591,10 @@ dist-xz: distdir | |||
233 | 5587 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz | 5591 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
234 | 5588 | $(am__post_remove_distdir) | 5592 | $(am__post_remove_distdir) |
235 | 5589 | 5593 | ||
236 | 5594 | dist-zstd: distdir | ||
237 | 5595 | tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst | ||
238 | 5596 | $(am__post_remove_distdir) | ||
239 | 5597 | |||
240 | 5590 | dist-tarZ: distdir | 5598 | dist-tarZ: distdir |
241 | 5591 | @echo WARNING: "Support for distribution archives compressed with" \ | 5599 | @echo WARNING: "Support for distribution archives compressed with" \ |
242 | 5592 | "legacy program 'compress' is deprecated." >&2 | 5600 | "legacy program 'compress' is deprecated." >&2 |
243 | @@ -5629,6 +5637,8 @@ distcheck: dist | |||
244 | 5629 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ | 5637 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ |
245 | 5630 | *.zip*) \ | 5638 | *.zip*) \ |
246 | 5631 | unzip $(distdir).zip ;;\ | 5639 | unzip $(distdir).zip ;;\ |
247 | 5640 | *.tar.zst*) \ | ||
248 | 5641 | zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ | ||
249 | 5632 | esac | 5642 | esac |
250 | 5633 | chmod -R a-w $(distdir) | 5643 | chmod -R a-w $(distdir) |
251 | 5634 | chmod u+w $(distdir) | 5644 | chmod u+w $(distdir) |
252 | @@ -5644,7 +5654,7 @@ distcheck: dist | |||
253 | 5644 | $(DISTCHECK_CONFIGURE_FLAGS) \ | 5654 | $(DISTCHECK_CONFIGURE_FLAGS) \ |
254 | 5645 | --srcdir=../.. --prefix="$$dc_install_base" \ | 5655 | --srcdir=../.. --prefix="$$dc_install_base" \ |
255 | 5646 | && $(MAKE) $(AM_MAKEFLAGS) \ | 5656 | && $(MAKE) $(AM_MAKEFLAGS) \ |
257 | 5647 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | 5657 | && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ |
258 | 5648 | && $(MAKE) $(AM_MAKEFLAGS) check \ | 5658 | && $(MAKE) $(AM_MAKEFLAGS) check \ |
259 | 5649 | && $(MAKE) $(AM_MAKEFLAGS) install \ | 5659 | && $(MAKE) $(AM_MAKEFLAGS) install \ |
260 | 5650 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | 5660 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
261 | @@ -5702,8 +5712,12 @@ check: $(BUILT_SOURCES) | |||
262 | 5702 | $(MAKE) $(AM_MAKEFLAGS) check-recursive | 5712 | $(MAKE) $(AM_MAKEFLAGS) check-recursive |
263 | 5703 | all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(SCRIPTS) $(MANS) $(DATA) \ | 5713 | all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(SCRIPTS) $(MANS) $(DATA) \ |
264 | 5704 | $(HEADERS) config.h all-local | 5714 | $(HEADERS) config.h all-local |
265 | 5715 | install-EXTRAPROGRAMS: install-libLTLIBRARIES | ||
266 | 5716 | |||
267 | 5705 | install-binPROGRAMS: install-libLTLIBRARIES | 5717 | install-binPROGRAMS: install-libLTLIBRARIES |
268 | 5706 | 5718 | ||
269 | 5719 | install-sbinPROGRAMS: install-libLTLIBRARIES | ||
270 | 5720 | |||
271 | 5707 | installdirs: installdirs-recursive | 5721 | installdirs: installdirs-recursive |
272 | 5708 | installdirs-am: | 5722 | installdirs-am: |
273 | 5709 | for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(completiondir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(openflowincludedir)" "$(DESTDIR)$(openvswitchincludedir)"; do \ | 5723 | for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(completiondir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(openflowincludedir)" "$(DESTDIR)$(openvswitchincludedir)"; do \ |
274 | @@ -5711,7 +5725,8 @@ installdirs-am: | |||
275 | 5711 | done | 5725 | done |
276 | 5712 | install: $(BUILT_SOURCES) | 5726 | install: $(BUILT_SOURCES) |
277 | 5713 | $(MAKE) $(AM_MAKEFLAGS) install-recursive | 5727 | $(MAKE) $(AM_MAKEFLAGS) install-recursive |
279 | 5714 | install-exec: install-exec-recursive | 5728 | install-exec: $(BUILT_SOURCES) |
280 | 5729 | $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive | ||
281 | 5715 | install-data: install-data-recursive | 5730 | install-data: install-data-recursive |
282 | 5716 | uninstall: uninstall-recursive | 5731 | uninstall: uninstall-recursive |
283 | 5717 | 5732 | ||
284 | @@ -6539,7 +6554,7 @@ uninstall-man: uninstall-man1 uninstall-man5 uninstall-man7 \ | |||
285 | 6539 | uninstall-man8 | 6554 | uninstall-man8 |
286 | 6540 | 6555 | ||
287 | 6541 | .MAKE: $(am__recursive_targets) all check check-am install install-am \ | 6556 | .MAKE: $(am__recursive_targets) all check check-am install install-am \ |
289 | 6542 | install-strip | 6557 | install-exec install-strip |
290 | 6543 | 6558 | ||
291 | 6544 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \ | 6559 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \ |
292 | 6545 | am--depfiles am--refresh check check-am check-local clean \ | 6560 | am--depfiles am--refresh check check-am check-local clean \ |
293 | @@ -6548,7 +6563,7 @@ uninstall-man: uninstall-man1 uninstall-man5 uninstall-man7 \ | |||
294 | 6548 | clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ | 6563 | clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ |
295 | 6549 | clean-sbinPROGRAMS cscope cscopelist-am ctags ctags-am dist \ | 6564 | clean-sbinPROGRAMS cscope cscopelist-am ctags ctags-am dist \ |
296 | 6550 | dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ | 6565 | dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ |
298 | 6551 | dist-tarZ dist-xz dist-zip distcheck distclean \ | 6566 | dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \ |
299 | 6552 | distclean-compile distclean-generic distclean-hdr \ | 6567 | distclean-compile distclean-generic distclean-hdr \ |
300 | 6553 | distclean-libtool distclean-tags distcleancheck distdir \ | 6568 | distclean-libtool distclean-tags distcleancheck distdir \ |
301 | 6554 | distuninstallcheck dvi dvi-am html html-am info info-am \ | 6569 | distuninstallcheck dvi dvi-am html html-am info info-am \ |
302 | diff --git a/NEWS b/NEWS | |||
303 | index 2ea9ac0..9c0f9c1 100644 | |||
304 | --- a/NEWS | |||
305 | +++ b/NEWS | |||
306 | @@ -1,3 +1,13 @@ | |||
307 | 1 | v2.17.7 - 27 Jun 2023 | ||
308 | 2 | --------------------- | ||
309 | 3 | - Bug fixes | ||
310 | 4 | |||
311 | 5 | v2.17.6 - 06 Apr 2023 | ||
312 | 6 | --------------------- | ||
313 | 7 | - Bug fixes | ||
314 | 8 | - Security: | ||
315 | 9 | * Fixed vulnerability CVE-2023-1668. | ||
316 | 10 | |||
317 | 1 | v2.17.5 - 20 Dec 2022 | 11 | v2.17.5 - 20 Dec 2022 |
318 | 2 | --------------------- | 12 | --------------------- |
319 | 3 | - Bug fixes | 13 | - Bug fixes |
320 | diff --git a/aclocal.m4 b/aclocal.m4 | |||
321 | index 682f539..d11d4c3 100644 | |||
322 | --- a/aclocal.m4 | |||
323 | +++ b/aclocal.m4 | |||
324 | @@ -1,6 +1,6 @@ | |||
326 | 1 | # generated automatically by aclocal 1.16.1 -*- Autoconf -*- | 1 | # generated automatically by aclocal 1.16.5 -*- Autoconf -*- |
327 | 2 | 2 | ||
329 | 3 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | 3 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. |
330 | 4 | 4 | ||
331 | 5 | # This file is free software; the Free Software Foundation | 5 | # This file is free software; the Free Software Foundation |
332 | 6 | # gives unlimited permission to copy and/or distribute it, | 6 | # gives unlimited permission to copy and/or distribute it, |
333 | @@ -14,13 +14,13 @@ | |||
334 | 14 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | 14 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) |
335 | 15 | m4_ifndef([AC_AUTOCONF_VERSION], | 15 | m4_ifndef([AC_AUTOCONF_VERSION], |
336 | 16 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 16 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
339 | 17 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | 17 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, |
340 | 18 | [m4_warning([this file was generated for autoconf 2.69. | 18 | [m4_warning([this file was generated for autoconf 2.71. |
341 | 19 | You have another version of autoconf. It may work, but is not guaranteed to. | 19 | You have another version of autoconf. It may work, but is not guaranteed to. |
342 | 20 | If you have problems, you may need to regenerate the build system entirely. | 20 | If you have problems, you may need to regenerate the build system entirely. |
343 | 21 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | 21 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
344 | 22 | 22 | ||
346 | 23 | # Copyright (C) 2002-2018 Free Software Foundation, Inc. | 23 | # Copyright (C) 2002-2021 Free Software Foundation, Inc. |
347 | 24 | # | 24 | # |
348 | 25 | # This file is free software; the Free Software Foundation | 25 | # This file is free software; the Free Software Foundation |
349 | 26 | # gives unlimited permission to copy and/or distribute it, | 26 | # gives unlimited permission to copy and/or distribute it, |
350 | @@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], | |||
351 | 35 | [am__api_version='1.16' | 35 | [am__api_version='1.16' |
352 | 36 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | 36 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
353 | 37 | dnl require some minimum version. Point them to the right macro. | 37 | dnl require some minimum version. Point them to the right macro. |
355 | 38 | m4_if([$1], [1.16.1], [], | 38 | m4_if([$1], [1.16.5], [], |
356 | 39 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | 39 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
357 | 40 | ]) | 40 | ]) |
358 | 41 | 41 | ||
359 | @@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], []) | |||
360 | 51 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | 51 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
361 | 52 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | 52 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
362 | 53 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 53 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
364 | 54 | [AM_AUTOMAKE_VERSION([1.16.1])dnl | 54 | [AM_AUTOMAKE_VERSION([1.16.5])dnl |
365 | 55 | m4_ifndef([AC_AUTOCONF_VERSION], | 55 | m4_ifndef([AC_AUTOCONF_VERSION], |
366 | 56 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 56 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
367 | 57 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | 57 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
368 | 58 | 58 | ||
369 | 59 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | 59 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
370 | 60 | 60 | ||
372 | 61 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | 61 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. |
373 | 62 | # | 62 | # |
374 | 63 | # This file is free software; the Free Software Foundation | 63 | # This file is free software; the Free Software Foundation |
375 | 64 | # gives unlimited permission to copy and/or distribute it, | 64 | # gives unlimited permission to copy and/or distribute it, |
376 | @@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd` | |||
377 | 110 | 110 | ||
378 | 111 | # AM_CONDITIONAL -*- Autoconf -*- | 111 | # AM_CONDITIONAL -*- Autoconf -*- |
379 | 112 | 112 | ||
381 | 113 | # Copyright (C) 1997-2018 Free Software Foundation, Inc. | 113 | # Copyright (C) 1997-2021 Free Software Foundation, Inc. |
382 | 114 | # | 114 | # |
383 | 115 | # This file is free software; the Free Software Foundation | 115 | # This file is free software; the Free Software Foundation |
384 | 116 | # gives unlimited permission to copy and/or distribute it, | 116 | # gives unlimited permission to copy and/or distribute it, |
385 | @@ -141,7 +141,7 @@ AC_CONFIG_COMMANDS_PRE( | |||
386 | 141 | Usually this means the macro was only invoked conditionally.]]) | 141 | Usually this means the macro was only invoked conditionally.]]) |
387 | 142 | fi])]) | 142 | fi])]) |
388 | 143 | 143 | ||
390 | 144 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | 144 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. |
391 | 145 | # | 145 | # |
392 | 146 | # This file is free software; the Free Software Foundation | 146 | # This file is free software; the Free Software Foundation |
393 | 147 | # gives unlimited permission to copy and/or distribute it, | 147 | # gives unlimited permission to copy and/or distribute it, |
394 | @@ -332,7 +332,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl | |||
395 | 332 | 332 | ||
396 | 333 | # Generate code to set up dependency tracking. -*- Autoconf -*- | 333 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
397 | 334 | 334 | ||
399 | 335 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | 335 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. |
400 | 336 | # | 336 | # |
401 | 337 | # This file is free software; the Free Software Foundation | 337 | # This file is free software; the Free Software Foundation |
402 | 338 | # gives unlimited permission to copy and/or distribute it, | 338 | # gives unlimited permission to copy and/or distribute it, |
403 | @@ -371,7 +371,9 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |||
404 | 371 | done | 371 | done |
405 | 372 | if test $am_rc -ne 0; then | 372 | if test $am_rc -ne 0; then |
406 | 373 | AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments | 373 | AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments |
408 | 374 | for automatic dependency tracking. Try re-running configure with the | 374 | for automatic dependency tracking. If GNU make was not used, consider |
409 | 375 | re-running the configure script with MAKE="gmake" (or whatever is | ||
410 | 376 | necessary). You can also try re-running configure with the | ||
411 | 375 | '--disable-dependency-tracking' option to at least be able to build | 377 | '--disable-dependency-tracking' option to at least be able to build |
412 | 376 | the package (albeit without support for automatic dependency tracking).]) | 378 | the package (albeit without support for automatic dependency tracking).]) |
413 | 377 | fi | 379 | fi |
414 | @@ -398,7 +400,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |||
415 | 398 | 400 | ||
416 | 399 | # Do all the work for Automake. -*- Autoconf -*- | 401 | # Do all the work for Automake. -*- Autoconf -*- |
417 | 400 | 402 | ||
419 | 401 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | 403 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. |
420 | 402 | # | 404 | # |
421 | 403 | # This file is free software; the Free Software Foundation | 405 | # This file is free software; the Free Software Foundation |
422 | 404 | # gives unlimited permission to copy and/or distribute it, | 406 | # gives unlimited permission to copy and/or distribute it, |
423 | @@ -426,6 +428,10 @@ m4_defn([AC_PROG_CC]) | |||
424 | 426 | # release and drop the old call support. | 428 | # release and drop the old call support. |
425 | 427 | AC_DEFUN([AM_INIT_AUTOMAKE], | 429 | AC_DEFUN([AM_INIT_AUTOMAKE], |
426 | 428 | [AC_PREREQ([2.65])dnl | 430 | [AC_PREREQ([2.65])dnl |
427 | 431 | m4_ifdef([_$0_ALREADY_INIT], | ||
428 | 432 | [m4_fatal([$0 expanded multiple times | ||
429 | 433 | ]m4_defn([_$0_ALREADY_INIT]))], | ||
430 | 434 | [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl | ||
431 | 429 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | 435 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
432 | 430 | dnl the ones we care about. | 436 | dnl the ones we care about. |
433 | 431 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | 437 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
434 | @@ -462,7 +468,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |||
435 | 462 | [_AM_SET_OPTIONS([$1])dnl | 468 | [_AM_SET_OPTIONS([$1])dnl |
436 | 463 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | 469 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
437 | 464 | m4_if( | 470 | m4_if( |
439 | 465 | m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | 471 | m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), |
440 | 466 | [ok:ok],, | 472 | [ok:ok],, |
441 | 467 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | 473 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
442 | 468 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | 474 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
443 | @@ -514,6 +520,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |||
444 | 514 | [m4_define([AC_PROG_OBJCXX], | 520 | [m4_define([AC_PROG_OBJCXX], |
445 | 515 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | 521 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl |
446 | 516 | ]) | 522 | ]) |
447 | 523 | # Variables for tags utilities; see am/tags.am | ||
448 | 524 | if test -z "$CTAGS"; then | ||
449 | 525 | CTAGS=ctags | ||
450 | 526 | fi | ||
451 | 527 | AC_SUBST([CTAGS]) | ||
452 | 528 | if test -z "$ETAGS"; then | ||
453 | 529 | ETAGS=etags | ||
454 | 530 | fi | ||
455 | 531 | AC_SUBST([ETAGS]) | ||
456 | 532 | if test -z "$CSCOPE"; then | ||
457 | 533 | CSCOPE=cscope | ||
458 | 534 | fi | ||
459 | 535 | AC_SUBST([CSCOPE]) | ||
460 | 536 | |||
461 | 517 | AC_REQUIRE([AM_SILENT_RULES])dnl | 537 | AC_REQUIRE([AM_SILENT_RULES])dnl |
462 | 518 | dnl The testsuite driver may need to know about EXEEXT, so add the | 538 | dnl The testsuite driver may need to know about EXEEXT, so add the |
463 | 519 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | 539 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This |
464 | @@ -595,7 +615,7 @@ for _am_header in $config_headers :; do | |||
465 | 595 | done | 615 | done |
466 | 596 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | 616 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
467 | 597 | 617 | ||
469 | 598 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | 618 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. |
470 | 599 | # | 619 | # |
471 | 600 | # This file is free software; the Free Software Foundation | 620 | # This file is free software; the Free Software Foundation |
472 | 601 | # gives unlimited permission to copy and/or distribute it, | 621 | # gives unlimited permission to copy and/or distribute it, |
473 | @@ -616,7 +636,7 @@ if test x"${install_sh+set}" != xset; then | |||
474 | 616 | fi | 636 | fi |
475 | 617 | AC_SUBST([install_sh])]) | 637 | AC_SUBST([install_sh])]) |
476 | 618 | 638 | ||
478 | 619 | # Copyright (C) 2003-2018 Free Software Foundation, Inc. | 639 | # Copyright (C) 2003-2021 Free Software Foundation, Inc. |
479 | 620 | # | 640 | # |
480 | 621 | # This file is free software; the Free Software Foundation | 641 | # This file is free software; the Free Software Foundation |
481 | 622 | # gives unlimited permission to copy and/or distribute it, | 642 | # gives unlimited permission to copy and/or distribute it, |
482 | @@ -637,7 +657,7 @@ AC_SUBST([am__leading_dot])]) | |||
483 | 637 | 657 | ||
484 | 638 | # Check to see how 'make' treats includes. -*- Autoconf -*- | 658 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
485 | 639 | 659 | ||
487 | 640 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | 660 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. |
488 | 641 | # | 661 | # |
489 | 642 | # This file is free software; the Free Software Foundation | 662 | # This file is free software; the Free Software Foundation |
490 | 643 | # gives unlimited permission to copy and/or distribute it, | 663 | # gives unlimited permission to copy and/or distribute it, |
491 | @@ -680,7 +700,7 @@ AC_SUBST([am__quote])]) | |||
492 | 680 | 700 | ||
493 | 681 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | 701 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
494 | 682 | 702 | ||
496 | 683 | # Copyright (C) 1997-2018 Free Software Foundation, Inc. | 703 | # Copyright (C) 1997-2021 Free Software Foundation, Inc. |
497 | 684 | # | 704 | # |
498 | 685 | # This file is free software; the Free Software Foundation | 705 | # This file is free software; the Free Software Foundation |
499 | 686 | # gives unlimited permission to copy and/or distribute it, | 706 | # gives unlimited permission to copy and/or distribute it, |
500 | @@ -701,12 +721,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN], | |||
501 | 701 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 721 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
502 | 702 | AC_REQUIRE_AUX_FILE([missing])dnl | 722 | AC_REQUIRE_AUX_FILE([missing])dnl |
503 | 703 | if test x"${MISSING+set}" != xset; then | 723 | if test x"${MISSING+set}" != xset; then |
510 | 704 | case $am_aux_dir in | 724 | MISSING="\${SHELL} '$am_aux_dir/missing'" |
505 | 705 | *\ * | *\ *) | ||
506 | 706 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
507 | 707 | *) | ||
508 | 708 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
509 | 709 | esac | ||
511 | 710 | fi | 725 | fi |
512 | 711 | # Use eval to expand $SHELL | 726 | # Use eval to expand $SHELL |
513 | 712 | if eval "$MISSING --is-lightweight"; then | 727 | if eval "$MISSING --is-lightweight"; then |
514 | @@ -719,7 +734,7 @@ fi | |||
515 | 719 | 734 | ||
516 | 720 | # Helper functions for option handling. -*- Autoconf -*- | 735 | # Helper functions for option handling. -*- Autoconf -*- |
517 | 721 | 736 | ||
519 | 722 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | 737 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. |
520 | 723 | # | 738 | # |
521 | 724 | # This file is free software; the Free Software Foundation | 739 | # This file is free software; the Free Software Foundation |
522 | 725 | # gives unlimited permission to copy and/or distribute it, | 740 | # gives unlimited permission to copy and/or distribute it, |
523 | @@ -748,7 +763,7 @@ AC_DEFUN([_AM_SET_OPTIONS], | |||
524 | 748 | AC_DEFUN([_AM_IF_OPTION], | 763 | AC_DEFUN([_AM_IF_OPTION], |
525 | 749 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | 764 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
526 | 750 | 765 | ||
528 | 751 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | 766 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. |
529 | 752 | # | 767 | # |
530 | 753 | # This file is free software; the Free Software Foundation | 768 | # This file is free software; the Free Software Foundation |
531 | 754 | # gives unlimited permission to copy and/or distribute it, | 769 | # gives unlimited permission to copy and/or distribute it, |
532 | @@ -795,7 +810,7 @@ AC_LANG_POP([C])]) | |||
533 | 795 | # For backward compatibility. | 810 | # For backward compatibility. |
534 | 796 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | 811 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
535 | 797 | 812 | ||
537 | 798 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | 813 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. |
538 | 799 | # | 814 | # |
539 | 800 | # This file is free software; the Free Software Foundation | 815 | # This file is free software; the Free Software Foundation |
540 | 801 | # gives unlimited permission to copy and/or distribute it, | 816 | # gives unlimited permission to copy and/or distribute it, |
541 | @@ -814,7 +829,7 @@ AC_DEFUN([AM_RUN_LOG], | |||
542 | 814 | 829 | ||
543 | 815 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | 830 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
544 | 816 | 831 | ||
546 | 817 | # Copyright (C) 1996-2018 Free Software Foundation, Inc. | 832 | # Copyright (C) 1996-2021 Free Software Foundation, Inc. |
547 | 818 | # | 833 | # |
548 | 819 | # This file is free software; the Free Software Foundation | 834 | # This file is free software; the Free Software Foundation |
549 | 820 | # gives unlimited permission to copy and/or distribute it, | 835 | # gives unlimited permission to copy and/or distribute it, |
550 | @@ -895,7 +910,7 @@ AC_CONFIG_COMMANDS_PRE( | |||
551 | 895 | rm -f conftest.file | 910 | rm -f conftest.file |
552 | 896 | ]) | 911 | ]) |
553 | 897 | 912 | ||
555 | 898 | # Copyright (C) 2009-2018 Free Software Foundation, Inc. | 913 | # Copyright (C) 2009-2021 Free Software Foundation, Inc. |
556 | 899 | # | 914 | # |
557 | 900 | # This file is free software; the Free Software Foundation | 915 | # This file is free software; the Free Software Foundation |
558 | 901 | # gives unlimited permission to copy and/or distribute it, | 916 | # gives unlimited permission to copy and/or distribute it, |
559 | @@ -955,7 +970,7 @@ AC_SUBST([AM_BACKSLASH])dnl | |||
560 | 955 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | 970 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
561 | 956 | ]) | 971 | ]) |
562 | 957 | 972 | ||
564 | 958 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. | 973 | # Copyright (C) 2001-2021 Free Software Foundation, Inc. |
565 | 959 | # | 974 | # |
566 | 960 | # This file is free software; the Free Software Foundation | 975 | # This file is free software; the Free Software Foundation |
567 | 961 | # gives unlimited permission to copy and/or distribute it, | 976 | # gives unlimited permission to copy and/or distribute it, |
568 | @@ -983,7 +998,7 @@ fi | |||
569 | 983 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | 998 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
570 | 984 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | 999 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
571 | 985 | 1000 | ||
573 | 986 | # Copyright (C) 2006-2018 Free Software Foundation, Inc. | 1001 | # Copyright (C) 2006-2021 Free Software Foundation, Inc. |
574 | 987 | # | 1002 | # |
575 | 988 | # This file is free software; the Free Software Foundation | 1003 | # This file is free software; the Free Software Foundation |
576 | 989 | # gives unlimited permission to copy and/or distribute it, | 1004 | # gives unlimited permission to copy and/or distribute it, |
577 | @@ -1002,7 +1017,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |||
578 | 1002 | 1017 | ||
579 | 1003 | # Check how to create a tarball. -*- Autoconf -*- | 1018 | # Check how to create a tarball. -*- Autoconf -*- |
580 | 1004 | 1019 | ||
582 | 1005 | # Copyright (C) 2004-2018 Free Software Foundation, Inc. | 1020 | # Copyright (C) 2004-2021 Free Software Foundation, Inc. |
583 | 1006 | # | 1021 | # |
584 | 1007 | # This file is free software; the Free Software Foundation | 1022 | # This file is free software; the Free Software Foundation |
585 | 1008 | # gives unlimited permission to copy and/or distribute it, | 1023 | # gives unlimited permission to copy and/or distribute it, |
586 | diff --git a/build-aux/compile b/build-aux/compile | |||
587 | index 99e5052..df363c8 100755 | |||
588 | --- a/build-aux/compile | |||
589 | +++ b/build-aux/compile | |||
590 | @@ -3,7 +3,7 @@ | |||
591 | 3 | 3 | ||
592 | 4 | scriptversion=2018-03-07.03; # UTC | 4 | scriptversion=2018-03-07.03; # UTC |
593 | 5 | 5 | ||
595 | 6 | # Copyright (C) 1999-2018 Free Software Foundation, Inc. | 6 | # Copyright (C) 1999-2021 Free Software Foundation, Inc. |
596 | 7 | # Written by Tom Tromey <tromey@cygnus.com>. | 7 | # Written by Tom Tromey <tromey@cygnus.com>. |
597 | 8 | # | 8 | # |
598 | 9 | # This program is free software; you can redistribute it and/or modify | 9 | # This program is free software; you can redistribute it and/or modify |
599 | @@ -53,7 +53,7 @@ func_file_conv () | |||
600 | 53 | MINGW*) | 53 | MINGW*) |
601 | 54 | file_conv=mingw | 54 | file_conv=mingw |
602 | 55 | ;; | 55 | ;; |
604 | 56 | CYGWIN*) | 56 | CYGWIN* | MSYS*) |
605 | 57 | file_conv=cygwin | 57 | file_conv=cygwin |
606 | 58 | ;; | 58 | ;; |
607 | 59 | *) | 59 | *) |
608 | @@ -67,7 +67,7 @@ func_file_conv () | |||
609 | 67 | mingw/*) | 67 | mingw/*) |
610 | 68 | file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` | 68 | file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` |
611 | 69 | ;; | 69 | ;; |
613 | 70 | cygwin/*) | 70 | cygwin/* | msys/*) |
614 | 71 | file=`cygpath -m "$file" || echo "$file"` | 71 | file=`cygpath -m "$file" || echo "$file"` |
615 | 72 | ;; | 72 | ;; |
616 | 73 | wine/*) | 73 | wine/*) |
617 | diff --git a/build-aux/config.guess b/build-aux/config.guess | |||
618 | index 256083a..c7f17e8 100755 | |||
619 | --- a/build-aux/config.guess | |||
620 | +++ b/build-aux/config.guess | |||
621 | @@ -1,12 +1,14 @@ | |||
623 | 1 | #! /bin/sh | 1 | #!/usr/bin/sh |
624 | 2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. |
626 | 3 | # Copyright 1992-2018 Free Software Foundation, Inc. | 3 | # Copyright 1992-2022 Free Software Foundation, Inc. |
627 | 4 | 4 | ||
629 | 5 | timestamp='2018-03-08' | 5 | # shellcheck disable=SC2006,SC2268 # see below for rationale |
630 | 6 | |||
631 | 7 | timestamp='2022-05-25' | ||
632 | 6 | 8 | ||
633 | 7 | # This file is free software; you can redistribute it and/or modify it | 9 | # This file is free software; you can redistribute it and/or modify it |
634 | 8 | # under the terms of the GNU General Public License as published by | 10 | # under the terms of the GNU General Public License as published by |
636 | 9 | # the Free Software Foundation; either version 3 of the License, or | 11 | # the Free Software Foundation, either version 3 of the License, or |
637 | 10 | # (at your option) any later version. | 12 | # (at your option) any later version. |
638 | 11 | # | 13 | # |
639 | 12 | # This program is distributed in the hope that it will be useful, but | 14 | # This program is distributed in the hope that it will be useful, but |
640 | @@ -27,11 +29,19 @@ timestamp='2018-03-08' | |||
641 | 27 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. | 29 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
642 | 28 | # | 30 | # |
643 | 29 | # You can get the latest version of this script from: | 31 | # You can get the latest version of this script from: |
645 | 30 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | 32 | # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess |
646 | 31 | # | 33 | # |
647 | 32 | # Please send patches to <config-patches@gnu.org>. | 34 | # Please send patches to <config-patches@gnu.org>. |
648 | 33 | 35 | ||
649 | 34 | 36 | ||
650 | 37 | # The "shellcheck disable" line above the timestamp inhibits complaints | ||
651 | 38 | # about features and limitations of the classic Bourne shell that were | ||
652 | 39 | # superseded or lifted in POSIX. However, this script identifies a wide | ||
653 | 40 | # variety of pre-POSIX systems that do not have POSIX shells at all, and | ||
654 | 41 | # even some reasonably current systems (Solaris 10 as case-in-point) still | ||
655 | 42 | # have a pre-POSIX /bin/sh. | ||
656 | 43 | |||
657 | 44 | |||
658 | 35 | me=`echo "$0" | sed -e 's,.*/,,'` | 45 | me=`echo "$0" | sed -e 's,.*/,,'` |
659 | 36 | 46 | ||
660 | 37 | usage="\ | 47 | usage="\ |
661 | @@ -50,7 +60,7 @@ version="\ | |||
662 | 50 | GNU config.guess ($timestamp) | 60 | GNU config.guess ($timestamp) |
663 | 51 | 61 | ||
664 | 52 | Originally written by Per Bothner. | 62 | Originally written by Per Bothner. |
666 | 53 | Copyright 1992-2018 Free Software Foundation, Inc. | 63 | Copyright 1992-2022 Free Software Foundation, Inc. |
667 | 54 | 64 | ||
668 | 55 | This is free software; see the source for copying conditions. There is NO | 65 | This is free software; see the source for copying conditions. There is NO |
669 | 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 66 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
670 | @@ -84,7 +94,8 @@ if test $# != 0; then | |||
671 | 84 | exit 1 | 94 | exit 1 |
672 | 85 | fi | 95 | fi |
673 | 86 | 96 | ||
675 | 87 | trap 'exit 1' 1 2 15 | 97 | # Just in case it came from the environment. |
676 | 98 | GUESS= | ||
677 | 88 | 99 | ||
678 | 89 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a | 100 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
679 | 90 | # compiler to aid in system detection is discouraged as it requires | 101 | # compiler to aid in system detection is discouraged as it requires |
680 | @@ -96,73 +107,90 @@ trap 'exit 1' 1 2 15 | |||
681 | 96 | 107 | ||
682 | 97 | # Portable tmp directory creation inspired by the Autoconf team. | 108 | # Portable tmp directory creation inspired by the Autoconf team. |
683 | 98 | 109 | ||
708 | 99 | set_cc_for_build=' | 110 | tmp= |
709 | 100 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | 111 | # shellcheck disable=SC2172 |
710 | 101 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | 112 | trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 |
711 | 102 | : ${TMPDIR=/tmp} ; | 113 | |
712 | 103 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | 114 | set_cc_for_build() { |
713 | 104 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | 115 | # prevent multiple calls if $tmp is already set |
714 | 105 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | 116 | test "$tmp" && return 0 |
715 | 106 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | 117 | : "${TMPDIR=/tmp}" |
716 | 107 | dummy=$tmp/dummy ; | 118 | # shellcheck disable=SC2039,SC3028 |
717 | 108 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | 119 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
718 | 109 | case $CC_FOR_BUILD,$HOST_CC,$CC in | 120 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || |
719 | 110 | ,,) echo "int x;" > "$dummy.c" ; | 121 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || |
720 | 111 | for c in cc gcc c89 c99 ; do | 122 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } |
721 | 112 | if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then | 123 | dummy=$tmp/dummy |
722 | 113 | CC_FOR_BUILD="$c"; break ; | 124 | case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in |
723 | 114 | fi ; | 125 | ,,) echo "int x;" > "$dummy.c" |
724 | 115 | done ; | 126 | for driver in cc gcc c89 c99 ; do |
725 | 116 | if test x"$CC_FOR_BUILD" = x ; then | 127 | if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then |
726 | 117 | CC_FOR_BUILD=no_compiler_found ; | 128 | CC_FOR_BUILD=$driver |
727 | 118 | fi | 129 | break |
728 | 119 | ;; | 130 | fi |
729 | 120 | ,,*) CC_FOR_BUILD=$CC ;; | 131 | done |
730 | 121 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | 132 | if test x"$CC_FOR_BUILD" = x ; then |
731 | 122 | esac ; set_cc_for_build= ;' | 133 | CC_FOR_BUILD=no_compiler_found |
732 | 134 | fi | ||
733 | 135 | ;; | ||
734 | 136 | ,,*) CC_FOR_BUILD=$CC ;; | ||
735 | 137 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | ||
736 | 138 | esac | ||
737 | 139 | } | ||
738 | 123 | 140 | ||
739 | 124 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. | 141 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
740 | 125 | # (ghazi@noc.rutgers.edu 1994-08-24) | 142 | # (ghazi@noc.rutgers.edu 1994-08-24) |
742 | 126 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | 143 | if test -f /.attbin/uname ; then |
743 | 127 | PATH=$PATH:/.attbin ; export PATH | 144 | PATH=$PATH:/.attbin ; export PATH |
744 | 128 | fi | 145 | fi |
745 | 129 | 146 | ||
746 | 130 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | 147 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
747 | 131 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | 148 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
749 | 132 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | 149 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
750 | 133 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | 150 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
751 | 134 | 151 | ||
753 | 135 | case "$UNAME_SYSTEM" in | 152 | case $UNAME_SYSTEM in |
754 | 136 | Linux|GNU|GNU/*) | 153 | Linux|GNU|GNU/*) |
758 | 137 | # If the system lacks a compiler, then just pick glibc. | 154 | LIBC=unknown |
756 | 138 | # We could probably try harder. | ||
757 | 139 | LIBC=gnu | ||
759 | 140 | 155 | ||
761 | 141 | eval "$set_cc_for_build" | 156 | set_cc_for_build |
762 | 142 | cat <<-EOF > "$dummy.c" | 157 | cat <<-EOF > "$dummy.c" |
763 | 143 | #include <features.h> | 158 | #include <features.h> |
764 | 144 | #if defined(__UCLIBC__) | 159 | #if defined(__UCLIBC__) |
765 | 145 | LIBC=uclibc | 160 | LIBC=uclibc |
766 | 146 | #elif defined(__dietlibc__) | 161 | #elif defined(__dietlibc__) |
767 | 147 | LIBC=dietlibc | 162 | LIBC=dietlibc |
769 | 148 | #else | 163 | #elif defined(__GLIBC__) |
770 | 149 | LIBC=gnu | 164 | LIBC=gnu |
771 | 165 | #else | ||
772 | 166 | #include <stdarg.h> | ||
773 | 167 | /* First heuristic to detect musl libc. */ | ||
774 | 168 | #ifdef __DEFINED_va_list | ||
775 | 169 | LIBC=musl | ||
776 | 170 | #endif | ||
777 | 150 | #endif | 171 | #endif |
778 | 151 | EOF | 172 | EOF |
780 | 152 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" | 173 | cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` |
781 | 174 | eval "$cc_set_libc" | ||
782 | 153 | 175 | ||
788 | 154 | # If ldd exists, use it to detect musl libc. | 176 | # Second heuristic to detect musl libc. |
789 | 155 | if command -v ldd >/dev/null && \ | 177 | if [ "$LIBC" = unknown ] && |
790 | 156 | ldd --version 2>&1 | grep -q ^musl | 178 | command -v ldd >/dev/null && |
791 | 157 | then | 179 | ldd --version 2>&1 | grep -q ^musl; then |
792 | 158 | LIBC=musl | 180 | LIBC=musl |
793 | 181 | fi | ||
794 | 182 | |||
795 | 183 | # If the system lacks a compiler, then just pick glibc. | ||
796 | 184 | # We could probably try harder. | ||
797 | 185 | if [ "$LIBC" = unknown ]; then | ||
798 | 186 | LIBC=gnu | ||
799 | 159 | fi | 187 | fi |
800 | 160 | ;; | 188 | ;; |
801 | 161 | esac | 189 | esac |
802 | 162 | 190 | ||
803 | 163 | # Note: order is significant - the case branches are not exclusive. | 191 | # Note: order is significant - the case branches are not exclusive. |
804 | 164 | 192 | ||
806 | 165 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | 193 | case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in |
807 | 166 | *:NetBSD:*:*) | 194 | *:NetBSD:*:*) |
808 | 167 | # NetBSD (nbsd) targets should (where applicable) match one or | 195 | # NetBSD (nbsd) targets should (where applicable) match one or |
809 | 168 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | 196 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
810 | @@ -174,12 +202,12 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |||
811 | 174 | # | 202 | # |
812 | 175 | # Note: NetBSD doesn't particularly care about the vendor | 203 | # Note: NetBSD doesn't particularly care about the vendor |
813 | 176 | # portion of the name. We always set it to "unknown". | 204 | # portion of the name. We always set it to "unknown". |
814 | 177 | sysctl="sysctl -n hw.machine_arch" | ||
815 | 178 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ | 205 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ |
818 | 179 | "/sbin/$sysctl" 2>/dev/null || \ | 206 | /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ |
819 | 180 | "/usr/sbin/$sysctl" 2>/dev/null || \ | 207 | /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ |
820 | 181 | echo unknown)` | 208 | echo unknown)` |
822 | 182 | case "$UNAME_MACHINE_ARCH" in | 209 | case $UNAME_MACHINE_ARCH in |
823 | 210 | aarch64eb) machine=aarch64_be-unknown ;; | ||
824 | 183 | armeb) machine=armeb-unknown ;; | 211 | armeb) machine=armeb-unknown ;; |
825 | 184 | arm*) machine=arm-unknown ;; | 212 | arm*) machine=arm-unknown ;; |
826 | 185 | sh3el) machine=shl-unknown ;; | 213 | sh3el) machine=shl-unknown ;; |
827 | @@ -188,18 +216,18 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |||
828 | 188 | earmv*) | 216 | earmv*) |
829 | 189 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | 217 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` |
830 | 190 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` | 218 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` |
832 | 191 | machine="${arch}${endian}"-unknown | 219 | machine=${arch}${endian}-unknown |
833 | 192 | ;; | 220 | ;; |
835 | 193 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | 221 | *) machine=$UNAME_MACHINE_ARCH-unknown ;; |
836 | 194 | esac | 222 | esac |
837 | 195 | # The Operating System including object format, if it has switched | 223 | # The Operating System including object format, if it has switched |
838 | 196 | # to ELF recently (or will in the future) and ABI. | 224 | # to ELF recently (or will in the future) and ABI. |
840 | 197 | case "$UNAME_MACHINE_ARCH" in | 225 | case $UNAME_MACHINE_ARCH in |
841 | 198 | earm*) | 226 | earm*) |
842 | 199 | os=netbsdelf | 227 | os=netbsdelf |
843 | 200 | ;; | 228 | ;; |
844 | 201 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | 229 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
846 | 202 | eval "$set_cc_for_build" | 230 | set_cc_for_build |
847 | 203 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 231 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
848 | 204 | | grep -q __ELF__ | 232 | | grep -q __ELF__ |
849 | 205 | then | 233 | then |
850 | @@ -215,7 +243,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |||
851 | 215 | ;; | 243 | ;; |
852 | 216 | esac | 244 | esac |
853 | 217 | # Determine ABI tags. | 245 | # Determine ABI tags. |
855 | 218 | case "$UNAME_MACHINE_ARCH" in | 246 | case $UNAME_MACHINE_ARCH in |
856 | 219 | earm*) | 247 | earm*) |
857 | 220 | expr='s/^earmv[0-9]/-eabi/;s/eb$//' | 248 | expr='s/^earmv[0-9]/-eabi/;s/eb$//' |
858 | 221 | abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` | 249 | abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` |
859 | @@ -226,7 +254,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |||
860 | 226 | # thus, need a distinct triplet. However, they do not need | 254 | # thus, need a distinct triplet. However, they do not need |
861 | 227 | # kernel version information, so it can be replaced with a | 255 | # kernel version information, so it can be replaced with a |
862 | 228 | # suitable tag, in the style of linux-gnu. | 256 | # suitable tag, in the style of linux-gnu. |
864 | 229 | case "$UNAME_VERSION" in | 257 | case $UNAME_VERSION in |
865 | 230 | Debian*) | 258 | Debian*) |
866 | 231 | release='-gnu' | 259 | release='-gnu' |
867 | 232 | ;; | 260 | ;; |
868 | @@ -237,45 +265,57 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |||
869 | 237 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | 265 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
870 | 238 | # contains redundant information, the shorter form: | 266 | # contains redundant information, the shorter form: |
871 | 239 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | 267 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
874 | 240 | echo "$machine-${os}${release}${abi}" | 268 | GUESS=$machine-${os}${release}${abi-} |
875 | 241 | exit ;; | 269 | ;; |
876 | 242 | *:Bitrig:*:*) | 270 | *:Bitrig:*:*) |
877 | 243 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | 271 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
880 | 244 | echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" | 272 | GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE |
881 | 245 | exit ;; | 273 | ;; |
882 | 246 | *:OpenBSD:*:*) | 274 | *:OpenBSD:*:*) |
883 | 247 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | 275 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
886 | 248 | echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" | 276 | GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE |
887 | 249 | exit ;; | 277 | ;; |
888 | 278 | *:SecBSD:*:*) | ||
889 | 279 | UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` | ||
890 | 280 | GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE | ||
891 | 281 | ;; | ||
892 | 250 | *:LibertyBSD:*:*) | 282 | *:LibertyBSD:*:*) |
893 | 251 | UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` | 283 | UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` |
896 | 252 | echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" | 284 | GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE |
897 | 253 | exit ;; | 285 | ;; |
898 | 254 | *:MidnightBSD:*:*) | 286 | *:MidnightBSD:*:*) |
901 | 255 | echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" | 287 | GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE |
902 | 256 | exit ;; | 288 | ;; |
903 | 257 | *:ekkoBSD:*:*) | 289 | *:ekkoBSD:*:*) |
906 | 258 | echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" | 290 | GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE |
907 | 259 | exit ;; | 291 | ;; |
908 | 260 | *:SolidBSD:*:*) | 292 | *:SolidBSD:*:*) |
911 | 261 | echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" | 293 | GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE |
912 | 262 | exit ;; | 294 | ;; |
913 | 295 | *:OS108:*:*) | ||
914 | 296 | GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE | ||
915 | 297 | ;; | ||
916 | 263 | macppc:MirBSD:*:*) | 298 | macppc:MirBSD:*:*) |
919 | 264 | echo powerpc-unknown-mirbsd"$UNAME_RELEASE" | 299 | GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE |
920 | 265 | exit ;; | 300 | ;; |
921 | 266 | *:MirBSD:*:*) | 301 | *:MirBSD:*:*) |
924 | 267 | echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" | 302 | GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE |
925 | 268 | exit ;; | 303 | ;; |
926 | 269 | *:Sortix:*:*) | 304 | *:Sortix:*:*) |
929 | 270 | echo "$UNAME_MACHINE"-unknown-sortix | 305 | GUESS=$UNAME_MACHINE-unknown-sortix |
930 | 271 | exit ;; | 306 | ;; |
931 | 307 | *:Twizzler:*:*) | ||
932 | 308 | GUESS=$UNAME_MACHINE-unknown-twizzler | ||
933 | 309 | ;; | ||
934 | 272 | *:Redox:*:*) | 310 | *:Redox:*:*) |
937 | 273 | echo "$UNAME_MACHINE"-unknown-redox | 311 | GUESS=$UNAME_MACHINE-unknown-redox |
938 | 274 | exit ;; | 312 | ;; |
939 | 275 | mips:OSF1:*.*) | 313 | mips:OSF1:*.*) |
942 | 276 | echo mips-dec-osf1 | 314 | GUESS=mips-dec-osf1 |
943 | 277 | exit ;; | 315 | ;; |
944 | 278 | alpha:OSF1:*:*) | 316 | alpha:OSF1:*:*) |
945 | 317 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | ||
946 | 318 | trap '' 0 | ||
947 | 279 | case $UNAME_RELEASE in | 319 | case $UNAME_RELEASE in |
948 | 280 | *4.0) | 320 | *4.0) |
949 | 281 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | 321 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
950 | @@ -289,7 +329,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |||
951 | 289 | # covers most systems running today. This code pipes the CPU | 329 | # covers most systems running today. This code pipes the CPU |
952 | 290 | # types through head -n 1, so we only detect the type of CPU 0. | 330 | # types through head -n 1, so we only detect the type of CPU 0. |
953 | 291 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` | 331 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
955 | 292 | case "$ALPHA_CPU_TYPE" in | 332 | case $ALPHA_CPU_TYPE in |
956 | 293 | "EV4 (21064)") | 333 | "EV4 (21064)") |
957 | 294 | UNAME_MACHINE=alpha ;; | 334 | UNAME_MACHINE=alpha ;; |
958 | 295 | "EV4.5 (21064)") | 335 | "EV4.5 (21064)") |
959 | @@ -326,117 +366,121 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |||
960 | 326 | # A Tn.n version is a released field test version. | 366 | # A Tn.n version is a released field test version. |
961 | 327 | # A Xn.n version is an unreleased experimental baselevel. | 367 | # A Xn.n version is an unreleased experimental baselevel. |
962 | 328 | # 1.2 uses "1.2" for uname -r. | 368 | # 1.2 uses "1.2" for uname -r. |
968 | 329 | echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | 369 | OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` |
969 | 330 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | 370 | GUESS=$UNAME_MACHINE-dec-osf$OSF_REL |
970 | 331 | exitcode=$? | 371 | ;; |
966 | 332 | trap '' 0 | ||
967 | 333 | exit $exitcode ;; | ||
971 | 334 | Amiga*:UNIX_System_V:4.0:*) | 372 | Amiga*:UNIX_System_V:4.0:*) |
974 | 335 | echo m68k-unknown-sysv4 | 373 | GUESS=m68k-unknown-sysv4 |
975 | 336 | exit ;; | 374 | ;; |
976 | 337 | *:[Aa]miga[Oo][Ss]:*:*) | 375 | *:[Aa]miga[Oo][Ss]:*:*) |
979 | 338 | echo "$UNAME_MACHINE"-unknown-amigaos | 376 | GUESS=$UNAME_MACHINE-unknown-amigaos |
980 | 339 | exit ;; | 377 | ;; |
981 | 340 | *:[Mm]orph[Oo][Ss]:*:*) | 378 | *:[Mm]orph[Oo][Ss]:*:*) |
984 | 341 | echo "$UNAME_MACHINE"-unknown-morphos | 379 | GUESS=$UNAME_MACHINE-unknown-morphos |
985 | 342 | exit ;; | 380 | ;; |
986 | 343 | *:OS/390:*:*) | 381 | *:OS/390:*:*) |
989 | 344 | echo i370-ibm-openedition | 382 | GUESS=i370-ibm-openedition |
990 | 345 | exit ;; | 383 | ;; |
991 | 346 | *:z/VM:*:*) | 384 | *:z/VM:*:*) |
994 | 347 | echo s390-ibm-zvmoe | 385 | GUESS=s390-ibm-zvmoe |
995 | 348 | exit ;; | 386 | ;; |
996 | 349 | *:OS400:*:*) | 387 | *:OS400:*:*) |
999 | 350 | echo powerpc-ibm-os400 | 388 | GUESS=powerpc-ibm-os400 |
1000 | 351 | exit ;; | 389 | ;; |
1001 | 352 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 390 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
1004 | 353 | echo arm-acorn-riscix"$UNAME_RELEASE" | 391 | GUESS=arm-acorn-riscix$UNAME_RELEASE |
1005 | 354 | exit ;; | 392 | ;; |
1006 | 355 | arm*:riscos:*:*|arm*:RISCOS:*:*) | 393 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
1009 | 356 | echo arm-unknown-riscos | 394 | GUESS=arm-unknown-riscos |
1010 | 357 | exit ;; | 395 | ;; |
1011 | 358 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | 396 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
1014 | 359 | echo hppa1.1-hitachi-hiuxmpp | 397 | GUESS=hppa1.1-hitachi-hiuxmpp |
1015 | 360 | exit ;; | 398 | ;; |
1016 | 361 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | 399 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
1017 | 362 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | 400 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
1024 | 363 | if test "`(/bin/universe) 2>/dev/null`" = att ; then | 401 | case `(/bin/universe) 2>/dev/null` in |
1025 | 364 | echo pyramid-pyramid-sysv3 | 402 | att) GUESS=pyramid-pyramid-sysv3 ;; |
1026 | 365 | else | 403 | *) GUESS=pyramid-pyramid-bsd ;; |
1027 | 366 | echo pyramid-pyramid-bsd | 404 | esac |
1028 | 367 | fi | 405 | ;; |
1023 | 368 | exit ;; | ||
1029 | 369 | NILE*:*:*:dcosx) | 406 | NILE*:*:*:dcosx) |
1032 | 370 | echo pyramid-pyramid-svr4 | 407 | GUESS=pyramid-pyramid-svr4 |
1033 | 371 | exit ;; | 408 | ;; |
1034 | 372 | DRS?6000:unix:4.0:6*) | 409 | DRS?6000:unix:4.0:6*) |
1037 | 373 | echo sparc-icl-nx6 | 410 | GUESS=sparc-icl-nx6 |
1038 | 374 | exit ;; | 411 | ;; |
1039 | 375 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | 412 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
1040 | 376 | case `/usr/bin/uname -p` in | 413 | case `/usr/bin/uname -p` in |
1043 | 377 | sparc) echo sparc-icl-nx7; exit ;; | 414 | sparc) GUESS=sparc-icl-nx7 ;; |
1044 | 378 | esac ;; | 415 | esac |
1045 | 416 | ;; | ||
1046 | 379 | s390x:SunOS:*:*) | 417 | s390x:SunOS:*:*) |
1049 | 380 | echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | 418 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
1050 | 381 | exit ;; | 419 | GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL |
1051 | 420 | ;; | ||
1052 | 382 | sun4H:SunOS:5.*:*) | 421 | sun4H:SunOS:5.*:*) |
1055 | 383 | echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | 422 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
1056 | 384 | exit ;; | 423 | GUESS=sparc-hal-solaris2$SUN_REL |
1057 | 424 | ;; | ||
1058 | 385 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | 425 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
1061 | 386 | echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | 426 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
1062 | 387 | exit ;; | 427 | GUESS=sparc-sun-solaris2$SUN_REL |
1063 | 428 | ;; | ||
1064 | 388 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | 429 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
1067 | 389 | echo i386-pc-auroraux"$UNAME_RELEASE" | 430 | GUESS=i386-pc-auroraux$UNAME_RELEASE |
1068 | 390 | exit ;; | 431 | ;; |
1069 | 391 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | 432 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
1071 | 392 | eval "$set_cc_for_build" | 433 | set_cc_for_build |
1072 | 393 | SUN_ARCH=i386 | 434 | SUN_ARCH=i386 |
1073 | 394 | # If there is a compiler, see if it is configured for 64-bit objects. | 435 | # If there is a compiler, see if it is configured for 64-bit objects. |
1074 | 395 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | 436 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
1075 | 396 | # This test works for both compilers. | 437 | # This test works for both compilers. |
1077 | 397 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | 438 | if test "$CC_FOR_BUILD" != no_compiler_found; then |
1078 | 398 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | 439 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
1080 | 399 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | 440 | (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ |
1081 | 400 | grep IS_64BIT_ARCH >/dev/null | 441 | grep IS_64BIT_ARCH >/dev/null |
1082 | 401 | then | 442 | then |
1083 | 402 | SUN_ARCH=x86_64 | 443 | SUN_ARCH=x86_64 |
1084 | 403 | fi | 444 | fi |
1085 | 404 | fi | 445 | fi |
1088 | 405 | echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | 446 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
1089 | 406 | exit ;; | 447 | GUESS=$SUN_ARCH-pc-solaris2$SUN_REL |
1090 | 448 | ;; | ||
1091 | 407 | sun4*:SunOS:6*:*) | 449 | sun4*:SunOS:6*:*) |
1092 | 408 | # According to config.sub, this is the proper way to canonicalize | 450 | # According to config.sub, this is the proper way to canonicalize |
1093 | 409 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but | 451 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
1094 | 410 | # it's likely to be more like Solaris than SunOS4. | 452 | # it's likely to be more like Solaris than SunOS4. |
1097 | 411 | echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | 453 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
1098 | 412 | exit ;; | 454 | GUESS=sparc-sun-solaris3$SUN_REL |
1099 | 455 | ;; | ||
1100 | 413 | sun4*:SunOS:*:*) | 456 | sun4*:SunOS:*:*) |
1102 | 414 | case "`/usr/bin/arch -k`" in | 457 | case `/usr/bin/arch -k` in |
1103 | 415 | Series*|S4*) | 458 | Series*|S4*) |
1104 | 416 | UNAME_RELEASE=`uname -v` | 459 | UNAME_RELEASE=`uname -v` |
1105 | 417 | ;; | 460 | ;; |
1106 | 418 | esac | 461 | esac |
1107 | 419 | # Japanese Language versions have a version number like `4.1.3-JL'. | 462 | # Japanese Language versions have a version number like `4.1.3-JL'. |
1110 | 420 | echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" | 463 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` |
1111 | 421 | exit ;; | 464 | GUESS=sparc-sun-sunos$SUN_REL |
1112 | 465 | ;; | ||
1113 | 422 | sun3*:SunOS:*:*) | 466 | sun3*:SunOS:*:*) |
1116 | 423 | echo m68k-sun-sunos"$UNAME_RELEASE" | 467 | GUESS=m68k-sun-sunos$UNAME_RELEASE |
1117 | 424 | exit ;; | 468 | ;; |
1118 | 425 | sun*:*:4.2BSD:*) | 469 | sun*:*:4.2BSD:*) |
1119 | 426 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | 470 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
1120 | 427 | test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 | 471 | test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 |
1122 | 428 | case "`/bin/arch`" in | 472 | case `/bin/arch` in |
1123 | 429 | sun3) | 473 | sun3) |
1125 | 430 | echo m68k-sun-sunos"$UNAME_RELEASE" | 474 | GUESS=m68k-sun-sunos$UNAME_RELEASE |
1126 | 431 | ;; | 475 | ;; |
1127 | 432 | sun4) | 476 | sun4) |
1129 | 433 | echo sparc-sun-sunos"$UNAME_RELEASE" | 477 | GUESS=sparc-sun-sunos$UNAME_RELEASE |
1130 | 434 | ;; | 478 | ;; |
1131 | 435 | esac | 479 | esac |
1133 | 436 | exit ;; | 480 | ;; |
1134 | 437 | aushp:SunOS:*:*) | 481 | aushp:SunOS:*:*) |
1137 | 438 | echo sparc-auspex-sunos"$UNAME_RELEASE" | 482 | GUESS=sparc-auspex-sunos$UNAME_RELEASE |
1138 | 439 | exit ;; | 483 | ;; |
1139 | 440 | # The situation for MiNT is a little confusing. The machine name | 484 | # The situation for MiNT is a little confusing. The machine name |
1140 | 441 | # can be virtually everything (everything which is not | 485 | # can be virtually everything (everything which is not |
1141 | 442 | # "atarist" or "atariste" at least should have a processor | 486 | # "atarist" or "atariste" at least should have a processor |
1142 | @@ -446,43 +490,43 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |||
1143 | 446 | # MiNT. But MiNT is downward compatible to TOS, so this should | 490 | # MiNT. But MiNT is downward compatible to TOS, so this should |
1144 | 447 | # be no problem. | 491 | # be no problem. |
1145 | 448 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | 492 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
1148 | 449 | echo m68k-atari-mint"$UNAME_RELEASE" | 493 | GUESS=m68k-atari-mint$UNAME_RELEASE |
1149 | 450 | exit ;; | 494 | ;; |
1150 | 451 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | 495 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
1153 | 452 | echo m68k-atari-mint"$UNAME_RELEASE" | 496 | GUESS=m68k-atari-mint$UNAME_RELEASE |
1154 | 453 | exit ;; | 497 | ;; |
1155 | 454 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | 498 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
1158 | 455 | echo m68k-atari-mint"$UNAME_RELEASE" | 499 | GUESS=m68k-atari-mint$UNAME_RELEASE |
1159 | 456 | exit ;; | 500 | ;; |
1160 | 457 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | 501 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
1163 | 458 | echo m68k-milan-mint"$UNAME_RELEASE" | 502 | GUESS=m68k-milan-mint$UNAME_RELEASE |
1164 | 459 | exit ;; | 503 | ;; |
1165 | 460 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | 504 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
1168 | 461 | echo m68k-hades-mint"$UNAME_RELEASE" | 505 | GUESS=m68k-hades-mint$UNAME_RELEASE |
1169 | 462 | exit ;; | 506 | ;; |
1170 | 463 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | 507 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
1173 | 464 | echo m68k-unknown-mint"$UNAME_RELEASE" | 508 | GUESS=m68k-unknown-mint$UNAME_RELEASE |
1174 | 465 | exit ;; | 509 | ;; |
1175 | 466 | m68k:machten:*:*) | 510 | m68k:machten:*:*) |
1178 | 467 | echo m68k-apple-machten"$UNAME_RELEASE" | 511 | GUESS=m68k-apple-machten$UNAME_RELEASE |
1179 | 468 | exit ;; | 512 | ;; |
1180 | 469 | powerpc:machten:*:*) | 513 | powerpc:machten:*:*) |
1183 | 470 | echo powerpc-apple-machten"$UNAME_RELEASE" | 514 | GUESS=powerpc-apple-machten$UNAME_RELEASE |
1184 | 471 | exit ;; | 515 | ;; |
1185 | 472 | RISC*:Mach:*:*) | 516 | RISC*:Mach:*:*) |
1188 | 473 | echo mips-dec-mach_bsd4.3 | 517 | GUESS=mips-dec-mach_bsd4.3 |
1189 | 474 | exit ;; | 518 | ;; |
1190 | 475 | RISC*:ULTRIX:*:*) | 519 | RISC*:ULTRIX:*:*) |
1193 | 476 | echo mips-dec-ultrix"$UNAME_RELEASE" | 520 | GUESS=mips-dec-ultrix$UNAME_RELEASE |
1194 | 477 | exit ;; | 521 | ;; |
1195 | 478 | VAX*:ULTRIX*:*:*) | 522 | VAX*:ULTRIX*:*:*) |
1198 | 479 | echo vax-dec-ultrix"$UNAME_RELEASE" | 523 | GUESS=vax-dec-ultrix$UNAME_RELEASE |
1199 | 480 | exit ;; | 524 | ;; |
1200 | 481 | 2020:CLIX:*:* | 2430:CLIX:*:*) | 525 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
1203 | 482 | echo clipper-intergraph-clix"$UNAME_RELEASE" | 526 | GUESS=clipper-intergraph-clix$UNAME_RELEASE |
1204 | 483 | exit ;; | 527 | ;; |
1205 | 484 | mips:*:*:UMIPS | mips:*:*:RISCos) | 528 | mips:*:*:UMIPS | mips:*:*:RISCos) |
1207 | 485 | eval "$set_cc_for_build" | 529 | set_cc_for_build |
1208 | 486 | sed 's/^ //' << EOF > "$dummy.c" | 530 | sed 's/^ //' << EOF > "$dummy.c" |
1209 | 487 | #ifdef __cplusplus | 531 | #ifdef __cplusplus |
1210 | 488 | #include <stdio.h> /* for printf() prototype */ | 532 | #include <stdio.h> /* for printf() prototype */ |
1211 | @@ -508,78 +552,79 @@ EOF | |||
1212 | 508 | dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && | 552 | dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && |
1213 | 509 | SYSTEM_NAME=`"$dummy" "$dummyarg"` && | 553 | SYSTEM_NAME=`"$dummy" "$dummyarg"` && |
1214 | 510 | { echo "$SYSTEM_NAME"; exit; } | 554 | { echo "$SYSTEM_NAME"; exit; } |
1217 | 511 | echo mips-mips-riscos"$UNAME_RELEASE" | 555 | GUESS=mips-mips-riscos$UNAME_RELEASE |
1218 | 512 | exit ;; | 556 | ;; |
1219 | 513 | Motorola:PowerMAX_OS:*:*) | 557 | Motorola:PowerMAX_OS:*:*) |
1222 | 514 | echo powerpc-motorola-powermax | 558 | GUESS=powerpc-motorola-powermax |
1223 | 515 | exit ;; | 559 | ;; |
1224 | 516 | Motorola:*:4.3:PL8-*) | 560 | Motorola:*:4.3:PL8-*) |
1227 | 517 | echo powerpc-harris-powermax | 561 | GUESS=powerpc-harris-powermax |
1228 | 518 | exit ;; | 562 | ;; |
1229 | 519 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | 563 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) |
1232 | 520 | echo powerpc-harris-powermax | 564 | GUESS=powerpc-harris-powermax |
1233 | 521 | exit ;; | 565 | ;; |
1234 | 522 | Night_Hawk:Power_UNIX:*:*) | 566 | Night_Hawk:Power_UNIX:*:*) |
1237 | 523 | echo powerpc-harris-powerunix | 567 | GUESS=powerpc-harris-powerunix |
1238 | 524 | exit ;; | 568 | ;; |
1239 | 525 | m88k:CX/UX:7*:*) | 569 | m88k:CX/UX:7*:*) |
1242 | 526 | echo m88k-harris-cxux7 | 570 | GUESS=m88k-harris-cxux7 |
1243 | 527 | exit ;; | 571 | ;; |
1244 | 528 | m88k:*:4*:R4*) | 572 | m88k:*:4*:R4*) |
1247 | 529 | echo m88k-motorola-sysv4 | 573 | GUESS=m88k-motorola-sysv4 |
1248 | 530 | exit ;; | 574 | ;; |
1249 | 531 | m88k:*:3*:R3*) | 575 | m88k:*:3*:R3*) |
1252 | 532 | echo m88k-motorola-sysv3 | 576 | GUESS=m88k-motorola-sysv3 |
1253 | 533 | exit ;; | 577 | ;; |
1254 | 534 | AViiON:dgux:*:*) | 578 | AViiON:dgux:*:*) |
1255 | 535 | # DG/UX returns AViiON for all architectures | 579 | # DG/UX returns AViiON for all architectures |
1256 | 536 | UNAME_PROCESSOR=`/usr/bin/uname -p` | 580 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
1258 | 537 | if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] | 581 | if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 |
1259 | 538 | then | 582 | then |
1262 | 539 | if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ | 583 | if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ |
1263 | 540 | [ "$TARGET_BINARY_INTERFACE"x = x ] | 584 | test "$TARGET_BINARY_INTERFACE"x = x |
1264 | 541 | then | 585 | then |
1266 | 542 | echo m88k-dg-dgux"$UNAME_RELEASE" | 586 | GUESS=m88k-dg-dgux$UNAME_RELEASE |
1267 | 543 | else | 587 | else |
1269 | 544 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | 588 | GUESS=m88k-dg-dguxbcs$UNAME_RELEASE |
1270 | 545 | fi | 589 | fi |
1271 | 546 | else | 590 | else |
1273 | 547 | echo i586-dg-dgux"$UNAME_RELEASE" | 591 | GUESS=i586-dg-dgux$UNAME_RELEASE |
1274 | 548 | fi | 592 | fi |
1276 | 549 | exit ;; | 593 | ;; |
1277 | 550 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | 594 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
1280 | 551 | echo m88k-dolphin-sysv3 | 595 | GUESS=m88k-dolphin-sysv3 |
1281 | 552 | exit ;; | 596 | ;; |
1282 | 553 | M88*:*:R3*:*) | 597 | M88*:*:R3*:*) |
1283 | 554 | # Delta 88k system running SVR3 | 598 | # Delta 88k system running SVR3 |
1286 | 555 | echo m88k-motorola-sysv3 | 599 | GUESS=m88k-motorola-sysv3 |
1287 | 556 | exit ;; | 600 | ;; |
1288 | 557 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) | 601 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
1291 | 558 | echo m88k-tektronix-sysv3 | 602 | GUESS=m88k-tektronix-sysv3 |
1292 | 559 | exit ;; | 603 | ;; |
1293 | 560 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | 604 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
1296 | 561 | echo m68k-tektronix-bsd | 605 | GUESS=m68k-tektronix-bsd |
1297 | 562 | exit ;; | 606 | ;; |
1298 | 563 | *:IRIX*:*:*) | 607 | *:IRIX*:*:*) |
1301 | 564 | echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" | 608 | IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` |
1302 | 565 | exit ;; | 609 | GUESS=mips-sgi-irix$IRIX_REL |
1303 | 610 | ;; | ||
1304 | 566 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | 611 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
1307 | 567 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | 612 | GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
1308 | 568 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | 613 | ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
1309 | 569 | i*86:AIX:*:*) | 614 | i*86:AIX:*:*) |
1312 | 570 | echo i386-ibm-aix | 615 | GUESS=i386-ibm-aix |
1313 | 571 | exit ;; | 616 | ;; |
1314 | 572 | ia64:AIX:*:*) | 617 | ia64:AIX:*:*) |
1316 | 573 | if [ -x /usr/bin/oslevel ] ; then | 618 | if test -x /usr/bin/oslevel ; then |
1317 | 574 | IBM_REV=`/usr/bin/oslevel` | 619 | IBM_REV=`/usr/bin/oslevel` |
1318 | 575 | else | 620 | else |
1320 | 576 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | 621 | IBM_REV=$UNAME_VERSION.$UNAME_RELEASE |
1321 | 577 | fi | 622 | fi |
1324 | 578 | echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" | 623 | GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV |
1325 | 579 | exit ;; | 624 | ;; |
1326 | 580 | *:AIX:2:3) | 625 | *:AIX:2:3) |
1327 | 581 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | 626 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
1329 | 582 | eval "$set_cc_for_build" | 627 | set_cc_for_build |
1330 | 583 | sed 's/^ //' << EOF > "$dummy.c" | 628 | sed 's/^ //' << EOF > "$dummy.c" |
1331 | 584 | #include <sys/systemcfg.h> | 629 | #include <sys/systemcfg.h> |
1332 | 585 | 630 | ||
1333 | @@ -593,16 +638,16 @@ EOF | |||
1334 | 593 | EOF | 638 | EOF |
1335 | 594 | if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` | 639 | if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` |
1336 | 595 | then | 640 | then |
1338 | 596 | echo "$SYSTEM_NAME" | 641 | GUESS=$SYSTEM_NAME |
1339 | 597 | else | 642 | else |
1341 | 598 | echo rs6000-ibm-aix3.2.5 | 643 | GUESS=rs6000-ibm-aix3.2.5 |
1342 | 599 | fi | 644 | fi |
1343 | 600 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | 645 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
1345 | 601 | echo rs6000-ibm-aix3.2.4 | 646 | GUESS=rs6000-ibm-aix3.2.4 |
1346 | 602 | else | 647 | else |
1348 | 603 | echo rs6000-ibm-aix3.2 | 648 | GUESS=rs6000-ibm-aix3.2 |
1349 | 604 | fi | 649 | fi |
1351 | 605 | exit ;; | 650 | ;; |
1352 | 606 | *:AIX:*:[4567]) | 651 | *:AIX:*:[4567]) |
1353 | 607 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | 652 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
1354 | 608 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then | 653 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then |
1355 | @@ -610,57 +655,57 @@ EOF | |||
1356 | 610 | else | 655 | else |
1357 | 611 | IBM_ARCH=powerpc | 656 | IBM_ARCH=powerpc |
1358 | 612 | fi | 657 | fi |
1361 | 613 | if [ -x /usr/bin/lslpp ] ; then | 658 | if test -x /usr/bin/lslpp ; then |
1362 | 614 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | | 659 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ |
1363 | 615 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` | 660 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` |
1364 | 616 | else | 661 | else |
1366 | 617 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | 662 | IBM_REV=$UNAME_VERSION.$UNAME_RELEASE |
1367 | 618 | fi | 663 | fi |
1370 | 619 | echo "$IBM_ARCH"-ibm-aix"$IBM_REV" | 664 | GUESS=$IBM_ARCH-ibm-aix$IBM_REV |
1371 | 620 | exit ;; | 665 | ;; |
1372 | 621 | *:AIX:*:*) | 666 | *:AIX:*:*) |
1375 | 622 | echo rs6000-ibm-aix | 667 | GUESS=rs6000-ibm-aix |
1376 | 623 | exit ;; | 668 | ;; |
1377 | 624 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | 669 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) |
1380 | 625 | echo romp-ibm-bsd4.4 | 670 | GUESS=romp-ibm-bsd4.4 |
1381 | 626 | exit ;; | 671 | ;; |
1382 | 627 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | 672 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
1385 | 628 | echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to | 673 | GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to |
1386 | 629 | exit ;; # report: romp-ibm BSD 4.3 | 674 | ;; # report: romp-ibm BSD 4.3 |
1387 | 630 | *:BOSX:*:*) | 675 | *:BOSX:*:*) |
1390 | 631 | echo rs6000-bull-bosx | 676 | GUESS=rs6000-bull-bosx |
1391 | 632 | exit ;; | 677 | ;; |
1392 | 633 | DPX/2?00:B.O.S.:*:*) | 678 | DPX/2?00:B.O.S.:*:*) |
1395 | 634 | echo m68k-bull-sysv3 | 679 | GUESS=m68k-bull-sysv3 |
1396 | 635 | exit ;; | 680 | ;; |
1397 | 636 | 9000/[34]??:4.3bsd:1.*:*) | 681 | 9000/[34]??:4.3bsd:1.*:*) |
1400 | 637 | echo m68k-hp-bsd | 682 | GUESS=m68k-hp-bsd |
1401 | 638 | exit ;; | 683 | ;; |
1402 | 639 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | 684 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
1405 | 640 | echo m68k-hp-bsd4.4 | 685 | GUESS=m68k-hp-bsd4.4 |
1406 | 641 | exit ;; | 686 | ;; |
1407 | 642 | 9000/[34678]??:HP-UX:*:*) | 687 | 9000/[34678]??:HP-UX:*:*) |
1410 | 643 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | 688 | HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` |
1411 | 644 | case "$UNAME_MACHINE" in | 689 | case $UNAME_MACHINE in |
1412 | 645 | 9000/31?) HP_ARCH=m68000 ;; | 690 | 9000/31?) HP_ARCH=m68000 ;; |
1413 | 646 | 9000/[34]??) HP_ARCH=m68k ;; | 691 | 9000/[34]??) HP_ARCH=m68k ;; |
1414 | 647 | 9000/[678][0-9][0-9]) | 692 | 9000/[678][0-9][0-9]) |
1416 | 648 | if [ -x /usr/bin/getconf ]; then | 693 | if test -x /usr/bin/getconf; then |
1417 | 649 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | 694 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
1418 | 650 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | 695 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
1420 | 651 | case "$sc_cpu_version" in | 696 | case $sc_cpu_version in |
1421 | 652 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 | 697 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 |
1422 | 653 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 | 698 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 |
1423 | 654 | 532) # CPU_PA_RISC2_0 | 699 | 532) # CPU_PA_RISC2_0 |
1425 | 655 | case "$sc_kernel_bits" in | 700 | case $sc_kernel_bits in |
1426 | 656 | 32) HP_ARCH=hppa2.0n ;; | 701 | 32) HP_ARCH=hppa2.0n ;; |
1427 | 657 | 64) HP_ARCH=hppa2.0w ;; | 702 | 64) HP_ARCH=hppa2.0w ;; |
1428 | 658 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 | 703 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 |
1429 | 659 | esac ;; | 704 | esac ;; |
1430 | 660 | esac | 705 | esac |
1431 | 661 | fi | 706 | fi |
1434 | 662 | if [ "$HP_ARCH" = "" ]; then | 707 | if test "$HP_ARCH" = ""; then |
1435 | 663 | eval "$set_cc_for_build" | 708 | set_cc_for_build |
1436 | 664 | sed 's/^ //' << EOF > "$dummy.c" | 709 | sed 's/^ //' << EOF > "$dummy.c" |
1437 | 665 | 710 | ||
1438 | 666 | #define _HPUX_SOURCE | 711 | #define _HPUX_SOURCE |
1439 | @@ -698,9 +743,9 @@ EOF | |||
1440 | 698 | test -z "$HP_ARCH" && HP_ARCH=hppa | 743 | test -z "$HP_ARCH" && HP_ARCH=hppa |
1441 | 699 | fi ;; | 744 | fi ;; |
1442 | 700 | esac | 745 | esac |
1444 | 701 | if [ "$HP_ARCH" = hppa2.0w ] | 746 | if test "$HP_ARCH" = hppa2.0w |
1445 | 702 | then | 747 | then |
1447 | 703 | eval "$set_cc_for_build" | 748 | set_cc_for_build |
1448 | 704 | 749 | ||
1449 | 705 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | 750 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
1450 | 706 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | 751 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
1451 | @@ -719,14 +764,14 @@ EOF | |||
1452 | 719 | HP_ARCH=hppa64 | 764 | HP_ARCH=hppa64 |
1453 | 720 | fi | 765 | fi |
1454 | 721 | fi | 766 | fi |
1457 | 722 | echo "$HP_ARCH"-hp-hpux"$HPUX_REV" | 767 | GUESS=$HP_ARCH-hp-hpux$HPUX_REV |
1458 | 723 | exit ;; | 768 | ;; |
1459 | 724 | ia64:HP-UX:*:*) | 769 | ia64:HP-UX:*:*) |
1463 | 725 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | 770 | HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` |
1464 | 726 | echo ia64-hp-hpux"$HPUX_REV" | 771 | GUESS=ia64-hp-hpux$HPUX_REV |
1465 | 727 | exit ;; | 772 | ;; |
1466 | 728 | 3050*:HI-UX:*:*) | 773 | 3050*:HI-UX:*:*) |
1468 | 729 | eval "$set_cc_for_build" | 774 | set_cc_for_build |
1469 | 730 | sed 's/^ //' << EOF > "$dummy.c" | 775 | sed 's/^ //' << EOF > "$dummy.c" |
1470 | 731 | #include <unistd.h> | 776 | #include <unistd.h> |
1471 | 732 | int | 777 | int |
1472 | @@ -754,36 +799,36 @@ EOF | |||
1473 | 754 | EOF | 799 | EOF |
1474 | 755 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && | 800 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && |
1475 | 756 | { echo "$SYSTEM_NAME"; exit; } | 801 | { echo "$SYSTEM_NAME"; exit; } |
1478 | 757 | echo unknown-hitachi-hiuxwe2 | 802 | GUESS=unknown-hitachi-hiuxwe2 |
1479 | 758 | exit ;; | 803 | ;; |
1480 | 759 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) | 804 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) |
1483 | 760 | echo hppa1.1-hp-bsd | 805 | GUESS=hppa1.1-hp-bsd |
1484 | 761 | exit ;; | 806 | ;; |
1485 | 762 | 9000/8??:4.3bsd:*:*) | 807 | 9000/8??:4.3bsd:*:*) |
1488 | 763 | echo hppa1.0-hp-bsd | 808 | GUESS=hppa1.0-hp-bsd |
1489 | 764 | exit ;; | 809 | ;; |
1490 | 765 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | 810 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
1493 | 766 | echo hppa1.0-hp-mpeix | 811 | GUESS=hppa1.0-hp-mpeix |
1494 | 767 | exit ;; | 812 | ;; |
1495 | 768 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | 813 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) |
1498 | 769 | echo hppa1.1-hp-osf | 814 | GUESS=hppa1.1-hp-osf |
1499 | 770 | exit ;; | 815 | ;; |
1500 | 771 | hp8??:OSF1:*:*) | 816 | hp8??:OSF1:*:*) |
1503 | 772 | echo hppa1.0-hp-osf | 817 | GUESS=hppa1.0-hp-osf |
1504 | 773 | exit ;; | 818 | ;; |
1505 | 774 | i*86:OSF1:*:*) | 819 | i*86:OSF1:*:*) |
1508 | 775 | if [ -x /usr/sbin/sysversion ] ; then | 820 | if test -x /usr/sbin/sysversion ; then |
1509 | 776 | echo "$UNAME_MACHINE"-unknown-osf1mk | 821 | GUESS=$UNAME_MACHINE-unknown-osf1mk |
1510 | 777 | else | 822 | else |
1512 | 778 | echo "$UNAME_MACHINE"-unknown-osf1 | 823 | GUESS=$UNAME_MACHINE-unknown-osf1 |
1513 | 779 | fi | 824 | fi |
1515 | 780 | exit ;; | 825 | ;; |
1516 | 781 | parisc*:Lites*:*:*) | 826 | parisc*:Lites*:*:*) |
1519 | 782 | echo hppa1.1-hp-lites | 827 | GUESS=hppa1.1-hp-lites |
1520 | 783 | exit ;; | 828 | ;; |
1521 | 784 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | 829 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
1524 | 785 | echo c1-convex-bsd | 830 | GUESS=c1-convex-bsd |
1525 | 786 | exit ;; | 831 | ;; |
1526 | 787 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | 832 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
1527 | 788 | if getsysinfo -f scalar_acc | 833 | if getsysinfo -f scalar_acc |
1528 | 789 | then echo c32-convex-bsd | 834 | then echo c32-convex-bsd |
1529 | @@ -791,17 +836,18 @@ EOF | |||
1530 | 791 | fi | 836 | fi |
1531 | 792 | exit ;; | 837 | exit ;; |
1532 | 793 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | 838 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
1535 | 794 | echo c34-convex-bsd | 839 | GUESS=c34-convex-bsd |
1536 | 795 | exit ;; | 840 | ;; |
1537 | 796 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | 841 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
1540 | 797 | echo c38-convex-bsd | 842 | GUESS=c38-convex-bsd |
1541 | 798 | exit ;; | 843 | ;; |
1542 | 799 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | 844 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
1545 | 800 | echo c4-convex-bsd | 845 | GUESS=c4-convex-bsd |
1546 | 801 | exit ;; | 846 | ;; |
1547 | 802 | CRAY*Y-MP:*:*:*) | 847 | CRAY*Y-MP:*:*:*) |
1550 | 803 | echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | 848 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
1551 | 804 | exit ;; | 849 | GUESS=ymp-cray-unicos$CRAY_REL |
1552 | 850 | ;; | ||
1553 | 805 | CRAY*[A-Z]90:*:*:*) | 851 | CRAY*[A-Z]90:*:*:*) |
1554 | 806 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | 852 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ |
1555 | 807 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | 853 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
1556 | @@ -809,103 +855,129 @@ EOF | |||
1557 | 809 | -e 's/\.[^.]*$/.X/' | 855 | -e 's/\.[^.]*$/.X/' |
1558 | 810 | exit ;; | 856 | exit ;; |
1559 | 811 | CRAY*TS:*:*:*) | 857 | CRAY*TS:*:*:*) |
1562 | 812 | echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | 858 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
1563 | 813 | exit ;; | 859 | GUESS=t90-cray-unicos$CRAY_REL |
1564 | 860 | ;; | ||
1565 | 814 | CRAY*T3E:*:*:*) | 861 | CRAY*T3E:*:*:*) |
1568 | 815 | echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | 862 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
1569 | 816 | exit ;; | 863 | GUESS=alphaev5-cray-unicosmk$CRAY_REL |
1570 | 864 | ;; | ||
1571 | 817 | CRAY*SV1:*:*:*) | 865 | CRAY*SV1:*:*:*) |
1574 | 818 | echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | 866 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
1575 | 819 | exit ;; | 867 | GUESS=sv1-cray-unicos$CRAY_REL |
1576 | 868 | ;; | ||
1577 | 820 | *:UNICOS/mp:*:*) | 869 | *:UNICOS/mp:*:*) |
1580 | 821 | echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | 870 | CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` |
1581 | 822 | exit ;; | 871 | GUESS=craynv-cray-unicosmp$CRAY_REL |
1582 | 872 | ;; | ||
1583 | 823 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | 873 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
1584 | 824 | FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | 874 | FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` |
1585 | 825 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | 875 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` |
1586 | 826 | FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` | 876 | FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` |
1589 | 827 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | 877 | GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} |
1590 | 828 | exit ;; | 878 | ;; |
1591 | 829 | 5000:UNIX_System_V:4.*:*) | 879 | 5000:UNIX_System_V:4.*:*) |
1592 | 830 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | 880 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` |
1593 | 831 | FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` | 881 | FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` |
1596 | 832 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | 882 | GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} |
1597 | 833 | exit ;; | 883 | ;; |
1598 | 834 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | 884 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
1601 | 835 | echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" | 885 | GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE |
1602 | 836 | exit ;; | 886 | ;; |
1603 | 837 | sparc*:BSD/OS:*:*) | 887 | sparc*:BSD/OS:*:*) |
1606 | 838 | echo sparc-unknown-bsdi"$UNAME_RELEASE" | 888 | GUESS=sparc-unknown-bsdi$UNAME_RELEASE |
1607 | 839 | exit ;; | 889 | ;; |
1608 | 840 | *:BSD/OS:*:*) | 890 | *:BSD/OS:*:*) |
1611 | 841 | echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" | 891 | GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE |
1612 | 842 | exit ;; | 892 | ;; |
1613 | 893 | arm:FreeBSD:*:*) | ||
1614 | 894 | UNAME_PROCESSOR=`uname -p` | ||
1615 | 895 | set_cc_for_build | ||
1616 | 896 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | ||
1617 | 897 | | grep -q __ARM_PCS_VFP | ||
1618 | 898 | then | ||
1619 | 899 | FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | ||
1620 | 900 | GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi | ||
1621 | 901 | else | ||
1622 | 902 | FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` | ||
1623 | 903 | GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf | ||
1624 | 904 | fi | ||
1625 | 905 | ;; | ||
1626 | 843 | *:FreeBSD:*:*) | 906 | *:FreeBSD:*:*) |
1627 | 844 | UNAME_PROCESSOR=`/usr/bin/uname -p` | 907 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
1629 | 845 | case "$UNAME_PROCESSOR" in | 908 | case $UNAME_PROCESSOR in |
1630 | 846 | amd64) | 909 | amd64) |
1631 | 847 | UNAME_PROCESSOR=x86_64 ;; | 910 | UNAME_PROCESSOR=x86_64 ;; |
1632 | 848 | i386) | 911 | i386) |
1633 | 849 | UNAME_PROCESSOR=i586 ;; | 912 | UNAME_PROCESSOR=i586 ;; |
1634 | 850 | esac | 913 | esac |
1637 | 851 | echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | 914 | FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` |
1638 | 852 | exit ;; | 915 | GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL |
1639 | 916 | ;; | ||
1640 | 853 | i*:CYGWIN*:*) | 917 | i*:CYGWIN*:*) |
1643 | 854 | echo "$UNAME_MACHINE"-pc-cygwin | 918 | GUESS=$UNAME_MACHINE-pc-cygwin |
1644 | 855 | exit ;; | 919 | ;; |
1645 | 856 | *:MINGW64*:*) | 920 | *:MINGW64*:*) |
1648 | 857 | echo "$UNAME_MACHINE"-pc-mingw64 | 921 | GUESS=$UNAME_MACHINE-pc-mingw64 |
1649 | 858 | exit ;; | 922 | ;; |
1650 | 859 | *:MINGW*:*) | 923 | *:MINGW*:*) |
1653 | 860 | echo "$UNAME_MACHINE"-pc-mingw32 | 924 | GUESS=$UNAME_MACHINE-pc-mingw32 |
1654 | 861 | exit ;; | 925 | ;; |
1655 | 862 | *:MSYS*:*) | 926 | *:MSYS*:*) |
1658 | 863 | echo "$UNAME_MACHINE"-pc-msys | 927 | GUESS=$UNAME_MACHINE-pc-msys |
1659 | 864 | exit ;; | 928 | ;; |
1660 | 865 | i*:PW*:*) | 929 | i*:PW*:*) |
1663 | 866 | echo "$UNAME_MACHINE"-pc-pw32 | 930 | GUESS=$UNAME_MACHINE-pc-pw32 |
1664 | 867 | exit ;; | 931 | ;; |
1665 | 932 | *:SerenityOS:*:*) | ||
1666 | 933 | GUESS=$UNAME_MACHINE-pc-serenity | ||
1667 | 934 | ;; | ||
1668 | 868 | *:Interix*:*) | 935 | *:Interix*:*) |
1670 | 869 | case "$UNAME_MACHINE" in | 936 | case $UNAME_MACHINE in |
1671 | 870 | x86) | 937 | x86) |
1674 | 871 | echo i586-pc-interix"$UNAME_RELEASE" | 938 | GUESS=i586-pc-interix$UNAME_RELEASE |
1675 | 872 | exit ;; | 939 | ;; |
1676 | 873 | authenticamd | genuineintel | EM64T) | 940 | authenticamd | genuineintel | EM64T) |
1679 | 874 | echo x86_64-unknown-interix"$UNAME_RELEASE" | 941 | GUESS=x86_64-unknown-interix$UNAME_RELEASE |
1680 | 875 | exit ;; | 942 | ;; |
1681 | 876 | IA64) | 943 | IA64) |
1684 | 877 | echo ia64-unknown-interix"$UNAME_RELEASE" | 944 | GUESS=ia64-unknown-interix$UNAME_RELEASE |
1685 | 878 | exit ;; | 945 | ;; |
1686 | 879 | esac ;; | 946 | esac ;; |
1687 | 880 | i*:UWIN*:*) | 947 | i*:UWIN*:*) |
1690 | 881 | echo "$UNAME_MACHINE"-pc-uwin | 948 | GUESS=$UNAME_MACHINE-pc-uwin |
1691 | 882 | exit ;; | 949 | ;; |
1692 | 883 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | 950 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
1695 | 884 | echo x86_64-unknown-cygwin | 951 | GUESS=x86_64-pc-cygwin |
1696 | 885 | exit ;; | 952 | ;; |
1697 | 886 | prep*:SunOS:5.*:*) | 953 | prep*:SunOS:5.*:*) |
1700 | 887 | echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | 954 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` |
1701 | 888 | exit ;; | 955 | GUESS=powerpcle-unknown-solaris2$SUN_REL |
1702 | 956 | ;; | ||
1703 | 889 | *:GNU:*:*) | 957 | *:GNU:*:*) |
1704 | 890 | # the GNU system | 958 | # the GNU system |
1707 | 891 | echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" | 959 | GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` |
1708 | 892 | exit ;; | 960 | GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` |
1709 | 961 | GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL | ||
1710 | 962 | ;; | ||
1711 | 893 | *:GNU/*:*:*) | 963 | *:GNU/*:*:*) |
1712 | 894 | # other systems with GNU libc and userland | 964 | # other systems with GNU libc and userland |
1718 | 895 | echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" | 965 | GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` |
1719 | 896 | exit ;; | 966 | GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` |
1720 | 897 | i*86:Minix:*:*) | 967 | GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC |
1721 | 898 | echo "$UNAME_MACHINE"-pc-minix | 968 | ;; |
1722 | 899 | exit ;; | 969 | *:Minix:*:*) |
1723 | 970 | GUESS=$UNAME_MACHINE-unknown-minix | ||
1724 | 971 | ;; | ||
1725 | 900 | aarch64:Linux:*:*) | 972 | aarch64:Linux:*:*) |
1728 | 901 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 973 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1729 | 902 | exit ;; | 974 | ;; |
1730 | 903 | aarch64_be:Linux:*:*) | 975 | aarch64_be:Linux:*:*) |
1731 | 904 | UNAME_MACHINE=aarch64_be | 976 | UNAME_MACHINE=aarch64_be |
1734 | 905 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 977 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1735 | 906 | exit ;; | 978 | ;; |
1736 | 907 | alpha:Linux:*:*) | 979 | alpha:Linux:*:*) |
1738 | 908 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | 980 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in |
1739 | 909 | EV5) UNAME_MACHINE=alphaev5 ;; | 981 | EV5) UNAME_MACHINE=alphaev5 ;; |
1740 | 910 | EV56) UNAME_MACHINE=alphaev56 ;; | 982 | EV56) UNAME_MACHINE=alphaev56 ;; |
1741 | 911 | PCA56) UNAME_MACHINE=alphapca56 ;; | 983 | PCA56) UNAME_MACHINE=alphapca56 ;; |
1742 | @@ -916,183 +988,236 @@ EOF | |||
1743 | 916 | esac | 988 | esac |
1744 | 917 | objdump --private-headers /bin/sh | grep -q ld.so.1 | 989 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
1745 | 918 | if test "$?" = 0 ; then LIBC=gnulibc1 ; fi | 990 | if test "$?" = 0 ; then LIBC=gnulibc1 ; fi |
1751 | 919 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 991 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1752 | 920 | exit ;; | 992 | ;; |
1753 | 921 | arc:Linux:*:* | arceb:Linux:*:*) | 993 | arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) |
1754 | 922 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 994 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1755 | 923 | exit ;; | 995 | ;; |
1756 | 924 | arm*:Linux:*:*) | 996 | arm*:Linux:*:*) |
1758 | 925 | eval "$set_cc_for_build" | 997 | set_cc_for_build |
1759 | 926 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 998 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
1760 | 927 | | grep -q __ARM_EABI__ | 999 | | grep -q __ARM_EABI__ |
1761 | 928 | then | 1000 | then |
1763 | 929 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1001 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1764 | 930 | else | 1002 | else |
1765 | 931 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | 1003 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
1766 | 932 | | grep -q __ARM_PCS_VFP | 1004 | | grep -q __ARM_PCS_VFP |
1767 | 933 | then | 1005 | then |
1769 | 934 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi | 1006 | GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi |
1770 | 935 | else | 1007 | else |
1772 | 936 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf | 1008 | GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf |
1773 | 937 | fi | 1009 | fi |
1774 | 938 | fi | 1010 | fi |
1776 | 939 | exit ;; | 1011 | ;; |
1777 | 940 | avr32*:Linux:*:*) | 1012 | avr32*:Linux:*:*) |
1780 | 941 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1013 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1781 | 942 | exit ;; | 1014 | ;; |
1782 | 943 | cris:Linux:*:*) | 1015 | cris:Linux:*:*) |
1785 | 944 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | 1016 | GUESS=$UNAME_MACHINE-axis-linux-$LIBC |
1786 | 945 | exit ;; | 1017 | ;; |
1787 | 946 | crisv32:Linux:*:*) | 1018 | crisv32:Linux:*:*) |
1790 | 947 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | 1019 | GUESS=$UNAME_MACHINE-axis-linux-$LIBC |
1791 | 948 | exit ;; | 1020 | ;; |
1792 | 949 | e2k:Linux:*:*) | 1021 | e2k:Linux:*:*) |
1795 | 950 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1022 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1796 | 951 | exit ;; | 1023 | ;; |
1797 | 952 | frv:Linux:*:*) | 1024 | frv:Linux:*:*) |
1800 | 953 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1025 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1801 | 954 | exit ;; | 1026 | ;; |
1802 | 955 | hexagon:Linux:*:*) | 1027 | hexagon:Linux:*:*) |
1805 | 956 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1028 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1806 | 957 | exit ;; | 1029 | ;; |
1807 | 958 | i*86:Linux:*:*) | 1030 | i*86:Linux:*:*) |
1810 | 959 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | 1031 | GUESS=$UNAME_MACHINE-pc-linux-$LIBC |
1811 | 960 | exit ;; | 1032 | ;; |
1812 | 961 | ia64:Linux:*:*) | 1033 | ia64:Linux:*:*) |
1815 | 962 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1034 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1816 | 963 | exit ;; | 1035 | ;; |
1817 | 964 | k1om:Linux:*:*) | 1036 | k1om:Linux:*:*) |
1820 | 965 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1037 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1821 | 966 | exit ;; | 1038 | ;; |
1822 | 1039 | loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) | ||
1823 | 1040 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC | ||
1824 | 1041 | ;; | ||
1825 | 967 | m32r*:Linux:*:*) | 1042 | m32r*:Linux:*:*) |
1828 | 968 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1043 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1829 | 969 | exit ;; | 1044 | ;; |
1830 | 970 | m68*:Linux:*:*) | 1045 | m68*:Linux:*:*) |
1833 | 971 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1046 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1834 | 972 | exit ;; | 1047 | ;; |
1835 | 973 | mips:Linux:*:* | mips64:Linux:*:*) | 1048 | mips:Linux:*:* | mips64:Linux:*:*) |
1837 | 974 | eval "$set_cc_for_build" | 1049 | set_cc_for_build |
1838 | 1050 | IS_GLIBC=0 | ||
1839 | 1051 | test x"${LIBC}" = xgnu && IS_GLIBC=1 | ||
1840 | 975 | sed 's/^ //' << EOF > "$dummy.c" | 1052 | sed 's/^ //' << EOF > "$dummy.c" |
1841 | 976 | #undef CPU | 1053 | #undef CPU |
1844 | 977 | #undef ${UNAME_MACHINE} | 1054 | #undef mips |
1845 | 978 | #undef ${UNAME_MACHINE}el | 1055 | #undef mipsel |
1846 | 1056 | #undef mips64 | ||
1847 | 1057 | #undef mips64el | ||
1848 | 1058 | #if ${IS_GLIBC} && defined(_ABI64) | ||
1849 | 1059 | LIBCABI=gnuabi64 | ||
1850 | 1060 | #else | ||
1851 | 1061 | #if ${IS_GLIBC} && defined(_ABIN32) | ||
1852 | 1062 | LIBCABI=gnuabin32 | ||
1853 | 1063 | #else | ||
1854 | 1064 | LIBCABI=${LIBC} | ||
1855 | 1065 | #endif | ||
1856 | 1066 | #endif | ||
1857 | 1067 | |||
1858 | 1068 | #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 | ||
1859 | 1069 | CPU=mipsisa64r6 | ||
1860 | 1070 | #else | ||
1861 | 1071 | #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 | ||
1862 | 1072 | CPU=mipsisa32r6 | ||
1863 | 1073 | #else | ||
1864 | 1074 | #if defined(__mips64) | ||
1865 | 1075 | CPU=mips64 | ||
1866 | 1076 | #else | ||
1867 | 1077 | CPU=mips | ||
1868 | 1078 | #endif | ||
1869 | 1079 | #endif | ||
1870 | 1080 | #endif | ||
1871 | 1081 | |||
1872 | 979 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | 1082 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
1874 | 980 | CPU=${UNAME_MACHINE}el | 1083 | MIPS_ENDIAN=el |
1875 | 981 | #else | 1084 | #else |
1876 | 982 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | 1085 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
1878 | 983 | CPU=${UNAME_MACHINE} | 1086 | MIPS_ENDIAN= |
1879 | 984 | #else | 1087 | #else |
1881 | 985 | CPU= | 1088 | MIPS_ENDIAN= |
1882 | 986 | #endif | 1089 | #endif |
1883 | 987 | #endif | 1090 | #endif |
1884 | 988 | EOF | 1091 | EOF |
1887 | 989 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" | 1092 | cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` |
1888 | 990 | test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } | 1093 | eval "$cc_set_vars" |
1889 | 1094 | test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } | ||
1890 | 991 | ;; | 1095 | ;; |
1891 | 992 | mips64el:Linux:*:*) | 1096 | mips64el:Linux:*:*) |
1894 | 993 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1097 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1895 | 994 | exit ;; | 1098 | ;; |
1896 | 995 | openrisc*:Linux:*:*) | 1099 | openrisc*:Linux:*:*) |
1899 | 996 | echo or1k-unknown-linux-"$LIBC" | 1100 | GUESS=or1k-unknown-linux-$LIBC |
1900 | 997 | exit ;; | 1101 | ;; |
1901 | 998 | or32:Linux:*:* | or1k*:Linux:*:*) | 1102 | or32:Linux:*:* | or1k*:Linux:*:*) |
1904 | 999 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1103 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1905 | 1000 | exit ;; | 1104 | ;; |
1906 | 1001 | padre:Linux:*:*) | 1105 | padre:Linux:*:*) |
1909 | 1002 | echo sparc-unknown-linux-"$LIBC" | 1106 | GUESS=sparc-unknown-linux-$LIBC |
1910 | 1003 | exit ;; | 1107 | ;; |
1911 | 1004 | parisc64:Linux:*:* | hppa64:Linux:*:*) | 1108 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
1914 | 1005 | echo hppa64-unknown-linux-"$LIBC" | 1109 | GUESS=hppa64-unknown-linux-$LIBC |
1915 | 1006 | exit ;; | 1110 | ;; |
1916 | 1007 | parisc:Linux:*:* | hppa:Linux:*:*) | 1111 | parisc:Linux:*:* | hppa:Linux:*:*) |
1917 | 1008 | # Look for CPU level | 1112 | # Look for CPU level |
1918 | 1009 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 1113 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
1922 | 1010 | PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; | 1114 | PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; |
1923 | 1011 | PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; | 1115 | PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; |
1924 | 1012 | *) echo hppa-unknown-linux-"$LIBC" ;; | 1116 | *) GUESS=hppa-unknown-linux-$LIBC ;; |
1925 | 1013 | esac | 1117 | esac |
1927 | 1014 | exit ;; | 1118 | ;; |
1928 | 1015 | ppc64:Linux:*:*) | 1119 | ppc64:Linux:*:*) |
1931 | 1016 | echo powerpc64-unknown-linux-"$LIBC" | 1120 | GUESS=powerpc64-unknown-linux-$LIBC |
1932 | 1017 | exit ;; | 1121 | ;; |
1933 | 1018 | ppc:Linux:*:*) | 1122 | ppc:Linux:*:*) |
1936 | 1019 | echo powerpc-unknown-linux-"$LIBC" | 1123 | GUESS=powerpc-unknown-linux-$LIBC |
1937 | 1020 | exit ;; | 1124 | ;; |
1938 | 1021 | ppc64le:Linux:*:*) | 1125 | ppc64le:Linux:*:*) |
1941 | 1022 | echo powerpc64le-unknown-linux-"$LIBC" | 1126 | GUESS=powerpc64le-unknown-linux-$LIBC |
1942 | 1023 | exit ;; | 1127 | ;; |
1943 | 1024 | ppcle:Linux:*:*) | 1128 | ppcle:Linux:*:*) |
1949 | 1025 | echo powerpcle-unknown-linux-"$LIBC" | 1129 | GUESS=powerpcle-unknown-linux-$LIBC |
1950 | 1026 | exit ;; | 1130 | ;; |
1951 | 1027 | riscv32:Linux:*:* | riscv64:Linux:*:*) | 1131 | riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) |
1952 | 1028 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1132 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1953 | 1029 | exit ;; | 1133 | ;; |
1954 | 1030 | s390:Linux:*:* | s390x:Linux:*:*) | 1134 | s390:Linux:*:* | s390x:Linux:*:*) |
1957 | 1031 | echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" | 1135 | GUESS=$UNAME_MACHINE-ibm-linux-$LIBC |
1958 | 1032 | exit ;; | 1136 | ;; |
1959 | 1033 | sh64*:Linux:*:*) | 1137 | sh64*:Linux:*:*) |
1962 | 1034 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1138 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1963 | 1035 | exit ;; | 1139 | ;; |
1964 | 1036 | sh*:Linux:*:*) | 1140 | sh*:Linux:*:*) |
1967 | 1037 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1141 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1968 | 1038 | exit ;; | 1142 | ;; |
1969 | 1039 | sparc:Linux:*:* | sparc64:Linux:*:*) | 1143 | sparc:Linux:*:* | sparc64:Linux:*:*) |
1972 | 1040 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1144 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1973 | 1041 | exit ;; | 1145 | ;; |
1974 | 1042 | tile*:Linux:*:*) | 1146 | tile*:Linux:*:*) |
1977 | 1043 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1147 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
1978 | 1044 | exit ;; | 1148 | ;; |
1979 | 1045 | vax:Linux:*:*) | 1149 | vax:Linux:*:*) |
1982 | 1046 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | 1150 | GUESS=$UNAME_MACHINE-dec-linux-$LIBC |
1983 | 1047 | exit ;; | 1151 | ;; |
1984 | 1048 | x86_64:Linux:*:*) | 1152 | x86_64:Linux:*:*) |
1987 | 1049 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | 1153 | set_cc_for_build |
1988 | 1050 | exit ;; | 1154 | CPU=$UNAME_MACHINE |
1989 | 1155 | LIBCABI=$LIBC | ||
1990 | 1156 | if test "$CC_FOR_BUILD" != no_compiler_found; then | ||
1991 | 1157 | ABI=64 | ||
1992 | 1158 | sed 's/^ //' << EOF > "$dummy.c" | ||
1993 | 1159 | #ifdef __i386__ | ||
1994 | 1160 | ABI=x86 | ||
1995 | 1161 | #else | ||
1996 | 1162 | #ifdef __ILP32__ | ||
1997 | 1163 | ABI=x32 | ||
1998 | 1164 | #endif | ||
1999 | 1165 | #endif | ||
2000 | 1166 | EOF | ||
2001 | 1167 | cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` | ||
2002 | 1168 | eval "$cc_set_abi" | ||
2003 | 1169 | case $ABI in | ||
2004 | 1170 | x86) CPU=i686 ;; | ||
2005 | 1171 | x32) LIBCABI=${LIBC}x32 ;; | ||
2006 | 1172 | esac | ||
2007 | 1173 | fi | ||
2008 | 1174 | GUESS=$CPU-pc-linux-$LIBCABI | ||
2009 | 1175 | ;; | ||
2010 | 1051 | xtensa*:Linux:*:*) | 1176 | xtensa*:Linux:*:*) |
2013 | 1052 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1177 | GUESS=$UNAME_MACHINE-unknown-linux-$LIBC |
2014 | 1053 | exit ;; | 1178 | ;; |
2015 | 1054 | i*86:DYNIX/ptx:4*:*) | 1179 | i*86:DYNIX/ptx:4*:*) |
2016 | 1055 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 1180 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
2017 | 1056 | # earlier versions are messed up and put the nodename in both | 1181 | # earlier versions are messed up and put the nodename in both |
2018 | 1057 | # sysname and nodename. | 1182 | # sysname and nodename. |
2021 | 1058 | echo i386-sequent-sysv4 | 1183 | GUESS=i386-sequent-sysv4 |
2022 | 1059 | exit ;; | 1184 | ;; |
2023 | 1060 | i*86:UNIX_SV:4.2MP:2.*) | 1185 | i*86:UNIX_SV:4.2MP:2.*) |
2024 | 1061 | # Unixware is an offshoot of SVR4, but it has its own version | 1186 | # Unixware is an offshoot of SVR4, but it has its own version |
2025 | 1062 | # number series starting with 2... | 1187 | # number series starting with 2... |
2026 | 1063 | # I am not positive that other SVR4 systems won't match this, | 1188 | # I am not positive that other SVR4 systems won't match this, |
2027 | 1064 | # I just have to hope. -- rms. | 1189 | # I just have to hope. -- rms. |
2028 | 1065 | # Use sysv4.2uw... so that sysv4* matches it. | 1190 | # Use sysv4.2uw... so that sysv4* matches it. |
2031 | 1066 | echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" | 1191 | GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION |
2032 | 1067 | exit ;; | 1192 | ;; |
2033 | 1068 | i*86:OS/2:*:*) | 1193 | i*86:OS/2:*:*) |
2034 | 1069 | # If we were able to find `uname', then EMX Unix compatibility | 1194 | # If we were able to find `uname', then EMX Unix compatibility |
2035 | 1070 | # is probably installed. | 1195 | # is probably installed. |
2038 | 1071 | echo "$UNAME_MACHINE"-pc-os2-emx | 1196 | GUESS=$UNAME_MACHINE-pc-os2-emx |
2039 | 1072 | exit ;; | 1197 | ;; |
2040 | 1073 | i*86:XTS-300:*:STOP) | 1198 | i*86:XTS-300:*:STOP) |
2043 | 1074 | echo "$UNAME_MACHINE"-unknown-stop | 1199 | GUESS=$UNAME_MACHINE-unknown-stop |
2044 | 1075 | exit ;; | 1200 | ;; |
2045 | 1076 | i*86:atheos:*:*) | 1201 | i*86:atheos:*:*) |
2048 | 1077 | echo "$UNAME_MACHINE"-unknown-atheos | 1202 | GUESS=$UNAME_MACHINE-unknown-atheos |
2049 | 1078 | exit ;; | 1203 | ;; |
2050 | 1079 | i*86:syllable:*:*) | 1204 | i*86:syllable:*:*) |
2053 | 1080 | echo "$UNAME_MACHINE"-pc-syllable | 1205 | GUESS=$UNAME_MACHINE-pc-syllable |
2054 | 1081 | exit ;; | 1206 | ;; |
2055 | 1082 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | 1207 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
2058 | 1083 | echo i386-unknown-lynxos"$UNAME_RELEASE" | 1208 | GUESS=i386-unknown-lynxos$UNAME_RELEASE |
2059 | 1084 | exit ;; | 1209 | ;; |
2060 | 1085 | i*86:*DOS:*:*) | 1210 | i*86:*DOS:*:*) |
2063 | 1086 | echo "$UNAME_MACHINE"-pc-msdosdjgpp | 1211 | GUESS=$UNAME_MACHINE-pc-msdosdjgpp |
2064 | 1087 | exit ;; | 1212 | ;; |
2065 | 1088 | i*86:*:4.*:*) | 1213 | i*86:*:4.*:*) |
2066 | 1089 | UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` | 1214 | UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` |
2067 | 1090 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | 1215 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
2069 | 1091 | echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" | 1216 | GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL |
2070 | 1092 | else | 1217 | else |
2072 | 1093 | echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" | 1218 | GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL |
2073 | 1094 | fi | 1219 | fi |
2075 | 1095 | exit ;; | 1220 | ;; |
2076 | 1096 | i*86:*:5:[678]*) | 1221 | i*86:*:5:[678]*) |
2077 | 1097 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | 1222 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
2078 | 1098 | case `/bin/uname -X | grep "^Machine"` in | 1223 | case `/bin/uname -X | grep "^Machine"` in |
2079 | @@ -1100,12 +1225,12 @@ EOF | |||
2080 | 1100 | *Pentium) UNAME_MACHINE=i586 ;; | 1225 | *Pentium) UNAME_MACHINE=i586 ;; |
2081 | 1101 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | 1226 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
2082 | 1102 | esac | 1227 | esac |
2085 | 1103 | echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" | 1228 | GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} |
2086 | 1104 | exit ;; | 1229 | ;; |
2087 | 1105 | i*86:*:3.2:*) | 1230 | i*86:*:3.2:*) |
2088 | 1106 | if test -f /usr/options/cb.name; then | 1231 | if test -f /usr/options/cb.name; then |
2089 | 1107 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | 1232 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
2091 | 1108 | echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" | 1233 | GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL |
2092 | 1109 | elif /bin/uname -X 2>/dev/null >/dev/null ; then | 1234 | elif /bin/uname -X 2>/dev/null >/dev/null ; then |
2093 | 1110 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` | 1235 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
2094 | 1111 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 | 1236 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
2095 | @@ -1115,11 +1240,11 @@ EOF | |||
2096 | 1115 | && UNAME_MACHINE=i686 | 1240 | && UNAME_MACHINE=i686 |
2097 | 1116 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ | 1241 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
2098 | 1117 | && UNAME_MACHINE=i686 | 1242 | && UNAME_MACHINE=i686 |
2100 | 1118 | echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" | 1243 | GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL |
2101 | 1119 | else | 1244 | else |
2103 | 1120 | echo "$UNAME_MACHINE"-pc-sysv32 | 1245 | GUESS=$UNAME_MACHINE-pc-sysv32 |
2104 | 1121 | fi | 1246 | fi |
2106 | 1122 | exit ;; | 1247 | ;; |
2107 | 1123 | pc:*:*:*) | 1248 | pc:*:*:*) |
2108 | 1124 | # Left here for compatibility: | 1249 | # Left here for compatibility: |
2109 | 1125 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | 1250 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
2110 | @@ -1127,31 +1252,31 @@ EOF | |||
2111 | 1127 | # Note: whatever this is, it MUST be the same as what config.sub | 1252 | # Note: whatever this is, it MUST be the same as what config.sub |
2112 | 1128 | # prints for the "djgpp" host, or else GDB configure will decide that | 1253 | # prints for the "djgpp" host, or else GDB configure will decide that |
2113 | 1129 | # this is a cross-build. | 1254 | # this is a cross-build. |
2116 | 1130 | echo i586-pc-msdosdjgpp | 1255 | GUESS=i586-pc-msdosdjgpp |
2117 | 1131 | exit ;; | 1256 | ;; |
2118 | 1132 | Intel:Mach:3*:*) | 1257 | Intel:Mach:3*:*) |
2121 | 1133 | echo i386-pc-mach3 | 1258 | GUESS=i386-pc-mach3 |
2122 | 1134 | exit ;; | 1259 | ;; |
2123 | 1135 | paragon:*:*:*) | 1260 | paragon:*:*:*) |
2126 | 1136 | echo i860-intel-osf1 | 1261 | GUESS=i860-intel-osf1 |
2127 | 1137 | exit ;; | 1262 | ;; |
2128 | 1138 | i860:*:4.*:*) # i860-SVR4 | 1263 | i860:*:4.*:*) # i860-SVR4 |
2129 | 1139 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then | 1264 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
2131 | 1140 | echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 | 1265 | GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 |
2132 | 1141 | else # Add other i860-SVR4 vendors below as they are discovered. | 1266 | else # Add other i860-SVR4 vendors below as they are discovered. |
2134 | 1142 | echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 | 1267 | GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 |
2135 | 1143 | fi | 1268 | fi |
2137 | 1144 | exit ;; | 1269 | ;; |
2138 | 1145 | mini*:CTIX:SYS*5:*) | 1270 | mini*:CTIX:SYS*5:*) |
2139 | 1146 | # "miniframe" | 1271 | # "miniframe" |
2142 | 1147 | echo m68010-convergent-sysv | 1272 | GUESS=m68010-convergent-sysv |
2143 | 1148 | exit ;; | 1273 | ;; |
2144 | 1149 | mc68k:UNIX:SYSTEM5:3.51m) | 1274 | mc68k:UNIX:SYSTEM5:3.51m) |
2147 | 1150 | echo m68k-convergent-sysv | 1275 | GUESS=m68k-convergent-sysv |
2148 | 1151 | exit ;; | 1276 | ;; |
2149 | 1152 | M680?0:D-NIX:5.3:*) | 1277 | M680?0:D-NIX:5.3:*) |
2152 | 1153 | echo m68k-diab-dnix | 1278 | GUESS=m68k-diab-dnix |
2153 | 1154 | exit ;; | 1279 | ;; |
2154 | 1155 | M68*:*:R3V[5678]*:*) | 1280 | M68*:*:R3V[5678]*:*) |
2155 | 1156 | test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; | 1281 | test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; |
2156 | 1157 | 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) | 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) |
2157 | @@ -1176,249 +1301,407 @@ EOF | |||
2158 | 1176 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | 1301 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
2159 | 1177 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | 1302 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; |
2160 | 1178 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | 1303 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
2163 | 1179 | echo m68k-unknown-lynxos"$UNAME_RELEASE" | 1304 | GUESS=m68k-unknown-lynxos$UNAME_RELEASE |
2164 | 1180 | exit ;; | 1305 | ;; |
2165 | 1181 | mc68030:UNIX_System_V:4.*:*) | 1306 | mc68030:UNIX_System_V:4.*:*) |
2168 | 1182 | echo m68k-atari-sysv4 | 1307 | GUESS=m68k-atari-sysv4 |
2169 | 1183 | exit ;; | 1308 | ;; |
2170 | 1184 | TSUNAMI:LynxOS:2.*:*) | 1309 | TSUNAMI:LynxOS:2.*:*) |
2173 | 1185 | echo sparc-unknown-lynxos"$UNAME_RELEASE" | 1310 | GUESS=sparc-unknown-lynxos$UNAME_RELEASE |
2174 | 1186 | exit ;; | 1311 | ;; |
2175 | 1187 | rs6000:LynxOS:2.*:*) | 1312 | rs6000:LynxOS:2.*:*) |
2178 | 1188 | echo rs6000-unknown-lynxos"$UNAME_RELEASE" | 1313 | GUESS=rs6000-unknown-lynxos$UNAME_RELEASE |
2179 | 1189 | exit ;; | 1314 | ;; |
2180 | 1190 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | 1315 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
2183 | 1191 | echo powerpc-unknown-lynxos"$UNAME_RELEASE" | 1316 | GUESS=powerpc-unknown-lynxos$UNAME_RELEASE |
2184 | 1192 | exit ;; | 1317 | ;; |
2185 | 1193 | SM[BE]S:UNIX_SV:*:*) | 1318 | SM[BE]S:UNIX_SV:*:*) |
2188 | 1194 | echo mips-dde-sysv"$UNAME_RELEASE" | 1319 | GUESS=mips-dde-sysv$UNAME_RELEASE |
2189 | 1195 | exit ;; | 1320 | ;; |
2190 | 1196 | RM*:ReliantUNIX-*:*:*) | 1321 | RM*:ReliantUNIX-*:*:*) |
2193 | 1197 | echo mips-sni-sysv4 | 1322 | GUESS=mips-sni-sysv4 |
2194 | 1198 | exit ;; | 1323 | ;; |
2195 | 1199 | RM*:SINIX-*:*:*) | 1324 | RM*:SINIX-*:*:*) |
2198 | 1200 | echo mips-sni-sysv4 | 1325 | GUESS=mips-sni-sysv4 |
2199 | 1201 | exit ;; | 1326 | ;; |
2200 | 1202 | *:SINIX-*:*:*) | 1327 | *:SINIX-*:*:*) |
2201 | 1203 | if uname -p 2>/dev/null >/dev/null ; then | 1328 | if uname -p 2>/dev/null >/dev/null ; then |
2202 | 1204 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | 1329 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
2204 | 1205 | echo "$UNAME_MACHINE"-sni-sysv4 | 1330 | GUESS=$UNAME_MACHINE-sni-sysv4 |
2205 | 1206 | else | 1331 | else |
2207 | 1207 | echo ns32k-sni-sysv | 1332 | GUESS=ns32k-sni-sysv |
2208 | 1208 | fi | 1333 | fi |
2210 | 1209 | exit ;; | 1334 | ;; |
2211 | 1210 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | 1335 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
2212 | 1211 | # says <Richard.M.Bartel@ccMail.Census.GOV> | 1336 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
2215 | 1212 | echo i586-unisys-sysv4 | 1337 | GUESS=i586-unisys-sysv4 |
2216 | 1213 | exit ;; | 1338 | ;; |
2217 | 1214 | *:UNIX_System_V:4*:FTX*) | 1339 | *:UNIX_System_V:4*:FTX*) |
2218 | 1215 | # From Gerald Hewes <hewes@openmarket.com>. | 1340 | # From Gerald Hewes <hewes@openmarket.com>. |
2219 | 1216 | # How about differentiating between stratus architectures? -djm | 1341 | # How about differentiating between stratus architectures? -djm |
2222 | 1217 | echo hppa1.1-stratus-sysv4 | 1342 | GUESS=hppa1.1-stratus-sysv4 |
2223 | 1218 | exit ;; | 1343 | ;; |
2224 | 1219 | *:*:*:FTX*) | 1344 | *:*:*:FTX*) |
2225 | 1220 | # From seanf@swdc.stratus.com. | 1345 | # From seanf@swdc.stratus.com. |
2228 | 1221 | echo i860-stratus-sysv4 | 1346 | GUESS=i860-stratus-sysv4 |
2229 | 1222 | exit ;; | 1347 | ;; |
2230 | 1223 | i*86:VOS:*:*) | 1348 | i*86:VOS:*:*) |
2231 | 1224 | # From Paul.Green@stratus.com. | 1349 | # From Paul.Green@stratus.com. |
2234 | 1225 | echo "$UNAME_MACHINE"-stratus-vos | 1350 | GUESS=$UNAME_MACHINE-stratus-vos |
2235 | 1226 | exit ;; | 1351 | ;; |
2236 | 1227 | *:VOS:*:*) | 1352 | *:VOS:*:*) |
2237 | 1228 | # From Paul.Green@stratus.com. | 1353 | # From Paul.Green@stratus.com. |
2240 | 1229 | echo hppa1.1-stratus-vos | 1354 | GUESS=hppa1.1-stratus-vos |
2241 | 1230 | exit ;; | 1355 | ;; |
2242 | 1231 | mc68*:A/UX:*:*) | 1356 | mc68*:A/UX:*:*) |
2245 | 1232 | echo m68k-apple-aux"$UNAME_RELEASE" | 1357 | GUESS=m68k-apple-aux$UNAME_RELEASE |
2246 | 1233 | exit ;; | 1358 | ;; |
2247 | 1234 | news*:NEWS-OS:6*:*) | 1359 | news*:NEWS-OS:6*:*) |
2250 | 1235 | echo mips-sony-newsos6 | 1360 | GUESS=mips-sony-newsos6 |
2251 | 1236 | exit ;; | 1361 | ;; |
2252 | 1237 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | 1362 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
2255 | 1238 | if [ -d /usr/nec ]; then | 1363 | if test -d /usr/nec; then |
2256 | 1239 | echo mips-nec-sysv"$UNAME_RELEASE" | 1364 | GUESS=mips-nec-sysv$UNAME_RELEASE |
2257 | 1240 | else | 1365 | else |
2259 | 1241 | echo mips-unknown-sysv"$UNAME_RELEASE" | 1366 | GUESS=mips-unknown-sysv$UNAME_RELEASE |
2260 | 1242 | fi | 1367 | fi |
2262 | 1243 | exit ;; | 1368 | ;; |
2263 | 1244 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | 1369 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
2266 | 1245 | echo powerpc-be-beos | 1370 | GUESS=powerpc-be-beos |
2267 | 1246 | exit ;; | 1371 | ;; |
2268 | 1247 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | 1372 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
2271 | 1248 | echo powerpc-apple-beos | 1373 | GUESS=powerpc-apple-beos |
2272 | 1249 | exit ;; | 1374 | ;; |
2273 | 1250 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | 1375 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
2276 | 1251 | echo i586-pc-beos | 1376 | GUESS=i586-pc-beos |
2277 | 1252 | exit ;; | 1377 | ;; |
2278 | 1253 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | 1378 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
2284 | 1254 | echo i586-pc-haiku | 1379 | GUESS=i586-pc-haiku |
2285 | 1255 | exit ;; | 1380 | ;; |
2286 | 1256 | x86_64:Haiku:*:*) | 1381 | ppc:Haiku:*:*) # Haiku running on Apple PowerPC |
2287 | 1257 | echo x86_64-unknown-haiku | 1382 | GUESS=powerpc-apple-haiku |
2288 | 1258 | exit ;; | 1383 | ;; |
2289 | 1384 | *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) | ||
2290 | 1385 | GUESS=$UNAME_MACHINE-unknown-haiku | ||
2291 | 1386 | ;; | ||
2292 | 1259 | SX-4:SUPER-UX:*:*) | 1387 | SX-4:SUPER-UX:*:*) |
2295 | 1260 | echo sx4-nec-superux"$UNAME_RELEASE" | 1388 | GUESS=sx4-nec-superux$UNAME_RELEASE |
2296 | 1261 | exit ;; | 1389 | ;; |
2297 | 1262 | SX-5:SUPER-UX:*:*) | 1390 | SX-5:SUPER-UX:*:*) |
2300 | 1263 | echo sx5-nec-superux"$UNAME_RELEASE" | 1391 | GUESS=sx5-nec-superux$UNAME_RELEASE |
2301 | 1264 | exit ;; | 1392 | ;; |
2302 | 1265 | SX-6:SUPER-UX:*:*) | 1393 | SX-6:SUPER-UX:*:*) |
2305 | 1266 | echo sx6-nec-superux"$UNAME_RELEASE" | 1394 | GUESS=sx6-nec-superux$UNAME_RELEASE |
2306 | 1267 | exit ;; | 1395 | ;; |
2307 | 1268 | SX-7:SUPER-UX:*:*) | 1396 | SX-7:SUPER-UX:*:*) |
2310 | 1269 | echo sx7-nec-superux"$UNAME_RELEASE" | 1397 | GUESS=sx7-nec-superux$UNAME_RELEASE |
2311 | 1270 | exit ;; | 1398 | ;; |
2312 | 1271 | SX-8:SUPER-UX:*:*) | 1399 | SX-8:SUPER-UX:*:*) |
2315 | 1272 | echo sx8-nec-superux"$UNAME_RELEASE" | 1400 | GUESS=sx8-nec-superux$UNAME_RELEASE |
2316 | 1273 | exit ;; | 1401 | ;; |
2317 | 1274 | SX-8R:SUPER-UX:*:*) | 1402 | SX-8R:SUPER-UX:*:*) |
2320 | 1275 | echo sx8r-nec-superux"$UNAME_RELEASE" | 1403 | GUESS=sx8r-nec-superux$UNAME_RELEASE |
2321 | 1276 | exit ;; | 1404 | ;; |
2322 | 1277 | SX-ACE:SUPER-UX:*:*) | 1405 | SX-ACE:SUPER-UX:*:*) |
2325 | 1278 | echo sxace-nec-superux"$UNAME_RELEASE" | 1406 | GUESS=sxace-nec-superux$UNAME_RELEASE |
2326 | 1279 | exit ;; | 1407 | ;; |
2327 | 1280 | Power*:Rhapsody:*:*) | 1408 | Power*:Rhapsody:*:*) |
2330 | 1281 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | 1409 | GUESS=powerpc-apple-rhapsody$UNAME_RELEASE |
2331 | 1282 | exit ;; | 1410 | ;; |
2332 | 1283 | *:Rhapsody:*:*) | 1411 | *:Rhapsody:*:*) |
2335 | 1284 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | 1412 | GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE |
2336 | 1285 | exit ;; | 1413 | ;; |
2337 | 1414 | arm64:Darwin:*:*) | ||
2338 | 1415 | GUESS=aarch64-apple-darwin$UNAME_RELEASE | ||
2339 | 1416 | ;; | ||
2340 | 1286 | *:Darwin:*:*) | 1417 | *:Darwin:*:*) |
2345 | 1287 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1418 | UNAME_PROCESSOR=`uname -p` |
2346 | 1288 | eval "$set_cc_for_build" | 1419 | case $UNAME_PROCESSOR in |
2347 | 1289 | if test "$UNAME_PROCESSOR" = unknown ; then | 1420 | unknown) UNAME_PROCESSOR=powerpc ;; |
2348 | 1290 | UNAME_PROCESSOR=powerpc | 1421 | esac |
2349 | 1422 | if command -v xcode-select > /dev/null 2> /dev/null && \ | ||
2350 | 1423 | ! xcode-select --print-path > /dev/null 2> /dev/null ; then | ||
2351 | 1424 | # Avoid executing cc if there is no toolchain installed as | ||
2352 | 1425 | # cc will be a stub that puts up a graphical alert | ||
2353 | 1426 | # prompting the user to install developer tools. | ||
2354 | 1427 | CC_FOR_BUILD=no_compiler_found | ||
2355 | 1428 | else | ||
2356 | 1429 | set_cc_for_build | ||
2357 | 1291 | fi | 1430 | fi |
2376 | 1292 | if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then | 1431 | if test "$CC_FOR_BUILD" != no_compiler_found; then |
2377 | 1293 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | 1432 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
2378 | 1294 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | 1433 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ |
2379 | 1295 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1434 | grep IS_64BIT_ARCH >/dev/null |
2380 | 1296 | grep IS_64BIT_ARCH >/dev/null | 1435 | then |
2381 | 1297 | then | 1436 | case $UNAME_PROCESSOR in |
2382 | 1298 | case $UNAME_PROCESSOR in | 1437 | i386) UNAME_PROCESSOR=x86_64 ;; |
2383 | 1299 | i386) UNAME_PROCESSOR=x86_64 ;; | 1438 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
2384 | 1300 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | 1439 | esac |
2385 | 1301 | esac | 1440 | fi |
2386 | 1302 | fi | 1441 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc |
2387 | 1303 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | 1442 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ |
2388 | 1304 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | 1443 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ |
2389 | 1305 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1444 | grep IS_PPC >/dev/null |
2390 | 1306 | grep IS_PPC >/dev/null | 1445 | then |
2391 | 1307 | then | 1446 | UNAME_PROCESSOR=powerpc |
2374 | 1308 | UNAME_PROCESSOR=powerpc | ||
2375 | 1309 | fi | ||
2392 | 1310 | fi | 1447 | fi |
2393 | 1311 | elif test "$UNAME_PROCESSOR" = i386 ; then | 1448 | elif test "$UNAME_PROCESSOR" = i386 ; then |
2401 | 1312 | # Avoid executing cc on OS X 10.9, as it ships with a stub | 1449 | # uname -m returns i386 or x86_64 |
2402 | 1313 | # that puts up a graphical alert prompting to install | 1450 | UNAME_PROCESSOR=$UNAME_MACHINE |
2396 | 1314 | # developer tools. Any system running Mac OS X 10.7 or | ||
2397 | 1315 | # later (Darwin 11 and later) is required to have a 64-bit | ||
2398 | 1316 | # processor. This is not true of the ARM version of Darwin | ||
2399 | 1317 | # that Apple uses in portable devices. | ||
2400 | 1318 | UNAME_PROCESSOR=x86_64 | ||
2403 | 1319 | fi | 1451 | fi |
2406 | 1320 | echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" | 1452 | GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE |
2407 | 1321 | exit ;; | 1453 | ;; |
2408 | 1322 | *:procnto*:*:* | *:QNX:[0123456789]*:*) | 1454 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
2409 | 1323 | UNAME_PROCESSOR=`uname -p` | 1455 | UNAME_PROCESSOR=`uname -p` |
2410 | 1324 | if test "$UNAME_PROCESSOR" = x86; then | 1456 | if test "$UNAME_PROCESSOR" = x86; then |
2411 | 1325 | UNAME_PROCESSOR=i386 | 1457 | UNAME_PROCESSOR=i386 |
2412 | 1326 | UNAME_MACHINE=pc | 1458 | UNAME_MACHINE=pc |
2413 | 1327 | fi | 1459 | fi |
2416 | 1328 | echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" | 1460 | GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE |
2417 | 1329 | exit ;; | 1461 | ;; |
2418 | 1330 | *:QNX:*:4*) | 1462 | *:QNX:*:4*) |
2421 | 1331 | echo i386-pc-qnx | 1463 | GUESS=i386-pc-qnx |
2422 | 1332 | exit ;; | 1464 | ;; |
2423 | 1333 | NEO-*:NONSTOP_KERNEL:*:*) | 1465 | NEO-*:NONSTOP_KERNEL:*:*) |
2426 | 1334 | echo neo-tandem-nsk"$UNAME_RELEASE" | 1466 | GUESS=neo-tandem-nsk$UNAME_RELEASE |
2427 | 1335 | exit ;; | 1467 | ;; |
2428 | 1336 | NSE-*:NONSTOP_KERNEL:*:*) | 1468 | NSE-*:NONSTOP_KERNEL:*:*) |
2431 | 1337 | echo nse-tandem-nsk"$UNAME_RELEASE" | 1469 | GUESS=nse-tandem-nsk$UNAME_RELEASE |
2432 | 1338 | exit ;; | 1470 | ;; |
2433 | 1339 | NSR-*:NONSTOP_KERNEL:*:*) | 1471 | NSR-*:NONSTOP_KERNEL:*:*) |
2436 | 1340 | echo nsr-tandem-nsk"$UNAME_RELEASE" | 1472 | GUESS=nsr-tandem-nsk$UNAME_RELEASE |
2437 | 1341 | exit ;; | 1473 | ;; |
2438 | 1342 | NSV-*:NONSTOP_KERNEL:*:*) | 1474 | NSV-*:NONSTOP_KERNEL:*:*) |
2441 | 1343 | echo nsv-tandem-nsk"$UNAME_RELEASE" | 1475 | GUESS=nsv-tandem-nsk$UNAME_RELEASE |
2442 | 1344 | exit ;; | 1476 | ;; |
2443 | 1345 | NSX-*:NONSTOP_KERNEL:*:*) | 1477 | NSX-*:NONSTOP_KERNEL:*:*) |
2446 | 1346 | echo nsx-tandem-nsk"$UNAME_RELEASE" | 1478 | GUESS=nsx-tandem-nsk$UNAME_RELEASE |
2447 | 1347 | exit ;; | 1479 | ;; |
2448 | 1348 | *:NonStop-UX:*:*) | 1480 | *:NonStop-UX:*:*) |
2451 | 1349 | echo mips-compaq-nonstopux | 1481 | GUESS=mips-compaq-nonstopux |
2452 | 1350 | exit ;; | 1482 | ;; |
2453 | 1351 | BS2000:POSIX*:*:*) | 1483 | BS2000:POSIX*:*:*) |
2456 | 1352 | echo bs2000-siemens-sysv | 1484 | GUESS=bs2000-siemens-sysv |
2457 | 1353 | exit ;; | 1485 | ;; |
2458 | 1354 | DS/*:UNIX_System_V:*:*) | 1486 | DS/*:UNIX_System_V:*:*) |
2461 | 1355 | echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" | 1487 | GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE |
2462 | 1356 | exit ;; | 1488 | ;; |
2463 | 1357 | *:Plan9:*:*) | 1489 | *:Plan9:*:*) |
2464 | 1358 | # "uname -m" is not consistent, so use $cputype instead. 386 | 1490 | # "uname -m" is not consistent, so use $cputype instead. 386 |
2465 | 1359 | # is converted to i386 for consistency with other x86 | 1491 | # is converted to i386 for consistency with other x86 |
2466 | 1360 | # operating systems. | 1492 | # operating systems. |
2468 | 1361 | if test "$cputype" = 386; then | 1493 | if test "${cputype-}" = 386; then |
2469 | 1362 | UNAME_MACHINE=i386 | 1494 | UNAME_MACHINE=i386 |
2472 | 1363 | else | 1495 | elif test "x${cputype-}" != x; then |
2473 | 1364 | UNAME_MACHINE="$cputype" | 1496 | UNAME_MACHINE=$cputype |
2474 | 1365 | fi | 1497 | fi |
2477 | 1366 | echo "$UNAME_MACHINE"-unknown-plan9 | 1498 | GUESS=$UNAME_MACHINE-unknown-plan9 |
2478 | 1367 | exit ;; | 1499 | ;; |
2479 | 1368 | *:TOPS-10:*:*) | 1500 | *:TOPS-10:*:*) |
2482 | 1369 | echo pdp10-unknown-tops10 | 1501 | GUESS=pdp10-unknown-tops10 |
2483 | 1370 | exit ;; | 1502 | ;; |
2484 | 1371 | *:TENEX:*:*) | 1503 | *:TENEX:*:*) |
2487 | 1372 | echo pdp10-unknown-tenex | 1504 | GUESS=pdp10-unknown-tenex |
2488 | 1373 | exit ;; | 1505 | ;; |
2489 | 1374 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) | 1506 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
2492 | 1375 | echo pdp10-dec-tops20 | 1507 | GUESS=pdp10-dec-tops20 |
2493 | 1376 | exit ;; | 1508 | ;; |
2494 | 1377 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) | 1509 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) |
2497 | 1378 | echo pdp10-xkl-tops20 | 1510 | GUESS=pdp10-xkl-tops20 |
2498 | 1379 | exit ;; | 1511 | ;; |
2499 | 1380 | *:TOPS-20:*:*) | 1512 | *:TOPS-20:*:*) |
2502 | 1381 | echo pdp10-unknown-tops20 | 1513 | GUESS=pdp10-unknown-tops20 |
2503 | 1382 | exit ;; | 1514 | ;; |
2504 | 1383 | *:ITS:*:*) | 1515 | *:ITS:*:*) |
2507 | 1384 | echo pdp10-unknown-its | 1516 | GUESS=pdp10-unknown-its |
2508 | 1385 | exit ;; | 1517 | ;; |
2509 | 1386 | SEI:*:*:SEIUX) | 1518 | SEI:*:*:SEIUX) |
2512 | 1387 | echo mips-sei-seiux"$UNAME_RELEASE" | 1519 | GUESS=mips-sei-seiux$UNAME_RELEASE |
2513 | 1388 | exit ;; | 1520 | ;; |
2514 | 1389 | *:DragonFly:*:*) | 1521 | *:DragonFly:*:*) |
2517 | 1390 | echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | 1522 | DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` |
2518 | 1391 | exit ;; | 1523 | GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL |
2519 | 1524 | ;; | ||
2520 | 1392 | *:*VMS:*:*) | 1525 | *:*VMS:*:*) |
2521 | 1393 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | 1526 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
2526 | 1394 | case "$UNAME_MACHINE" in | 1527 | case $UNAME_MACHINE in |
2527 | 1395 | A*) echo alpha-dec-vms ; exit ;; | 1528 | A*) GUESS=alpha-dec-vms ;; |
2528 | 1396 | I*) echo ia64-dec-vms ; exit ;; | 1529 | I*) GUESS=ia64-dec-vms ;; |
2529 | 1397 | V*) echo vax-dec-vms ; exit ;; | 1530 | V*) GUESS=vax-dec-vms ;; |
2530 | 1398 | esac ;; | 1531 | esac ;; |
2531 | 1399 | *:XENIX:*:SysV) | 1532 | *:XENIX:*:SysV) |
2534 | 1400 | echo i386-pc-xenix | 1533 | GUESS=i386-pc-xenix |
2535 | 1401 | exit ;; | 1534 | ;; |
2536 | 1402 | i*86:skyos:*:*) | 1535 | i*86:skyos:*:*) |
2539 | 1403 | echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" | 1536 | SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` |
2540 | 1404 | exit ;; | 1537 | GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL |
2541 | 1538 | ;; | ||
2542 | 1405 | i*86:rdos:*:*) | 1539 | i*86:rdos:*:*) |
2548 | 1406 | echo "$UNAME_MACHINE"-pc-rdos | 1540 | GUESS=$UNAME_MACHINE-pc-rdos |
2549 | 1407 | exit ;; | 1541 | ;; |
2550 | 1408 | i*86:AROS:*:*) | 1542 | i*86:Fiwix:*:*) |
2551 | 1409 | echo "$UNAME_MACHINE"-pc-aros | 1543 | GUESS=$UNAME_MACHINE-pc-fiwix |
2552 | 1410 | exit ;; | 1544 | ;; |
2553 | 1545 | *:AROS:*:*) | ||
2554 | 1546 | GUESS=$UNAME_MACHINE-unknown-aros | ||
2555 | 1547 | ;; | ||
2556 | 1411 | x86_64:VMkernel:*:*) | 1548 | x86_64:VMkernel:*:*) |
2559 | 1412 | echo "$UNAME_MACHINE"-unknown-esx | 1549 | GUESS=$UNAME_MACHINE-unknown-esx |
2560 | 1413 | exit ;; | 1550 | ;; |
2561 | 1414 | amd64:Isilon\ OneFS:*:*) | 1551 | amd64:Isilon\ OneFS:*:*) |
2564 | 1415 | echo x86_64-unknown-onefs | 1552 | GUESS=x86_64-unknown-onefs |
2565 | 1416 | exit ;; | 1553 | ;; |
2566 | 1554 | *:Unleashed:*:*) | ||
2567 | 1555 | GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE | ||
2568 | 1556 | ;; | ||
2569 | 1417 | esac | 1557 | esac |
2570 | 1418 | 1558 | ||
2571 | 1559 | # Do we have a guess based on uname results? | ||
2572 | 1560 | if test "x$GUESS" != x; then | ||
2573 | 1561 | echo "$GUESS" | ||
2574 | 1562 | exit | ||
2575 | 1563 | fi | ||
2576 | 1564 | |||
2577 | 1565 | # No uname command or uname output not recognized. | ||
2578 | 1566 | set_cc_for_build | ||
2579 | 1567 | cat > "$dummy.c" <<EOF | ||
2580 | 1568 | #ifdef _SEQUENT_ | ||
2581 | 1569 | #include <sys/types.h> | ||
2582 | 1570 | #include <sys/utsname.h> | ||
2583 | 1571 | #endif | ||
2584 | 1572 | #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) | ||
2585 | 1573 | #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) | ||
2586 | 1574 | #include <signal.h> | ||
2587 | 1575 | #if defined(_SIZE_T_) || defined(SIGLOST) | ||
2588 | 1576 | #include <sys/utsname.h> | ||
2589 | 1577 | #endif | ||
2590 | 1578 | #endif | ||
2591 | 1579 | #endif | ||
2592 | 1580 | main () | ||
2593 | 1581 | { | ||
2594 | 1582 | #if defined (sony) | ||
2595 | 1583 | #if defined (MIPSEB) | ||
2596 | 1584 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | ||
2597 | 1585 | I don't know.... */ | ||
2598 | 1586 | printf ("mips-sony-bsd\n"); exit (0); | ||
2599 | 1587 | #else | ||
2600 | 1588 | #include <sys/param.h> | ||
2601 | 1589 | printf ("m68k-sony-newsos%s\n", | ||
2602 | 1590 | #ifdef NEWSOS4 | ||
2603 | 1591 | "4" | ||
2604 | 1592 | #else | ||
2605 | 1593 | "" | ||
2606 | 1594 | #endif | ||
2607 | 1595 | ); exit (0); | ||
2608 | 1596 | #endif | ||
2609 | 1597 | #endif | ||
2610 | 1598 | |||
2611 | 1599 | #if defined (NeXT) | ||
2612 | 1600 | #if !defined (__ARCHITECTURE__) | ||
2613 | 1601 | #define __ARCHITECTURE__ "m68k" | ||
2614 | 1602 | #endif | ||
2615 | 1603 | int version; | ||
2616 | 1604 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | ||
2617 | 1605 | if (version < 4) | ||
2618 | 1606 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | ||
2619 | 1607 | else | ||
2620 | 1608 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | ||
2621 | 1609 | exit (0); | ||
2622 | 1610 | #endif | ||
2623 | 1611 | |||
2624 | 1612 | #if defined (MULTIMAX) || defined (n16) | ||
2625 | 1613 | #if defined (UMAXV) | ||
2626 | 1614 | printf ("ns32k-encore-sysv\n"); exit (0); | ||
2627 | 1615 | #else | ||
2628 | 1616 | #if defined (CMU) | ||
2629 | 1617 | printf ("ns32k-encore-mach\n"); exit (0); | ||
2630 | 1618 | #else | ||
2631 | 1619 | printf ("ns32k-encore-bsd\n"); exit (0); | ||
2632 | 1620 | #endif | ||
2633 | 1621 | #endif | ||
2634 | 1622 | #endif | ||
2635 | 1623 | |||
2636 | 1624 | #if defined (__386BSD__) | ||
2637 | 1625 | printf ("i386-pc-bsd\n"); exit (0); | ||
2638 | 1626 | #endif | ||
2639 | 1627 | |||
2640 | 1628 | #if defined (sequent) | ||
2641 | 1629 | #if defined (i386) | ||
2642 | 1630 | printf ("i386-sequent-dynix\n"); exit (0); | ||
2643 | 1631 | #endif | ||
2644 | 1632 | #if defined (ns32000) | ||
2645 | 1633 | printf ("ns32k-sequent-dynix\n"); exit (0); | ||
2646 | 1634 | #endif | ||
2647 | 1635 | #endif | ||
2648 | 1636 | |||
2649 | 1637 | #if defined (_SEQUENT_) | ||
2650 | 1638 | struct utsname un; | ||
2651 | 1639 | |||
2652 | 1640 | uname(&un); | ||
2653 | 1641 | if (strncmp(un.version, "V2", 2) == 0) { | ||
2654 | 1642 | printf ("i386-sequent-ptx2\n"); exit (0); | ||
2655 | 1643 | } | ||
2656 | 1644 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | ||
2657 | 1645 | printf ("i386-sequent-ptx1\n"); exit (0); | ||
2658 | 1646 | } | ||
2659 | 1647 | printf ("i386-sequent-ptx\n"); exit (0); | ||
2660 | 1648 | #endif | ||
2661 | 1649 | |||
2662 | 1650 | #if defined (vax) | ||
2663 | 1651 | #if !defined (ultrix) | ||
2664 | 1652 | #include <sys/param.h> | ||
2665 | 1653 | #if defined (BSD) | ||
2666 | 1654 | #if BSD == 43 | ||
2667 | 1655 | printf ("vax-dec-bsd4.3\n"); exit (0); | ||
2668 | 1656 | #else | ||
2669 | 1657 | #if BSD == 199006 | ||
2670 | 1658 | printf ("vax-dec-bsd4.3reno\n"); exit (0); | ||
2671 | 1659 | #else | ||
2672 | 1660 | printf ("vax-dec-bsd\n"); exit (0); | ||
2673 | 1661 | #endif | ||
2674 | 1662 | #endif | ||
2675 | 1663 | #else | ||
2676 | 1664 | printf ("vax-dec-bsd\n"); exit (0); | ||
2677 | 1665 | #endif | ||
2678 | 1666 | #else | ||
2679 | 1667 | #if defined(_SIZE_T_) || defined(SIGLOST) | ||
2680 | 1668 | struct utsname un; | ||
2681 | 1669 | uname (&un); | ||
2682 | 1670 | printf ("vax-dec-ultrix%s\n", un.release); exit (0); | ||
2683 | 1671 | #else | ||
2684 | 1672 | printf ("vax-dec-ultrix\n"); exit (0); | ||
2685 | 1673 | #endif | ||
2686 | 1674 | #endif | ||
2687 | 1675 | #endif | ||
2688 | 1676 | #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) | ||
2689 | 1677 | #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) | ||
2690 | 1678 | #if defined(_SIZE_T_) || defined(SIGLOST) | ||
2691 | 1679 | struct utsname *un; | ||
2692 | 1680 | uname (&un); | ||
2693 | 1681 | printf ("mips-dec-ultrix%s\n", un.release); exit (0); | ||
2694 | 1682 | #else | ||
2695 | 1683 | printf ("mips-dec-ultrix\n"); exit (0); | ||
2696 | 1684 | #endif | ||
2697 | 1685 | #endif | ||
2698 | 1686 | #endif | ||
2699 | 1687 | |||
2700 | 1688 | #if defined (alliant) && defined (i860) | ||
2701 | 1689 | printf ("i860-alliant-bsd\n"); exit (0); | ||
2702 | 1690 | #endif | ||
2703 | 1691 | |||
2704 | 1692 | exit (1); | ||
2705 | 1693 | } | ||
2706 | 1694 | EOF | ||
2707 | 1695 | |||
2708 | 1696 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && | ||
2709 | 1697 | { echo "$SYSTEM_NAME"; exit; } | ||
2710 | 1698 | |||
2711 | 1699 | # Apollos put the system type in the environment. | ||
2712 | 1700 | test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } | ||
2713 | 1701 | |||
2714 | 1419 | echo "$0: unable to guess system type" >&2 | 1702 | echo "$0: unable to guess system type" >&2 |
2715 | 1420 | 1703 | ||
2717 | 1421 | case "$UNAME_MACHINE:$UNAME_SYSTEM" in | 1704 | case $UNAME_MACHINE:$UNAME_SYSTEM in |
2718 | 1422 | mips:Linux | mips64:Linux) | 1705 | mips:Linux | mips64:Linux) |
2719 | 1423 | # If we got here on MIPS GNU/Linux, output extra information. | 1706 | # If we got here on MIPS GNU/Linux, output extra information. |
2720 | 1424 | cat >&2 <<EOF | 1707 | cat >&2 <<EOF |
2721 | @@ -1435,9 +1718,17 @@ This script (version $timestamp), has failed to recognize the | |||
2722 | 1435 | operating system you are using. If your script is old, overwrite *all* | 1718 | operating system you are using. If your script is old, overwrite *all* |
2723 | 1436 | copies of config.guess and config.sub with the latest versions from: | 1719 | copies of config.guess and config.sub with the latest versions from: |
2724 | 1437 | 1720 | ||
2726 | 1438 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | 1721 | https://git.savannah.gnu.org/cgit/config.git/plain/config.guess |
2727 | 1439 | and | 1722 | and |
2729 | 1440 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | 1723 | https://git.savannah.gnu.org/cgit/config.git/plain/config.sub |
2730 | 1724 | EOF | ||
2731 | 1725 | |||
2732 | 1726 | our_year=`echo $timestamp | sed 's,-.*,,'` | ||
2733 | 1727 | thisyear=`date +%Y` | ||
2734 | 1728 | # shellcheck disable=SC2003 | ||
2735 | 1729 | script_age=`expr "$thisyear" - "$our_year"` | ||
2736 | 1730 | if test "$script_age" -lt 3 ; then | ||
2737 | 1731 | cat >&2 <<EOF | ||
2738 | 1441 | 1732 | ||
2739 | 1442 | If $0 has already been updated, send the following data and any | 1733 | If $0 has already been updated, send the following data and any |
2740 | 1443 | information you think might be pertinent to config-patches@gnu.org to | 1734 | information you think might be pertinent to config-patches@gnu.org to |
2741 | @@ -1465,6 +1756,7 @@ UNAME_RELEASE = "$UNAME_RELEASE" | |||
2742 | 1465 | UNAME_SYSTEM = "$UNAME_SYSTEM" | 1756 | UNAME_SYSTEM = "$UNAME_SYSTEM" |
2743 | 1466 | UNAME_VERSION = "$UNAME_VERSION" | 1757 | UNAME_VERSION = "$UNAME_VERSION" |
2744 | 1467 | EOF | 1758 | EOF |
2745 | 1759 | fi | ||
2746 | 1468 | 1760 | ||
2747 | 1469 | exit 1 | 1761 | exit 1 |
2748 | 1470 | 1762 | ||
2749 | diff --git a/build-aux/config.sub b/build-aux/config.sub | |||
2750 | index 20f7cf2..b41da55 100755 | |||
2751 | --- a/build-aux/config.sub | |||
2752 | +++ b/build-aux/config.sub | |||
2753 | @@ -1,12 +1,14 @@ | |||
2755 | 1 | #! /bin/sh | 1 | #!/usr/bin/sh |
2756 | 2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
2758 | 3 | # Copyright 1992-2018 Free Software Foundation, Inc. | 3 | # Copyright 1992-2022 Free Software Foundation, Inc. |
2759 | 4 | 4 | ||
2761 | 5 | timestamp='2018-05-05' | 5 | # shellcheck disable=SC2006,SC2268 # see below for rationale |
2762 | 6 | |||
2763 | 7 | timestamp='2022-01-03' | ||
2764 | 6 | 8 | ||
2765 | 7 | # This file is free software; you can redistribute it and/or modify it | 9 | # This file is free software; you can redistribute it and/or modify it |
2766 | 8 | # under the terms of the GNU General Public License as published by | 10 | # under the terms of the GNU General Public License as published by |
2768 | 9 | # the Free Software Foundation; either version 3 of the License, or | 11 | # the Free Software Foundation, either version 3 of the License, or |
2769 | 10 | # (at your option) any later version. | 12 | # (at your option) any later version. |
2770 | 11 | # | 13 | # |
2771 | 12 | # This program is distributed in the hope that it will be useful, but | 14 | # This program is distributed in the hope that it will be useful, but |
2772 | @@ -33,7 +35,7 @@ timestamp='2018-05-05' | |||
2773 | 33 | # Otherwise, we print the canonical config type on stdout and succeed. | 35 | # Otherwise, we print the canonical config type on stdout and succeed. |
2774 | 34 | 36 | ||
2775 | 35 | # You can get the latest version of this script from: | 37 | # You can get the latest version of this script from: |
2777 | 36 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | 38 | # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub |
2778 | 37 | 39 | ||
2779 | 38 | # This file is supposed to be the same for all GNU packages | 40 | # This file is supposed to be the same for all GNU packages |
2780 | 39 | # and recognize all the CPU types, system types and aliases | 41 | # and recognize all the CPU types, system types and aliases |
2781 | @@ -50,6 +52,13 @@ timestamp='2018-05-05' | |||
2782 | 50 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | 52 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
2783 | 51 | # It is wrong to echo any other type of specification. | 53 | # It is wrong to echo any other type of specification. |
2784 | 52 | 54 | ||
2785 | 55 | # The "shellcheck disable" line above the timestamp inhibits complaints | ||
2786 | 56 | # about features and limitations of the classic Bourne shell that were | ||
2787 | 57 | # superseded or lifted in POSIX. However, this script identifies a wide | ||
2788 | 58 | # variety of pre-POSIX systems that do not have POSIX shells at all, and | ||
2789 | 59 | # even some reasonably current systems (Solaris 10 as case-in-point) still | ||
2790 | 60 | # have a pre-POSIX /bin/sh. | ||
2791 | 61 | |||
2792 | 53 | me=`echo "$0" | sed -e 's,.*/,,'` | 62 | me=`echo "$0" | sed -e 's,.*/,,'` |
2793 | 54 | 63 | ||
2794 | 55 | usage="\ | 64 | usage="\ |
2795 | @@ -67,7 +76,7 @@ Report bugs and patches to <config-patches@gnu.org>." | |||
2796 | 67 | version="\ | 76 | version="\ |
2797 | 68 | GNU config.sub ($timestamp) | 77 | GNU config.sub ($timestamp) |
2798 | 69 | 78 | ||
2800 | 70 | Copyright 1992-2018 Free Software Foundation, Inc. | 79 | Copyright 1992-2022 Free Software Foundation, Inc. |
2801 | 71 | 80 | ||
2802 | 72 | This is free software; see the source for copying conditions. There is NO | 81 | This is free software; see the source for copying conditions. There is NO |
2803 | 73 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 82 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
2804 | @@ -89,7 +98,7 @@ while test $# -gt 0 ; do | |||
2805 | 89 | - ) # Use stdin as input. | 98 | - ) # Use stdin as input. |
2806 | 90 | break ;; | 99 | break ;; |
2807 | 91 | -* ) | 100 | -* ) |
2809 | 92 | echo "$me: invalid option $1$help" | 101 | echo "$me: invalid option $1$help" >&2 |
2810 | 93 | exit 1 ;; | 102 | exit 1 ;; |
2811 | 94 | 103 | ||
2812 | 95 | *local*) | 104 | *local*) |
2813 | @@ -110,1249 +119,1186 @@ case $# in | |||
2814 | 110 | exit 1;; | 119 | exit 1;; |
2815 | 111 | esac | 120 | esac |
2816 | 112 | 121 | ||
2819 | 113 | # Spilt fields of configuration type | 122 | # Split fields of configuration type |
2820 | 114 | IFS="-" read -r field1 field2 field3 field4 <<EOF | 123 | # shellcheck disable=SC2162 |
2821 | 124 | saved_IFS=$IFS | ||
2822 | 125 | IFS="-" read field1 field2 field3 field4 <<EOF | ||
2823 | 115 | $1 | 126 | $1 |
2824 | 116 | EOF | 127 | EOF |
2825 | 128 | IFS=$saved_IFS | ||
2826 | 117 | 129 | ||
2827 | 118 | # Separate into logical components for further validation | 130 | # Separate into logical components for further validation |
2828 | 119 | case $1 in | 131 | case $1 in |
2829 | 132 | *-*-*-*-*) | ||
2830 | 133 | echo Invalid configuration \`"$1"\': more than four components >&2 | ||
2831 | 134 | exit 1 | ||
2832 | 135 | ;; | ||
2833 | 120 | *-*-*-*) | 136 | *-*-*-*) |
2834 | 121 | basic_machine=$field1-$field2 | 137 | basic_machine=$field1-$field2 |
2836 | 122 | os=-$field3-$field4 | 138 | basic_os=$field3-$field4 |
2837 | 123 | ;; | 139 | ;; |
2838 | 124 | *-*-*) | 140 | *-*-*) |
2839 | 125 | # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two | 141 | # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two |
2840 | 126 | # parts | 142 | # parts |
2841 | 127 | maybe_os=$field2-$field3 | 143 | maybe_os=$field2-$field3 |
2842 | 128 | case $maybe_os in | 144 | case $maybe_os in |
2845 | 129 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ | 145 | nto-qnx* | linux-* | uclinux-uclibc* \ |
2844 | 130 | | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ | ||
2846 | 131 | | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | 146 | | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ |
2847 | 132 | | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | 147 | | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ |
2848 | 133 | | storm-chaos* | os2-emx* | rtmk-nova*) | 148 | | storm-chaos* | os2-emx* | rtmk-nova*) |
2849 | 134 | basic_machine=$field1 | 149 | basic_machine=$field1 |
2851 | 135 | os=-$maybe_os | 150 | basic_os=$maybe_os |
2852 | 136 | ;; | 151 | ;; |
2853 | 137 | android-linux) | 152 | android-linux) |
2854 | 138 | basic_machine=$field1-unknown | 153 | basic_machine=$field1-unknown |
2856 | 139 | os=-linux-android | 154 | basic_os=linux-android |
2857 | 140 | ;; | 155 | ;; |
2858 | 141 | *) | 156 | *) |
2859 | 142 | basic_machine=$field1-$field2 | 157 | basic_machine=$field1-$field2 |
2861 | 143 | os=-$field3 | 158 | basic_os=$field3 |
2862 | 144 | ;; | 159 | ;; |
2863 | 145 | esac | 160 | esac |
2864 | 146 | ;; | 161 | ;; |
2865 | 147 | *-*) | 162 | *-*) |
2868 | 148 | basic_machine=$field1 | 163 | # A lone config we happen to match not fitting any pattern |
2869 | 149 | os=-$field2 | 164 | case $field1-$field2 in |
2870 | 165 | decstation-3100) | ||
2871 | 166 | basic_machine=mips-dec | ||
2872 | 167 | basic_os= | ||
2873 | 168 | ;; | ||
2874 | 169 | *-*) | ||
2875 | 170 | # Second component is usually, but not always the OS | ||
2876 | 171 | case $field2 in | ||
2877 | 172 | # Prevent following clause from handling this valid os | ||
2878 | 173 | sun*os*) | ||
2879 | 174 | basic_machine=$field1 | ||
2880 | 175 | basic_os=$field2 | ||
2881 | 176 | ;; | ||
2882 | 177 | zephyr*) | ||
2883 | 178 | basic_machine=$field1-unknown | ||
2884 | 179 | basic_os=$field2 | ||
2885 | 180 | ;; | ||
2886 | 181 | # Manufacturers | ||
2887 | 182 | dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | ||
2888 | 183 | | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | ||
2889 | 184 | | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | ||
2890 | 185 | | convergent* | ncr* | news | 32* | 3600* | 3100* \ | ||
2891 | 186 | | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | ||
2892 | 187 | | ultra | tti* | harris | dolphin | highlevel | gould \ | ||
2893 | 188 | | cbm | ns | masscomp | apple | axis | knuth | cray \ | ||
2894 | 189 | | microblaze* | sim | cisco \ | ||
2895 | 190 | | oki | wec | wrs | winbond) | ||
2896 | 191 | basic_machine=$field1-$field2 | ||
2897 | 192 | basic_os= | ||
2898 | 193 | ;; | ||
2899 | 194 | *) | ||
2900 | 195 | basic_machine=$field1 | ||
2901 | 196 | basic_os=$field2 | ||
2902 | 197 | ;; | ||
2903 | 198 | esac | ||
2904 | 199 | ;; | ||
2905 | 200 | esac | ||
2906 | 150 | ;; | 201 | ;; |
2907 | 151 | *) | 202 | *) |
3014 | 152 | basic_machine=$1 | 203 | # Convert single-component short-hands not valid as part of |
3015 | 153 | os= | 204 | # multi-component configurations. |
3016 | 154 | ;; | 205 | case $field1 in |
3017 | 155 | esac | 206 | 386bsd) |
3018 | 156 | 207 | basic_machine=i386-pc | |
3019 | 157 | ### Let's recognize common machines as not being operating systems so | 208 | basic_os=bsd |
3020 | 158 | ### that things like config.sub decstation-3100 work. We also | 209 | ;; |
3021 | 159 | ### recognize some manufacturers as not being operating systems, so we | 210 | a29khif) |
3022 | 160 | ### can provide default operating systems below. | 211 | basic_machine=a29k-amd |
3023 | 161 | case $os in | 212 | basic_os=udi |
3024 | 162 | -sun*os*) | 213 | ;; |
3025 | 163 | # Prevent following clause from handling this invalid input. | 214 | adobe68k) |
3026 | 164 | ;; | 215 | basic_machine=m68010-adobe |
3027 | 165 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | 216 | basic_os=scout |
3028 | 166 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | 217 | ;; |
3029 | 167 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | 218 | alliant) |
3030 | 168 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | 219 | basic_machine=fx80-alliant |
3031 | 169 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | 220 | basic_os= |
3032 | 170 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | 221 | ;; |
3033 | 171 | -apple | -axis | -knuth | -cray | -microblaze*) | 222 | altos | altos3068) |
3034 | 172 | os= | 223 | basic_machine=m68k-altos |
3035 | 173 | basic_machine=$1 | 224 | basic_os= |
3036 | 174 | ;; | 225 | ;; |
3037 | 175 | -bluegene*) | 226 | am29k) |
3038 | 176 | os=-cnk | 227 | basic_machine=a29k-none |
3039 | 177 | ;; | 228 | basic_os=bsd |
3040 | 178 | -sim | -cisco | -oki | -wec | -winbond) | 229 | ;; |
3041 | 179 | os= | 230 | amdahl) |
3042 | 180 | basic_machine=$1 | 231 | basic_machine=580-amdahl |
3043 | 181 | ;; | 232 | basic_os=sysv |
3044 | 182 | -scout) | 233 | ;; |
3045 | 183 | ;; | 234 | amiga) |
3046 | 184 | -wrs) | 235 | basic_machine=m68k-unknown |
3047 | 185 | os=-vxworks | 236 | basic_os= |
3048 | 186 | basic_machine=$1 | 237 | ;; |
3049 | 187 | ;; | 238 | amigaos | amigados) |
3050 | 188 | -chorusos*) | 239 | basic_machine=m68k-unknown |
3051 | 189 | os=-chorusos | 240 | basic_os=amigaos |
3052 | 190 | basic_machine=$1 | 241 | ;; |
3053 | 191 | ;; | 242 | amigaunix | amix) |
3054 | 192 | -chorusrdb) | 243 | basic_machine=m68k-unknown |
3055 | 193 | os=-chorusrdb | 244 | basic_os=sysv4 |
3056 | 194 | basic_machine=$1 | 245 | ;; |
3057 | 195 | ;; | 246 | apollo68) |
3058 | 196 | -hiux*) | 247 | basic_machine=m68k-apollo |
3059 | 197 | os=-hiuxwe2 | 248 | basic_os=sysv |
3060 | 198 | ;; | 249 | ;; |
3061 | 199 | -sco6) | 250 | apollo68bsd) |
3062 | 200 | os=-sco5v6 | 251 | basic_machine=m68k-apollo |
3063 | 201 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 252 | basic_os=bsd |
3064 | 202 | ;; | 253 | ;; |
3065 | 203 | -sco5) | 254 | aros) |
3066 | 204 | os=-sco3.2v5 | 255 | basic_machine=i386-pc |
3067 | 205 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 256 | basic_os=aros |
3068 | 206 | ;; | 257 | ;; |
3069 | 207 | -sco4) | 258 | aux) |
3070 | 208 | os=-sco3.2v4 | 259 | basic_machine=m68k-apple |
3071 | 209 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 260 | basic_os=aux |
3072 | 210 | ;; | 261 | ;; |
3073 | 211 | -sco3.2.[4-9]*) | 262 | balance) |
3074 | 212 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | 263 | basic_machine=ns32k-sequent |
3075 | 213 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 264 | basic_os=dynix |
3076 | 214 | ;; | 265 | ;; |
3077 | 215 | -sco3.2v[4-9]*) | 266 | blackfin) |
3078 | 216 | # Don't forget version if it is 3.2v4 or newer. | 267 | basic_machine=bfin-unknown |
3079 | 217 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 268 | basic_os=linux |
3080 | 218 | ;; | 269 | ;; |
3081 | 219 | -sco5v6*) | 270 | cegcc) |
3082 | 220 | # Don't forget version if it is 3.2v4 or newer. | 271 | basic_machine=arm-unknown |
3083 | 221 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 272 | basic_os=cegcc |
3084 | 222 | ;; | 273 | ;; |
3085 | 223 | -sco*) | 274 | convex-c1) |
3086 | 224 | os=-sco3.2v2 | 275 | basic_machine=c1-convex |
3087 | 225 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 276 | basic_os=bsd |
3088 | 226 | ;; | 277 | ;; |
3089 | 227 | -udk*) | 278 | convex-c2) |
3090 | 228 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 279 | basic_machine=c2-convex |
3091 | 229 | ;; | 280 | basic_os=bsd |
3092 | 230 | -isc) | 281 | ;; |
3093 | 231 | os=-isc2.2 | 282 | convex-c32) |
3094 | 232 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 283 | basic_machine=c32-convex |
3095 | 233 | ;; | 284 | basic_os=bsd |
3096 | 234 | -clix*) | 285 | ;; |
3097 | 235 | basic_machine=clipper-intergraph | 286 | convex-c34) |
3098 | 236 | ;; | 287 | basic_machine=c34-convex |
3099 | 237 | -isc*) | 288 | basic_os=bsd |
3100 | 238 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | 289 | ;; |
3101 | 239 | ;; | 290 | convex-c38) |
3102 | 240 | -lynx*178) | 291 | basic_machine=c38-convex |
3103 | 241 | os=-lynxos178 | 292 | basic_os=bsd |
3104 | 242 | ;; | 293 | ;; |
3105 | 243 | -lynx*5) | 294 | cray) |
3106 | 244 | os=-lynxos5 | 295 | basic_machine=j90-cray |
3107 | 245 | ;; | 296 | basic_os=unicos |
3108 | 246 | -lynx*) | 297 | ;; |
3109 | 247 | os=-lynxos | 298 | crds | unos) |
3110 | 248 | ;; | 299 | basic_machine=m68k-crds |
3111 | 249 | -ptx*) | 300 | basic_os= |
3112 | 250 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` | 301 | ;; |
3113 | 251 | ;; | 302 | da30) |
3114 | 252 | -psos*) | 303 | basic_machine=m68k-da30 |
3115 | 253 | os=-psos | 304 | basic_os= |
3116 | 254 | ;; | 305 | ;; |
3117 | 255 | -mint | -mint[0-9]*) | 306 | decstation | pmax | pmin | dec3100 | decstatn) |
3118 | 256 | basic_machine=m68k-atari | 307 | basic_machine=mips-dec |
3119 | 257 | os=-mint | 308 | basic_os= |
3120 | 309 | ;; | ||
3121 | 310 | delta88) | ||
3122 | 311 | basic_machine=m88k-motorola | ||
3123 | 312 | basic_os=sysv3 | ||
3124 | 313 | ;; | ||
3125 | 314 | dicos) | ||
3126 | 315 | basic_machine=i686-pc | ||
3127 | 316 | basic_os=dicos | ||
3128 | 317 | ;; | ||
3129 | 318 | djgpp) | ||
3130 | 319 | basic_machine=i586-pc | ||
3131 | 320 | basic_os=msdosdjgpp | ||
3132 | 321 | ;; | ||
3133 | 322 | ebmon29k) | ||
3134 | 323 | basic_machine=a29k-amd | ||
3135 | 324 | basic_os=ebmon | ||
3136 | 325 | ;; | ||
3137 | 326 | es1800 | OSE68k | ose68k | ose | OSE) | ||
3138 | 327 | basic_machine=m68k-ericsson | ||
3139 | 328 | basic_os=ose | ||
3140 | 329 | ;; | ||
3141 | 330 | gmicro) | ||
3142 | 331 | basic_machine=tron-gmicro | ||
3143 | 332 | basic_os=sysv | ||
3144 | 333 | ;; | ||
3145 | 334 | go32) | ||
3146 | 335 | basic_machine=i386-pc | ||
3147 | 336 | basic_os=go32 | ||
3148 | 337 | ;; | ||
3149 | 338 | h8300hms) | ||
3150 | 339 | basic_machine=h8300-hitachi | ||
3151 | 340 | basic_os=hms | ||
3152 | 341 | ;; | ||
3153 | 342 | h8300xray) | ||
3154 | 343 | basic_machine=h8300-hitachi | ||
3155 | 344 | basic_os=xray | ||
3156 | 345 | ;; | ||
3157 | 346 | h8500hms) | ||
3158 | 347 | basic_machine=h8500-hitachi | ||
3159 | 348 | basic_os=hms | ||
3160 | 349 | ;; | ||
3161 | 350 | harris) | ||
3162 | 351 | basic_machine=m88k-harris | ||
3163 | 352 | basic_os=sysv3 | ||
3164 | 353 | ;; | ||
3165 | 354 | hp300 | hp300hpux) | ||
3166 | 355 | basic_machine=m68k-hp | ||
3167 | 356 | basic_os=hpux | ||
3168 | 357 | ;; | ||
3169 | 358 | hp300bsd) | ||
3170 | 359 | basic_machine=m68k-hp | ||
3171 | 360 | basic_os=bsd | ||
3172 | 361 | ;; | ||
3173 | 362 | hppaosf) | ||
3174 | 363 | basic_machine=hppa1.1-hp | ||
3175 | 364 | basic_os=osf | ||
3176 | 365 | ;; | ||
3177 | 366 | hppro) | ||
3178 | 367 | basic_machine=hppa1.1-hp | ||
3179 | 368 | basic_os=proelf | ||
3180 | 369 | ;; | ||
3181 | 370 | i386mach) | ||
3182 | 371 | basic_machine=i386-mach | ||
3183 | 372 | basic_os=mach | ||
3184 | 373 | ;; | ||
3185 | 374 | isi68 | isi) | ||
3186 | 375 | basic_machine=m68k-isi | ||
3187 | 376 | basic_os=sysv | ||
3188 | 377 | ;; | ||
3189 | 378 | m68knommu) | ||
3190 | 379 | basic_machine=m68k-unknown | ||
3191 | 380 | basic_os=linux | ||
3192 | 381 | ;; | ||
3193 | 382 | magnum | m3230) | ||
3194 | 383 | basic_machine=mips-mips | ||
3195 | 384 | basic_os=sysv | ||
3196 | 385 | ;; | ||
3197 | 386 | merlin) | ||
3198 | 387 | basic_machine=ns32k-utek | ||
3199 | 388 | basic_os=sysv | ||
3200 | 389 | ;; | ||
3201 | 390 | mingw64) | ||
3202 | 391 | basic_machine=x86_64-pc | ||
3203 | 392 | basic_os=mingw64 | ||
3204 | 393 | ;; | ||
3205 | 394 | mingw32) | ||
3206 | 395 | basic_machine=i686-pc | ||
3207 | 396 | basic_os=mingw32 | ||
3208 | 397 | ;; | ||
3209 | 398 | mingw32ce) | ||
3210 | 399 | basic_machine=arm-unknown | ||
3211 | 400 | basic_os=mingw32ce | ||
3212 | 401 | ;; | ||
3213 | 402 | monitor) | ||
3214 | 403 | basic_machine=m68k-rom68k | ||
3215 | 404 | basic_os=coff | ||
3216 | 405 | ;; | ||
3217 | 406 | morphos) | ||
3218 | 407 | basic_machine=powerpc-unknown | ||
3219 | 408 | basic_os=morphos | ||
3220 | 409 | ;; | ||
3221 | 410 | moxiebox) | ||
3222 | 411 | basic_machine=moxie-unknown | ||
3223 | 412 | basic_os=moxiebox | ||
3224 | 413 | ;; | ||
3225 | 414 | msdos) | ||
3226 | 415 | basic_machine=i386-pc | ||
3227 | 416 | basic_os=msdos | ||
3228 | 417 | ;; | ||
3229 | 418 | msys) | ||
3230 | 419 | basic_machine=i686-pc | ||
3231 | 420 | basic_os=msys | ||
3232 | 421 | ;; | ||
3233 | 422 | mvs) | ||
3234 | 423 | basic_machine=i370-ibm | ||
3235 | 424 | basic_os=mvs | ||
3236 | 425 | ;; | ||
3237 | 426 | nacl) | ||
3238 | 427 | basic_machine=le32-unknown | ||
3239 | 428 | basic_os=nacl | ||
3240 | 429 | ;; | ||
3241 | 430 | ncr3000) | ||
3242 | 431 | basic_machine=i486-ncr | ||
3243 | 432 | basic_os=sysv4 | ||
3244 | 433 | ;; | ||
3245 | 434 | netbsd386) | ||
3246 | 435 | basic_machine=i386-pc | ||
3247 | 436 | basic_os=netbsd | ||
3248 | 437 | ;; | ||
3249 | 438 | netwinder) | ||
3250 | 439 | basic_machine=armv4l-rebel | ||
3251 | 440 | basic_os=linux | ||
3252 | 441 | ;; | ||
3253 | 442 | news | news700 | news800 | news900) | ||
3254 | 443 | basic_machine=m68k-sony | ||
3255 | 444 | basic_os=newsos | ||
3256 | 445 | ;; | ||
3257 | 446 | news1000) | ||
3258 | 447 | basic_machine=m68030-sony | ||
3259 | 448 | basic_os=newsos | ||
3260 | 449 | ;; | ||
3261 | 450 | necv70) | ||
3262 | 451 | basic_machine=v70-nec | ||
3263 | 452 | basic_os=sysv | ||
3264 | 453 | ;; | ||
3265 | 454 | nh3000) | ||
3266 | 455 | basic_machine=m68k-harris | ||
3267 | 456 | basic_os=cxux | ||
3268 | 457 | ;; | ||
3269 | 458 | nh[45]000) | ||
3270 | 459 | basic_machine=m88k-harris | ||
3271 | 460 | basic_os=cxux | ||
3272 | 461 | ;; | ||
3273 | 462 | nindy960) | ||
3274 | 463 | basic_machine=i960-intel | ||
3275 | 464 | basic_os=nindy | ||
3276 | 465 | ;; | ||
3277 | 466 | mon960) | ||
3278 | 467 | basic_machine=i960-intel | ||
3279 | 468 | basic_os=mon960 | ||
3280 | 469 | ;; | ||
3281 | 470 | nonstopux) | ||
3282 | 471 | basic_machine=mips-compaq | ||
3283 | 472 | basic_os=nonstopux | ||
3284 | 473 | ;; | ||
3285 | 474 | os400) | ||
3286 | 475 | basic_machine=powerpc-ibm | ||
3287 | 476 | basic_os=os400 | ||
3288 | 477 | ;; | ||
3289 | 478 | OSE68000 | ose68000) | ||
3290 | 479 | basic_machine=m68000-ericsson | ||
3291 | 480 | basic_os=ose | ||
3292 | 481 | ;; | ||
3293 | 482 | os68k) | ||
3294 | 483 | basic_machine=m68k-none | ||
3295 | 484 | basic_os=os68k | ||
3296 | 485 | ;; | ||
3297 | 486 | paragon) | ||
3298 | 487 | basic_machine=i860-intel | ||
3299 | 488 | basic_os=osf | ||
3300 | 489 | ;; | ||
3301 | 490 | parisc) | ||
3302 | 491 | basic_machine=hppa-unknown | ||
3303 | 492 | basic_os=linux | ||
3304 | 493 | ;; | ||
3305 | 494 | psp) | ||
3306 | 495 | basic_machine=mipsallegrexel-sony | ||
3307 | 496 | basic_os=psp | ||
3308 | 497 | ;; | ||
3309 | 498 | pw32) | ||
3310 | 499 | basic_machine=i586-unknown | ||
3311 | 500 | basic_os=pw32 | ||
3312 | 501 | ;; | ||
3313 | 502 | rdos | rdos64) | ||
3314 | 503 | basic_machine=x86_64-pc | ||
3315 | 504 | basic_os=rdos | ||
3316 | 505 | ;; | ||
3317 | 506 | rdos32) | ||
3318 | 507 | basic_machine=i386-pc | ||
3319 | 508 | basic_os=rdos | ||
3320 | 509 | ;; | ||
3321 | 510 | rom68k) | ||
3322 | 511 | basic_machine=m68k-rom68k | ||
3323 | 512 | basic_os=coff | ||
3324 | 513 | ;; | ||
3325 | 514 | sa29200) | ||
3326 | 515 | basic_machine=a29k-amd | ||
3327 | 516 | basic_os=udi | ||
3328 | 517 | ;; | ||
3329 | 518 | sei) | ||
3330 | 519 | basic_machine=mips-sei | ||
3331 | 520 | basic_os=seiux | ||
3332 | 521 | ;; | ||
3333 | 522 | sequent) | ||
3334 | 523 | basic_machine=i386-sequent | ||
3335 | 524 | basic_os= | ||
3336 | 525 | ;; | ||
3337 | 526 | sps7) | ||
3338 | 527 | basic_machine=m68k-bull | ||
3339 | 528 | basic_os=sysv2 | ||
3340 | 529 | ;; | ||
3341 | 530 | st2000) | ||
3342 | 531 | basic_machine=m68k-tandem | ||
3343 | 532 | basic_os= | ||
3344 | 533 | ;; | ||
3345 | 534 | stratus) | ||
3346 | 535 | basic_machine=i860-stratus | ||
3347 | 536 | basic_os=sysv4 | ||
3348 | 537 | ;; | ||
3349 | 538 | sun2) | ||
3350 | 539 | basic_machine=m68000-sun | ||
3351 | 540 | basic_os= | ||
3352 | 541 | ;; | ||
3353 | 542 | sun2os3) | ||
3354 | 543 | basic_machine=m68000-sun | ||
3355 | 544 | basic_os=sunos3 | ||
3356 | 545 | ;; | ||
3357 | 546 | sun2os4) | ||
3358 | 547 | basic_machine=m68000-sun | ||
3359 | 548 | basic_os=sunos4 | ||
3360 | 549 | ;; | ||
3361 | 550 | sun3) | ||
3362 | 551 | basic_machine=m68k-sun | ||
3363 | 552 | basic_os= | ||
3364 | 553 | ;; | ||
3365 | 554 | sun3os3) | ||
3366 | 555 | basic_machine=m68k-sun | ||
3367 | 556 | basic_os=sunos3 | ||
3368 | 557 | ;; | ||
3369 | 558 | sun3os4) | ||
3370 | 559 | basic_machine=m68k-sun | ||
3371 | 560 | basic_os=sunos4 | ||
3372 | 561 | ;; | ||
3373 | 562 | sun4) | ||
3374 | 563 | basic_machine=sparc-sun | ||
3375 | 564 | basic_os= | ||
3376 | 565 | ;; | ||
3377 | 566 | sun4os3) | ||
3378 | 567 | basic_machine=sparc-sun | ||
3379 | 568 | basic_os=sunos3 | ||
3380 | 569 | ;; | ||
3381 | 570 | sun4os4) | ||
3382 | 571 | basic_machine=sparc-sun | ||
3383 | 572 | basic_os=sunos4 | ||
3384 | 573 | ;; | ||
3385 | 574 | sun4sol2) | ||
3386 | 575 | basic_machine=sparc-sun | ||
3387 | 576 | basic_os=solaris2 | ||
3388 | 577 | ;; | ||
3389 | 578 | sun386 | sun386i | roadrunner) | ||
3390 | 579 | basic_machine=i386-sun | ||
3391 | 580 | basic_os= | ||
3392 | 581 | ;; | ||
3393 | 582 | sv1) | ||
3394 | 583 | basic_machine=sv1-cray | ||
3395 | 584 | basic_os=unicos | ||
3396 | 585 | ;; | ||
3397 | 586 | symmetry) | ||
3398 | 587 | basic_machine=i386-sequent | ||
3399 | 588 | basic_os=dynix | ||
3400 | 589 | ;; | ||
3401 | 590 | t3e) | ||
3402 | 591 | basic_machine=alphaev5-cray | ||
3403 | 592 | basic_os=unicos | ||
3404 | 593 | ;; | ||
3405 | 594 | t90) | ||
3406 | 595 | basic_machine=t90-cray | ||
3407 | 596 | basic_os=unicos | ||
3408 | 597 | ;; | ||
3409 | 598 | toad1) | ||
3410 | 599 | basic_machine=pdp10-xkl | ||
3411 | 600 | basic_os=tops20 | ||
3412 | 601 | ;; | ||
3413 | 602 | tpf) | ||
3414 | 603 | basic_machine=s390x-ibm | ||
3415 | 604 | basic_os=tpf | ||
3416 | 605 | ;; | ||
3417 | 606 | udi29k) | ||
3418 | 607 | basic_machine=a29k-amd | ||
3419 | 608 | basic_os=udi | ||
3420 | 609 | ;; | ||
3421 | 610 | ultra3) | ||
3422 | 611 | basic_machine=a29k-nyu | ||
3423 | 612 | basic_os=sym1 | ||
3424 | 613 | ;; | ||
3425 | 614 | v810 | necv810) | ||
3426 | 615 | basic_machine=v810-nec | ||
3427 | 616 | basic_os=none | ||
3428 | 617 | ;; | ||
3429 | 618 | vaxv) | ||
3430 | 619 | basic_machine=vax-dec | ||
3431 | 620 | basic_os=sysv | ||
3432 | 621 | ;; | ||
3433 | 622 | vms) | ||
3434 | 623 | basic_machine=vax-dec | ||
3435 | 624 | basic_os=vms | ||
3436 | 625 | ;; | ||
3437 | 626 | vsta) | ||
3438 | 627 | basic_machine=i386-pc | ||
3439 | 628 | basic_os=vsta | ||
3440 | 629 | ;; | ||
3441 | 630 | vxworks960) | ||
3442 | 631 | basic_machine=i960-wrs | ||
3443 | 632 | basic_os=vxworks | ||
3444 | 633 | ;; | ||
3445 | 634 | vxworks68) | ||
3446 | 635 | basic_machine=m68k-wrs | ||
3447 | 636 | basic_os=vxworks | ||
3448 | 637 | ;; | ||
3449 | 638 | vxworks29k) | ||
3450 | 639 | basic_machine=a29k-wrs | ||
3451 | 640 | basic_os=vxworks | ||
3452 | 641 | ;; | ||
3453 | 642 | xbox) | ||
3454 | 643 | basic_machine=i686-pc | ||
3455 | 644 | basic_os=mingw32 | ||
3456 | 645 | ;; | ||
3457 | 646 | ymp) | ||
3458 | 647 | basic_machine=ymp-cray | ||
3459 | 648 | basic_os=unicos | ||
3460 | 649 | ;; | ||
3461 | 650 | *) | ||
3462 | 651 | basic_machine=$1 | ||
3463 | 652 | basic_os= | ||
3464 | 653 | ;; | ||
3465 | 654 | esac | ||
3466 | 258 | ;; | 655 | ;; |
3467 | 259 | esac | 656 | esac |
3468 | 260 | 657 | ||
3470 | 261 | # Decode aliases for certain CPU-COMPANY combinations. | 658 | # Decode 1-component or ad-hoc basic machines |
3471 | 262 | case $basic_machine in | 659 | case $basic_machine in |
3567 | 263 | # Recognize the basic CPU types without company name. | 660 | # Here we handle the default manufacturer of certain CPU types. It is in |
3568 | 264 | # Some are omitted here because they have special meanings below. | 661 | # some cases the only manufacturer, in others, it is the most popular. |
3569 | 265 | 1750a | 580 \ | 662 | w89k) |
3570 | 266 | | a29k \ | 663 | cpu=hppa1.1 |
3571 | 267 | | aarch64 | aarch64_be \ | 664 | vendor=winbond |
3477 | 268 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | ||
3478 | 269 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | ||
3479 | 270 | | am33_2.0 \ | ||
3480 | 271 | | arc | arceb \ | ||
3481 | 272 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \ | ||
3482 | 273 | | avr | avr32 \ | ||
3483 | 274 | | ba \ | ||
3484 | 275 | | be32 | be64 \ | ||
3485 | 276 | | bfin \ | ||
3486 | 277 | | c4x | c8051 | clipper | csky \ | ||
3487 | 278 | | d10v | d30v | dlx | dsp16xx \ | ||
3488 | 279 | | e2k | epiphany \ | ||
3489 | 280 | | fido | fr30 | frv | ft32 \ | ||
3490 | 281 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||
3491 | 282 | | hexagon \ | ||
3492 | 283 | | i370 | i860 | i960 | ia16 | ia64 \ | ||
3493 | 284 | | ip2k | iq2000 \ | ||
3494 | 285 | | k1om \ | ||
3495 | 286 | | le32 | le64 \ | ||
3496 | 287 | | lm32 \ | ||
3497 | 288 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ | ||
3498 | 289 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | ||
3499 | 290 | | mips | mipsbe | mipseb | mipsel | mipsle \ | ||
3500 | 291 | | mips16 \ | ||
3501 | 292 | | mips64 | mips64el \ | ||
3502 | 293 | | mips64octeon | mips64octeonel \ | ||
3503 | 294 | | mips64orion | mips64orionel \ | ||
3504 | 295 | | mips64r5900 | mips64r5900el \ | ||
3505 | 296 | | mips64vr | mips64vrel \ | ||
3506 | 297 | | mips64vr4100 | mips64vr4100el \ | ||
3507 | 298 | | mips64vr4300 | mips64vr4300el \ | ||
3508 | 299 | | mips64vr5000 | mips64vr5000el \ | ||
3509 | 300 | | mips64vr5900 | mips64vr5900el \ | ||
3510 | 301 | | mipsisa32 | mipsisa32el \ | ||
3511 | 302 | | mipsisa32r2 | mipsisa32r2el \ | ||
3512 | 303 | | mipsisa32r6 | mipsisa32r6el \ | ||
3513 | 304 | | mipsisa64 | mipsisa64el \ | ||
3514 | 305 | | mipsisa64r2 | mipsisa64r2el \ | ||
3515 | 306 | | mipsisa64r6 | mipsisa64r6el \ | ||
3516 | 307 | | mipsisa64sb1 | mipsisa64sb1el \ | ||
3517 | 308 | | mipsisa64sr71k | mipsisa64sr71kel \ | ||
3518 | 309 | | mipsr5900 | mipsr5900el \ | ||
3519 | 310 | | mipstx39 | mipstx39el \ | ||
3520 | 311 | | mn10200 | mn10300 \ | ||
3521 | 312 | | moxie \ | ||
3522 | 313 | | mt \ | ||
3523 | 314 | | msp430 \ | ||
3524 | 315 | | nds32 | nds32le | nds32be \ | ||
3525 | 316 | | nfp \ | ||
3526 | 317 | | nios | nios2 | nios2eb | nios2el \ | ||
3527 | 318 | | ns16k | ns32k \ | ||
3528 | 319 | | open8 | or1k | or1knd | or32 \ | ||
3529 | 320 | | pdp10 | pj | pjl \ | ||
3530 | 321 | | powerpc | powerpc64 | powerpc64le | powerpcle \ | ||
3531 | 322 | | pru \ | ||
3532 | 323 | | pyramid \ | ||
3533 | 324 | | riscv32 | riscv64 \ | ||
3534 | 325 | | rl78 | rx \ | ||
3535 | 326 | | score \ | ||
3536 | 327 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | ||
3537 | 328 | | sh64 | sh64le \ | ||
3538 | 329 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | ||
3539 | 330 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | ||
3540 | 331 | | spu \ | ||
3541 | 332 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ||
3542 | 333 | | ubicom32 \ | ||
3543 | 334 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | ||
3544 | 335 | | visium \ | ||
3545 | 336 | | wasm32 \ | ||
3546 | 337 | | x86 | xc16x | xstormy16 | xtensa \ | ||
3547 | 338 | | z8k | z80) | ||
3548 | 339 | basic_machine=$basic_machine-unknown | ||
3549 | 340 | ;; | ||
3550 | 341 | c54x) | ||
3551 | 342 | basic_machine=tic54x-unknown | ||
3552 | 343 | ;; | ||
3553 | 344 | c55x) | ||
3554 | 345 | basic_machine=tic55x-unknown | ||
3555 | 346 | ;; | ||
3556 | 347 | c6x) | ||
3557 | 348 | basic_machine=tic6x-unknown | ||
3558 | 349 | ;; | ||
3559 | 350 | leon|leon[3-9]) | ||
3560 | 351 | basic_machine=sparc-$basic_machine | ||
3561 | 352 | ;; | ||
3562 | 353 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) | ||
3563 | 354 | basic_machine=$basic_machine-unknown | ||
3564 | 355 | os=-none | ||
3565 | 356 | ;; | ||
3566 | 357 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) | ||
3572 | 358 | ;; | 665 | ;; |
3576 | 359 | m9s12z | m68hcs12z | hcs12z | s12z) | 666 | op50n) |
3577 | 360 | basic_machine=s12z-unknown | 667 | cpu=hppa1.1 |
3578 | 361 | os=-none | 668 | vendor=oki |
3579 | 362 | ;; | 669 | ;; |
3582 | 363 | ms1) | 670 | op60c) |
3583 | 364 | basic_machine=mt-unknown | 671 | cpu=hppa1.1 |
3584 | 672 | vendor=oki | ||
3585 | 365 | ;; | 673 | ;; |
3589 | 366 | 674 | ibm*) | |
3590 | 367 | strongarm | thumb | xscale) | 675 | cpu=i370 |
3591 | 368 | basic_machine=arm-unknown | 676 | vendor=ibm |
3592 | 369 | ;; | 677 | ;; |
3596 | 370 | xgate) | 678 | orion105) |
3597 | 371 | basic_machine=$basic_machine-unknown | 679 | cpu=clipper |
3598 | 372 | os=-none | 680 | vendor=highlevel |
3599 | 373 | ;; | 681 | ;; |
3602 | 374 | xscaleeb) | 682 | mac | mpw | mac-mpw) |
3603 | 375 | basic_machine=armeb-unknown | 683 | cpu=m68k |
3604 | 684 | vendor=apple | ||
3605 | 376 | ;; | 685 | ;; |
3609 | 377 | 686 | pmac | pmac-mpw) | |
3610 | 378 | xscaleel) | 687 | cpu=powerpc |
3611 | 379 | basic_machine=armel-unknown | 688 | vendor=apple |
3612 | 380 | ;; | 689 | ;; |
3613 | 381 | 690 | ||
3614 | 382 | # We use `pc' rather than `unknown' | ||
3615 | 383 | # because (1) that's what they normally are, and | ||
3616 | 384 | # (2) the word "unknown" tends to confuse beginning users. | ||
3617 | 385 | i*86 | x86_64) | ||
3618 | 386 | basic_machine=$basic_machine-pc | ||
3619 | 387 | ;; | ||
3620 | 388 | # Object if more than one company name word. | ||
3621 | 389 | *-*-*) | ||
3622 | 390 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | ||
3623 | 391 | exit 1 | ||
3624 | 392 | ;; | ||
3625 | 393 | # Recognize the basic CPU types with company name. | ||
3626 | 394 | 580-* \ | ||
3627 | 395 | | a29k-* \ | ||
3628 | 396 | | aarch64-* | aarch64_be-* \ | ||
3629 | 397 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | ||
3630 | 398 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | ||
3631 | 399 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | ||
3632 | 400 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | ||
3633 | 401 | | avr-* | avr32-* \ | ||
3634 | 402 | | ba-* \ | ||
3635 | 403 | | be32-* | be64-* \ | ||
3636 | 404 | | bfin-* | bs2000-* \ | ||
3637 | 405 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | ||
3638 | 406 | | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \ | ||
3639 | 407 | | d10v-* | d30v-* | dlx-* \ | ||
3640 | 408 | | e2k-* | elxsi-* \ | ||
3641 | 409 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | ||
3642 | 410 | | h8300-* | h8500-* \ | ||
3643 | 411 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | ||
3644 | 412 | | hexagon-* \ | ||
3645 | 413 | | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | ||
3646 | 414 | | ip2k-* | iq2000-* \ | ||
3647 | 415 | | k1om-* \ | ||
3648 | 416 | | le32-* | le64-* \ | ||
3649 | 417 | | lm32-* \ | ||
3650 | 418 | | m32c-* | m32r-* | m32rle-* \ | ||
3651 | 419 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | ||
3652 | 420 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | ||
3653 | 421 | | microblaze-* | microblazeel-* \ | ||
3654 | 422 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | ||
3655 | 423 | | mips16-* \ | ||
3656 | 424 | | mips64-* | mips64el-* \ | ||
3657 | 425 | | mips64octeon-* | mips64octeonel-* \ | ||
3658 | 426 | | mips64orion-* | mips64orionel-* \ | ||
3659 | 427 | | mips64r5900-* | mips64r5900el-* \ | ||
3660 | 428 | | mips64vr-* | mips64vrel-* \ | ||
3661 | 429 | | mips64vr4100-* | mips64vr4100el-* \ | ||
3662 | 430 | | mips64vr4300-* | mips64vr4300el-* \ | ||
3663 | 431 | | mips64vr5000-* | mips64vr5000el-* \ | ||
3664 | 432 | | mips64vr5900-* | mips64vr5900el-* \ | ||
3665 | 433 | | mipsisa32-* | mipsisa32el-* \ | ||
3666 | 434 | | mipsisa32r2-* | mipsisa32r2el-* \ | ||
3667 | 435 | | mipsisa32r6-* | mipsisa32r6el-* \ | ||
3668 | 436 | | mipsisa64-* | mipsisa64el-* \ | ||
3669 | 437 | | mipsisa64r2-* | mipsisa64r2el-* \ | ||
3670 | 438 | | mipsisa64r6-* | mipsisa64r6el-* \ | ||
3671 | 439 | | mipsisa64sb1-* | mipsisa64sb1el-* \ | ||
3672 | 440 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | ||
3673 | 441 | | mipsr5900-* | mipsr5900el-* \ | ||
3674 | 442 | | mipstx39-* | mipstx39el-* \ | ||
3675 | 443 | | mmix-* \ | ||
3676 | 444 | | mt-* \ | ||
3677 | 445 | | msp430-* \ | ||
3678 | 446 | | nds32-* | nds32le-* | nds32be-* \ | ||
3679 | 447 | | nfp-* \ | ||
3680 | 448 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ | ||
3681 | 449 | | none-* | np1-* | ns16k-* | ns32k-* \ | ||
3682 | 450 | | open8-* \ | ||
3683 | 451 | | or1k*-* \ | ||
3684 | 452 | | orion-* \ | ||
3685 | 453 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | ||
3686 | 454 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | ||
3687 | 455 | | pru-* \ | ||
3688 | 456 | | pyramid-* \ | ||
3689 | 457 | | riscv32-* | riscv64-* \ | ||
3690 | 458 | | rl78-* | romp-* | rs6000-* | rx-* \ | ||
3691 | 459 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | ||
3692 | 460 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | ||
3693 | 461 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | ||
3694 | 462 | | sparclite-* \ | ||
3695 | 463 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | ||
3696 | 464 | | tahoe-* \ | ||
3697 | 465 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | ||
3698 | 466 | | tile*-* \ | ||
3699 | 467 | | tron-* \ | ||
3700 | 468 | | ubicom32-* \ | ||
3701 | 469 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | ||
3702 | 470 | | vax-* \ | ||
3703 | 471 | | visium-* \ | ||
3704 | 472 | | wasm32-* \ | ||
3705 | 473 | | we32k-* \ | ||
3706 | 474 | | x86-* | x86_64-* | xc16x-* | xps100-* \ | ||
3707 | 475 | | xstormy16-* | xtensa*-* \ | ||
3708 | 476 | | ymp-* \ | ||
3709 | 477 | | z8k-* | z80-*) | ||
3710 | 478 | ;; | ||
3711 | 479 | # Recognize the basic CPU types without company name, with glob match. | ||
3712 | 480 | xtensa*) | ||
3713 | 481 | basic_machine=$basic_machine-unknown | ||
3714 | 482 | ;; | ||
3715 | 483 | # Recognize the various machine names and aliases which stand | 691 | # Recognize the various machine names and aliases which stand |
3716 | 484 | # for a CPU type and a company and sometimes even an OS. | 692 | # for a CPU type and a company and sometimes even an OS. |
3717 | 485 | 386bsd) | ||
3718 | 486 | basic_machine=i386-pc | ||
3719 | 487 | os=-bsd | ||
3720 | 488 | ;; | ||
3721 | 489 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | 693 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
3723 | 490 | basic_machine=m68000-att | 694 | cpu=m68000 |
3724 | 695 | vendor=att | ||
3725 | 491 | ;; | 696 | ;; |
3726 | 492 | 3b*) | 697 | 3b*) |
3801 | 493 | basic_machine=we32k-att | 698 | cpu=we32k |
3802 | 494 | ;; | 699 | vendor=att |
3729 | 495 | a29khif) | ||
3730 | 496 | basic_machine=a29k-amd | ||
3731 | 497 | os=-udi | ||
3732 | 498 | ;; | ||
3733 | 499 | abacus) | ||
3734 | 500 | basic_machine=abacus-unknown | ||
3735 | 501 | ;; | ||
3736 | 502 | adobe68k) | ||
3737 | 503 | basic_machine=m68010-adobe | ||
3738 | 504 | os=-scout | ||
3739 | 505 | ;; | ||
3740 | 506 | alliant | fx80) | ||
3741 | 507 | basic_machine=fx80-alliant | ||
3742 | 508 | ;; | ||
3743 | 509 | altos | altos3068) | ||
3744 | 510 | basic_machine=m68k-altos | ||
3745 | 511 | ;; | ||
3746 | 512 | am29k) | ||
3747 | 513 | basic_machine=a29k-none | ||
3748 | 514 | os=-bsd | ||
3749 | 515 | ;; | ||
3750 | 516 | amd64) | ||
3751 | 517 | basic_machine=x86_64-pc | ||
3752 | 518 | ;; | ||
3753 | 519 | amd64-*) | ||
3754 | 520 | basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
3755 | 521 | ;; | ||
3756 | 522 | amdahl) | ||
3757 | 523 | basic_machine=580-amdahl | ||
3758 | 524 | os=-sysv | ||
3759 | 525 | ;; | ||
3760 | 526 | amiga | amiga-*) | ||
3761 | 527 | basic_machine=m68k-unknown | ||
3762 | 528 | ;; | ||
3763 | 529 | amigaos | amigados) | ||
3764 | 530 | basic_machine=m68k-unknown | ||
3765 | 531 | os=-amigaos | ||
3766 | 532 | ;; | ||
3767 | 533 | amigaunix | amix) | ||
3768 | 534 | basic_machine=m68k-unknown | ||
3769 | 535 | os=-sysv4 | ||
3770 | 536 | ;; | ||
3771 | 537 | apollo68) | ||
3772 | 538 | basic_machine=m68k-apollo | ||
3773 | 539 | os=-sysv | ||
3774 | 540 | ;; | ||
3775 | 541 | apollo68bsd) | ||
3776 | 542 | basic_machine=m68k-apollo | ||
3777 | 543 | os=-bsd | ||
3778 | 544 | ;; | ||
3779 | 545 | aros) | ||
3780 | 546 | basic_machine=i386-pc | ||
3781 | 547 | os=-aros | ||
3782 | 548 | ;; | ||
3783 | 549 | asmjs) | ||
3784 | 550 | basic_machine=asmjs-unknown | ||
3785 | 551 | ;; | ||
3786 | 552 | aux) | ||
3787 | 553 | basic_machine=m68k-apple | ||
3788 | 554 | os=-aux | ||
3789 | 555 | ;; | ||
3790 | 556 | balance) | ||
3791 | 557 | basic_machine=ns32k-sequent | ||
3792 | 558 | os=-dynix | ||
3793 | 559 | ;; | ||
3794 | 560 | blackfin) | ||
3795 | 561 | basic_machine=bfin-unknown | ||
3796 | 562 | os=-linux | ||
3797 | 563 | ;; | ||
3798 | 564 | blackfin-*) | ||
3799 | 565 | basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
3800 | 566 | os=-linux | ||
3803 | 567 | ;; | 700 | ;; |
3804 | 568 | bluegene*) | 701 | bluegene*) |
3875 | 569 | basic_machine=powerpc-ibm | 702 | cpu=powerpc |
3876 | 570 | os=-cnk | 703 | vendor=ibm |
3877 | 571 | ;; | 704 | basic_os=cnk |
3808 | 572 | c54x-*) | ||
3809 | 573 | basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
3810 | 574 | ;; | ||
3811 | 575 | c55x-*) | ||
3812 | 576 | basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
3813 | 577 | ;; | ||
3814 | 578 | c6x-*) | ||
3815 | 579 | basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
3816 | 580 | ;; | ||
3817 | 581 | c90) | ||
3818 | 582 | basic_machine=c90-cray | ||
3819 | 583 | os=-unicos | ||
3820 | 584 | ;; | ||
3821 | 585 | cegcc) | ||
3822 | 586 | basic_machine=arm-unknown | ||
3823 | 587 | os=-cegcc | ||
3824 | 588 | ;; | ||
3825 | 589 | convex-c1) | ||
3826 | 590 | basic_machine=c1-convex | ||
3827 | 591 | os=-bsd | ||
3828 | 592 | ;; | ||
3829 | 593 | convex-c2) | ||
3830 | 594 | basic_machine=c2-convex | ||
3831 | 595 | os=-bsd | ||
3832 | 596 | ;; | ||
3833 | 597 | convex-c32) | ||
3834 | 598 | basic_machine=c32-convex | ||
3835 | 599 | os=-bsd | ||
3836 | 600 | ;; | ||
3837 | 601 | convex-c34) | ||
3838 | 602 | basic_machine=c34-convex | ||
3839 | 603 | os=-bsd | ||
3840 | 604 | ;; | ||
3841 | 605 | convex-c38) | ||
3842 | 606 | basic_machine=c38-convex | ||
3843 | 607 | os=-bsd | ||
3844 | 608 | ;; | ||
3845 | 609 | cray | j90) | ||
3846 | 610 | basic_machine=j90-cray | ||
3847 | 611 | os=-unicos | ||
3848 | 612 | ;; | ||
3849 | 613 | craynv) | ||
3850 | 614 | basic_machine=craynv-cray | ||
3851 | 615 | os=-unicosmp | ||
3852 | 616 | ;; | ||
3853 | 617 | cr16 | cr16-*) | ||
3854 | 618 | basic_machine=cr16-unknown | ||
3855 | 619 | os=-elf | ||
3856 | 620 | ;; | ||
3857 | 621 | crds | unos) | ||
3858 | 622 | basic_machine=m68k-crds | ||
3859 | 623 | ;; | ||
3860 | 624 | crisv32 | crisv32-* | etraxfs*) | ||
3861 | 625 | basic_machine=crisv32-axis | ||
3862 | 626 | ;; | ||
3863 | 627 | cris | cris-* | etrax*) | ||
3864 | 628 | basic_machine=cris-axis | ||
3865 | 629 | ;; | ||
3866 | 630 | crx) | ||
3867 | 631 | basic_machine=crx-unknown | ||
3868 | 632 | os=-elf | ||
3869 | 633 | ;; | ||
3870 | 634 | da30 | da30-*) | ||
3871 | 635 | basic_machine=m68k-da30 | ||
3872 | 636 | ;; | ||
3873 | 637 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | ||
3874 | 638 | basic_machine=mips-dec | ||
3878 | 639 | ;; | 705 | ;; |
3879 | 640 | decsystem10* | dec10*) | 706 | decsystem10* | dec10*) |
3882 | 641 | basic_machine=pdp10-dec | 707 | cpu=pdp10 |
3883 | 642 | os=-tops10 | 708 | vendor=dec |
3884 | 709 | basic_os=tops10 | ||
3885 | 643 | ;; | 710 | ;; |
3886 | 644 | decsystem20* | dec20*) | 711 | decsystem20* | dec20*) |
3889 | 645 | basic_machine=pdp10-dec | 712 | cpu=pdp10 |
3890 | 646 | os=-tops20 | 713 | vendor=dec |
3891 | 714 | basic_os=tops20 | ||
3892 | 647 | ;; | 715 | ;; |
3893 | 648 | delta | 3300 | motorola-3300 | motorola-delta \ | 716 | delta | 3300 | motorola-3300 | motorola-delta \ |
3894 | 649 | | 3300-motorola | delta-motorola) | 717 | | 3300-motorola | delta-motorola) |
3912 | 650 | basic_machine=m68k-motorola | 718 | cpu=m68k |
3913 | 651 | ;; | 719 | vendor=motorola |
3897 | 652 | delta88) | ||
3898 | 653 | basic_machine=m88k-motorola | ||
3899 | 654 | os=-sysv3 | ||
3900 | 655 | ;; | ||
3901 | 656 | dicos) | ||
3902 | 657 | basic_machine=i686-pc | ||
3903 | 658 | os=-dicos | ||
3904 | 659 | ;; | ||
3905 | 660 | djgpp) | ||
3906 | 661 | basic_machine=i586-pc | ||
3907 | 662 | os=-msdosdjgpp | ||
3908 | 663 | ;; | ||
3909 | 664 | dpx20 | dpx20-*) | ||
3910 | 665 | basic_machine=rs6000-bull | ||
3911 | 666 | os=-bosx | ||
3914 | 667 | ;; | 720 | ;; |
3915 | 668 | dpx2*) | 721 | dpx2*) |
3934 | 669 | basic_machine=m68k-bull | 722 | cpu=m68k |
3935 | 670 | os=-sysv3 | 723 | vendor=bull |
3936 | 671 | ;; | 724 | basic_os=sysv3 |
3919 | 672 | e500v[12]) | ||
3920 | 673 | basic_machine=powerpc-unknown | ||
3921 | 674 | os=$os"spe" | ||
3922 | 675 | ;; | ||
3923 | 676 | e500v[12]-*) | ||
3924 | 677 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
3925 | 678 | os=$os"spe" | ||
3926 | 679 | ;; | ||
3927 | 680 | ebmon29k) | ||
3928 | 681 | basic_machine=a29k-amd | ||
3929 | 682 | os=-ebmon | ||
3930 | 683 | ;; | ||
3931 | 684 | elxsi) | ||
3932 | 685 | basic_machine=elxsi-elxsi | ||
3933 | 686 | os=-bsd | ||
3937 | 687 | ;; | 725 | ;; |
3938 | 688 | encore | umax | mmax) | 726 | encore | umax | mmax) |
3940 | 689 | basic_machine=ns32k-encore | 727 | cpu=ns32k |
3941 | 728 | vendor=encore | ||
3942 | 690 | ;; | 729 | ;; |
3946 | 691 | es1800 | OSE68k | ose68k | ose | OSE) | 730 | elxsi) |
3947 | 692 | basic_machine=m68k-ericsson | 731 | cpu=elxsi |
3948 | 693 | os=-ose | 732 | vendor=elxsi |
3949 | 733 | basic_os=${basic_os:-bsd} | ||
3950 | 694 | ;; | 734 | ;; |
3951 | 695 | fx2800) | 735 | fx2800) |
3953 | 696 | basic_machine=i860-alliant | 736 | cpu=i860 |
3954 | 737 | vendor=alliant | ||
3955 | 697 | ;; | 738 | ;; |
3956 | 698 | genix) | 739 | genix) |
3966 | 699 | basic_machine=ns32k-ns | 740 | cpu=ns32k |
3967 | 700 | ;; | 741 | vendor=ns |
3959 | 701 | gmicro) | ||
3960 | 702 | basic_machine=tron-gmicro | ||
3961 | 703 | os=-sysv | ||
3962 | 704 | ;; | ||
3963 | 705 | go32) | ||
3964 | 706 | basic_machine=i386-pc | ||
3965 | 707 | os=-go32 | ||
3968 | 708 | ;; | 742 | ;; |
3969 | 709 | h3050r* | hiux*) | 743 | h3050r* | hiux*) |
3999 | 710 | basic_machine=hppa1.1-hitachi | 744 | cpu=hppa1.1 |
4000 | 711 | os=-hiuxwe2 | 745 | vendor=hitachi |
4001 | 712 | ;; | 746 | basic_os=hiuxwe2 |
3973 | 713 | h8300hms) | ||
3974 | 714 | basic_machine=h8300-hitachi | ||
3975 | 715 | os=-hms | ||
3976 | 716 | ;; | ||
3977 | 717 | h8300xray) | ||
3978 | 718 | basic_machine=h8300-hitachi | ||
3979 | 719 | os=-xray | ||
3980 | 720 | ;; | ||
3981 | 721 | h8500hms) | ||
3982 | 722 | basic_machine=h8500-hitachi | ||
3983 | 723 | os=-hms | ||
3984 | 724 | ;; | ||
3985 | 725 | harris) | ||
3986 | 726 | basic_machine=m88k-harris | ||
3987 | 727 | os=-sysv3 | ||
3988 | 728 | ;; | ||
3989 | 729 | hp300-*) | ||
3990 | 730 | basic_machine=m68k-hp | ||
3991 | 731 | ;; | ||
3992 | 732 | hp300bsd) | ||
3993 | 733 | basic_machine=m68k-hp | ||
3994 | 734 | os=-bsd | ||
3995 | 735 | ;; | ||
3996 | 736 | hp300hpux) | ||
3997 | 737 | basic_machine=m68k-hp | ||
3998 | 738 | os=-hpux | ||
4002 | 739 | ;; | 747 | ;; |
4003 | 740 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | 748 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) |
4005 | 741 | basic_machine=hppa1.0-hp | 749 | cpu=hppa1.0 |
4006 | 750 | vendor=hp | ||
4007 | 742 | ;; | 751 | ;; |
4008 | 743 | hp9k2[0-9][0-9] | hp9k31[0-9]) | 752 | hp9k2[0-9][0-9] | hp9k31[0-9]) |
4010 | 744 | basic_machine=m68000-hp | 753 | cpu=m68000 |
4011 | 754 | vendor=hp | ||
4012 | 745 | ;; | 755 | ;; |
4013 | 746 | hp9k3[2-9][0-9]) | 756 | hp9k3[2-9][0-9]) |
4015 | 747 | basic_machine=m68k-hp | 757 | cpu=m68k |
4016 | 758 | vendor=hp | ||
4017 | 748 | ;; | 759 | ;; |
4018 | 749 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) | 760 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) |
4020 | 750 | basic_machine=hppa1.0-hp | 761 | cpu=hppa1.0 |
4021 | 762 | vendor=hp | ||
4022 | 751 | ;; | 763 | ;; |
4023 | 752 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) | 764 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) |
4025 | 753 | basic_machine=hppa1.1-hp | 765 | cpu=hppa1.1 |
4026 | 766 | vendor=hp | ||
4027 | 754 | ;; | 767 | ;; |
4028 | 755 | hp9k78[0-9] | hp78[0-9]) | 768 | hp9k78[0-9] | hp78[0-9]) |
4029 | 756 | # FIXME: really hppa2.0-hp | 769 | # FIXME: really hppa2.0-hp |
4031 | 757 | basic_machine=hppa1.1-hp | 770 | cpu=hppa1.1 |
4032 | 771 | vendor=hp | ||
4033 | 758 | ;; | 772 | ;; |
4034 | 759 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | 773 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) |
4035 | 760 | # FIXME: really hppa2.0-hp | 774 | # FIXME: really hppa2.0-hp |
4037 | 761 | basic_machine=hppa1.1-hp | 775 | cpu=hppa1.1 |
4038 | 776 | vendor=hp | ||
4039 | 762 | ;; | 777 | ;; |
4040 | 763 | hp9k8[0-9][13679] | hp8[0-9][13679]) | 778 | hp9k8[0-9][13679] | hp8[0-9][13679]) |
4042 | 764 | basic_machine=hppa1.1-hp | 779 | cpu=hppa1.1 |
4043 | 780 | vendor=hp | ||
4044 | 765 | ;; | 781 | ;; |
4045 | 766 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | 782 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
4058 | 767 | basic_machine=hppa1.0-hp | 783 | cpu=hppa1.0 |
4059 | 768 | ;; | 784 | vendor=hp |
4048 | 769 | hppaosf) | ||
4049 | 770 | basic_machine=hppa1.1-hp | ||
4050 | 771 | os=-osf | ||
4051 | 772 | ;; | ||
4052 | 773 | hppro) | ||
4053 | 774 | basic_machine=hppa1.1-hp | ||
4054 | 775 | os=-proelf | ||
4055 | 776 | ;; | ||
4056 | 777 | i370-ibm* | ibm*) | ||
4057 | 778 | basic_machine=i370-ibm | ||
4060 | 779 | ;; | 785 | ;; |
4061 | 780 | i*86v32) | 786 | i*86v32) |
4064 | 781 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | 787 | cpu=`echo "$1" | sed -e 's/86.*/86/'` |
4065 | 782 | os=-sysv32 | 788 | vendor=pc |
4066 | 789 | basic_os=sysv32 | ||
4067 | 783 | ;; | 790 | ;; |
4068 | 784 | i*86v4*) | 791 | i*86v4*) |
4071 | 785 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | 792 | cpu=`echo "$1" | sed -e 's/86.*/86/'` |
4072 | 786 | os=-sysv4 | 793 | vendor=pc |
4073 | 794 | basic_os=sysv4 | ||
4074 | 787 | ;; | 795 | ;; |
4075 | 788 | i*86v) | 796 | i*86v) |
4078 | 789 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | 797 | cpu=`echo "$1" | sed -e 's/86.*/86/'` |
4079 | 790 | os=-sysv | 798 | vendor=pc |
4080 | 799 | basic_os=sysv | ||
4081 | 791 | ;; | 800 | ;; |
4082 | 792 | i*86sol2) | 801 | i*86sol2) |
4089 | 793 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | 802 | cpu=`echo "$1" | sed -e 's/86.*/86/'` |
4090 | 794 | os=-solaris2 | 803 | vendor=pc |
4091 | 795 | ;; | 804 | basic_os=solaris2 |
4086 | 796 | i386mach) | ||
4087 | 797 | basic_machine=i386-mach | ||
4088 | 798 | os=-mach | ||
4092 | 799 | ;; | 805 | ;; |
4096 | 800 | vsta) | 806 | j90 | j90-cray) |
4097 | 801 | basic_machine=i386-unknown | 807 | cpu=j90 |
4098 | 802 | os=-vsta | 808 | vendor=cray |
4099 | 809 | basic_os=${basic_os:-unicos} | ||
4100 | 803 | ;; | 810 | ;; |
4101 | 804 | iris | iris4d) | 811 | iris | iris4d) |
4105 | 805 | basic_machine=mips-sgi | 812 | cpu=mips |
4106 | 806 | case $os in | 813 | vendor=sgi |
4107 | 807 | -irix*) | 814 | case $basic_os in |
4108 | 815 | irix*) | ||
4109 | 808 | ;; | 816 | ;; |
4110 | 809 | *) | 817 | *) |
4112 | 810 | os=-irix4 | 818 | basic_os=irix4 |
4113 | 811 | ;; | 819 | ;; |
4114 | 812 | esac | 820 | esac |
4115 | 813 | ;; | 821 | ;; |
4116 | 814 | isi68 | isi) | ||
4117 | 815 | basic_machine=m68k-isi | ||
4118 | 816 | os=-sysv | ||
4119 | 817 | ;; | ||
4120 | 818 | leon-*|leon[3-9]-*) | ||
4121 | 819 | basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` | ||
4122 | 820 | ;; | ||
4123 | 821 | m68knommu) | ||
4124 | 822 | basic_machine=m68k-unknown | ||
4125 | 823 | os=-linux | ||
4126 | 824 | ;; | ||
4127 | 825 | m68knommu-*) | ||
4128 | 826 | basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
4129 | 827 | os=-linux | ||
4130 | 828 | ;; | ||
4131 | 829 | magnum | m3230) | ||
4132 | 830 | basic_machine=mips-mips | ||
4133 | 831 | os=-sysv | ||
4134 | 832 | ;; | ||
4135 | 833 | merlin) | ||
4136 | 834 | basic_machine=ns32k-utek | ||
4137 | 835 | os=-sysv | ||
4138 | 836 | ;; | ||
4139 | 837 | microblaze*) | ||
4140 | 838 | basic_machine=microblaze-xilinx | ||
4141 | 839 | ;; | ||
4142 | 840 | mingw64) | ||
4143 | 841 | basic_machine=x86_64-pc | ||
4144 | 842 | os=-mingw64 | ||
4145 | 843 | ;; | ||
4146 | 844 | mingw32) | ||
4147 | 845 | basic_machine=i686-pc | ||
4148 | 846 | os=-mingw32 | ||
4149 | 847 | ;; | ||
4150 | 848 | mingw32ce) | ||
4151 | 849 | basic_machine=arm-unknown | ||
4152 | 850 | os=-mingw32ce | ||
4153 | 851 | ;; | ||
4154 | 852 | miniframe) | 822 | miniframe) |
4201 | 853 | basic_machine=m68000-convergent | 823 | cpu=m68000 |
4202 | 854 | ;; | 824 | vendor=convergent |
4157 | 855 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | ||
4158 | 856 | basic_machine=m68k-atari | ||
4159 | 857 | os=-mint | ||
4160 | 858 | ;; | ||
4161 | 859 | mips3*-*) | ||
4162 | 860 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` | ||
4163 | 861 | ;; | ||
4164 | 862 | mips3*) | ||
4165 | 863 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown | ||
4166 | 864 | ;; | ||
4167 | 865 | monitor) | ||
4168 | 866 | basic_machine=m68k-rom68k | ||
4169 | 867 | os=-coff | ||
4170 | 868 | ;; | ||
4171 | 869 | morphos) | ||
4172 | 870 | basic_machine=powerpc-unknown | ||
4173 | 871 | os=-morphos | ||
4174 | 872 | ;; | ||
4175 | 873 | moxiebox) | ||
4176 | 874 | basic_machine=moxie-unknown | ||
4177 | 875 | os=-moxiebox | ||
4178 | 876 | ;; | ||
4179 | 877 | msdos) | ||
4180 | 878 | basic_machine=i386-pc | ||
4181 | 879 | os=-msdos | ||
4182 | 880 | ;; | ||
4183 | 881 | ms1-*) | ||
4184 | 882 | basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` | ||
4185 | 883 | ;; | ||
4186 | 884 | msys) | ||
4187 | 885 | basic_machine=i686-pc | ||
4188 | 886 | os=-msys | ||
4189 | 887 | ;; | ||
4190 | 888 | mvs) | ||
4191 | 889 | basic_machine=i370-ibm | ||
4192 | 890 | os=-mvs | ||
4193 | 891 | ;; | ||
4194 | 892 | nacl) | ||
4195 | 893 | basic_machine=le32-unknown | ||
4196 | 894 | os=-nacl | ||
4197 | 895 | ;; | ||
4198 | 896 | ncr3000) | ||
4199 | 897 | basic_machine=i486-ncr | ||
4200 | 898 | os=-sysv4 | ||
4203 | 899 | ;; | 825 | ;; |
4219 | 900 | netbsd386) | 826 | *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) |
4220 | 901 | basic_machine=i386-unknown | 827 | cpu=m68k |
4221 | 902 | os=-netbsd | 828 | vendor=atari |
4222 | 903 | ;; | 829 | basic_os=mint |
4208 | 904 | netwinder) | ||
4209 | 905 | basic_machine=armv4l-rebel | ||
4210 | 906 | os=-linux | ||
4211 | 907 | ;; | ||
4212 | 908 | news | news700 | news800 | news900) | ||
4213 | 909 | basic_machine=m68k-sony | ||
4214 | 910 | os=-newsos | ||
4215 | 911 | ;; | ||
4216 | 912 | news1000) | ||
4217 | 913 | basic_machine=m68030-sony | ||
4218 | 914 | os=-newsos | ||
4223 | 915 | ;; | 830 | ;; |
4224 | 916 | news-3600 | risc-news) | 831 | news-3600 | risc-news) |
4231 | 917 | basic_machine=mips-sony | 832 | cpu=mips |
4232 | 918 | os=-newsos | 833 | vendor=sony |
4233 | 919 | ;; | 834 | basic_os=newsos |
4228 | 920 | necv70) | ||
4229 | 921 | basic_machine=v70-nec | ||
4230 | 922 | os=-sysv | ||
4234 | 923 | ;; | 835 | ;; |
4235 | 924 | next | m*-next) | 836 | next | m*-next) |
4239 | 925 | basic_machine=m68k-next | 837 | cpu=m68k |
4240 | 926 | case $os in | 838 | vendor=next |
4241 | 927 | -nextstep* ) | 839 | case $basic_os in |
4242 | 840 | openstep*) | ||
4243 | 841 | ;; | ||
4244 | 842 | nextstep*) | ||
4245 | 928 | ;; | 843 | ;; |
4248 | 929 | -ns2*) | 844 | ns2*) |
4249 | 930 | os=-nextstep2 | 845 | basic_os=nextstep2 |
4250 | 931 | ;; | 846 | ;; |
4251 | 932 | *) | 847 | *) |
4253 | 933 | os=-nextstep3 | 848 | basic_os=nextstep3 |
4254 | 934 | ;; | 849 | ;; |
4255 | 935 | esac | 850 | esac |
4256 | 936 | ;; | 851 | ;; |
4257 | 937 | nh3000) | ||
4258 | 938 | basic_machine=m68k-harris | ||
4259 | 939 | os=-cxux | ||
4260 | 940 | ;; | ||
4261 | 941 | nh[45]000) | ||
4262 | 942 | basic_machine=m88k-harris | ||
4263 | 943 | os=-cxux | ||
4264 | 944 | ;; | ||
4265 | 945 | nindy960) | ||
4266 | 946 | basic_machine=i960-intel | ||
4267 | 947 | os=-nindy | ||
4268 | 948 | ;; | ||
4269 | 949 | mon960) | ||
4270 | 950 | basic_machine=i960-intel | ||
4271 | 951 | os=-mon960 | ||
4272 | 952 | ;; | ||
4273 | 953 | nonstopux) | ||
4274 | 954 | basic_machine=mips-compaq | ||
4275 | 955 | os=-nonstopux | ||
4276 | 956 | ;; | ||
4277 | 957 | np1) | 852 | np1) |
4294 | 958 | basic_machine=np1-gould | 853 | cpu=np1 |
4295 | 959 | ;; | 854 | vendor=gould |
4280 | 960 | neo-tandem) | ||
4281 | 961 | basic_machine=neo-tandem | ||
4282 | 962 | ;; | ||
4283 | 963 | nse-tandem) | ||
4284 | 964 | basic_machine=nse-tandem | ||
4285 | 965 | ;; | ||
4286 | 966 | nsr-tandem) | ||
4287 | 967 | basic_machine=nsr-tandem | ||
4288 | 968 | ;; | ||
4289 | 969 | nsv-tandem) | ||
4290 | 970 | basic_machine=nsv-tandem | ||
4291 | 971 | ;; | ||
4292 | 972 | nsx-tandem) | ||
4293 | 973 | basic_machine=nsx-tandem | ||
4296 | 974 | ;; | 855 | ;; |
4297 | 975 | op50n-* | op60c-*) | 856 | op50n-* | op60c-*) |
4315 | 976 | basic_machine=hppa1.1-oki | 857 | cpu=hppa1.1 |
4316 | 977 | os=-proelf | 858 | vendor=oki |
4317 | 978 | ;; | 859 | basic_os=proelf |
4301 | 979 | openrisc | openrisc-*) | ||
4302 | 980 | basic_machine=or32-unknown | ||
4303 | 981 | ;; | ||
4304 | 982 | os400) | ||
4305 | 983 | basic_machine=powerpc-ibm | ||
4306 | 984 | os=-os400 | ||
4307 | 985 | ;; | ||
4308 | 986 | OSE68000 | ose68000) | ||
4309 | 987 | basic_machine=m68000-ericsson | ||
4310 | 988 | os=-ose | ||
4311 | 989 | ;; | ||
4312 | 990 | os68k) | ||
4313 | 991 | basic_machine=m68k-none | ||
4314 | 992 | os=-os68k | ||
4318 | 993 | ;; | 860 | ;; |
4319 | 994 | pa-hitachi) | 861 | pa-hitachi) |
4334 | 995 | basic_machine=hppa1.1-hitachi | 862 | cpu=hppa1.1 |
4335 | 996 | os=-hiuxwe2 | 863 | vendor=hitachi |
4336 | 997 | ;; | 864 | basic_os=hiuxwe2 |
4323 | 998 | paragon) | ||
4324 | 999 | basic_machine=i860-intel | ||
4325 | 1000 | os=-osf | ||
4326 | 1001 | ;; | ||
4327 | 1002 | parisc) | ||
4328 | 1003 | basic_machine=hppa-unknown | ||
4329 | 1004 | os=-linux | ||
4330 | 1005 | ;; | ||
4331 | 1006 | parisc-*) | ||
4332 | 1007 | basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
4333 | 1008 | os=-linux | ||
4337 | 1009 | ;; | 865 | ;; |
4338 | 1010 | pbd) | 866 | pbd) |
4340 | 1011 | basic_machine=sparc-tti | 867 | cpu=sparc |
4341 | 868 | vendor=tti | ||
4342 | 1012 | ;; | 869 | ;; |
4343 | 1013 | pbb) | 870 | pbb) |
4351 | 1014 | basic_machine=m68k-tti | 871 | cpu=m68k |
4352 | 1015 | ;; | 872 | vendor=tti |
4346 | 1016 | pc532 | pc532-*) | ||
4347 | 1017 | basic_machine=ns32k-pc532 | ||
4348 | 1018 | ;; | ||
4349 | 1019 | pc98) | ||
4350 | 1020 | basic_machine=i386-pc | ||
4353 | 1021 | ;; | 873 | ;; |
4380 | 1022 | pc98-*) | 874 | pc532) |
4381 | 1023 | basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 875 | cpu=ns32k |
4382 | 1024 | ;; | 876 | vendor=pc532 |
4357 | 1025 | pentium | p5 | k5 | k6 | nexgen | viac3) | ||
4358 | 1026 | basic_machine=i586-pc | ||
4359 | 1027 | ;; | ||
4360 | 1028 | pentiumpro | p6 | 6x86 | athlon | athlon_*) | ||
4361 | 1029 | basic_machine=i686-pc | ||
4362 | 1030 | ;; | ||
4363 | 1031 | pentiumii | pentium2 | pentiumiii | pentium3) | ||
4364 | 1032 | basic_machine=i686-pc | ||
4365 | 1033 | ;; | ||
4366 | 1034 | pentium4) | ||
4367 | 1035 | basic_machine=i786-pc | ||
4368 | 1036 | ;; | ||
4369 | 1037 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | ||
4370 | 1038 | basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
4371 | 1039 | ;; | ||
4372 | 1040 | pentiumpro-* | p6-* | 6x86-* | athlon-*) | ||
4373 | 1041 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
4374 | 1042 | ;; | ||
4375 | 1043 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | ||
4376 | 1044 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
4377 | 1045 | ;; | ||
4378 | 1046 | pentium4-*) | ||
4379 | 1047 | basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
4383 | 1048 | ;; | 877 | ;; |
4384 | 1049 | pn) | 878 | pn) |
4393 | 1050 | basic_machine=pn-gould | 879 | cpu=pn |
4394 | 1051 | ;; | 880 | vendor=gould |
4387 | 1052 | power) basic_machine=power-ibm | ||
4388 | 1053 | ;; | ||
4389 | 1054 | ppc | ppcbe) basic_machine=powerpc-unknown | ||
4390 | 1055 | ;; | ||
4391 | 1056 | ppc-* | ppcbe-*) | ||
4392 | 1057 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
4395 | 1058 | ;; | 881 | ;; |
4398 | 1059 | ppcle | powerpclittle) | 882 | power) |
4399 | 1060 | basic_machine=powerpcle-unknown | 883 | cpu=power |
4400 | 884 | vendor=ibm | ||
4401 | 1061 | ;; | 885 | ;; |
4404 | 1062 | ppcle-* | powerpclittle-*) | 886 | ps2) |
4405 | 1063 | basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 887 | cpu=i386 |
4406 | 888 | vendor=ibm | ||
4407 | 1064 | ;; | 889 | ;; |
4409 | 1065 | ppc64) basic_machine=powerpc64-unknown | 890 | rm[46]00) |
4410 | 891 | cpu=mips | ||
4411 | 892 | vendor=siemens | ||
4412 | 1066 | ;; | 893 | ;; |
4414 | 1067 | ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 894 | rtpc | rtpc-*) |
4415 | 895 | cpu=romp | ||
4416 | 896 | vendor=ibm | ||
4417 | 1068 | ;; | 897 | ;; |
4420 | 1069 | ppc64le | powerpc64little) | 898 | sde) |
4421 | 1070 | basic_machine=powerpc64le-unknown | 899 | cpu=mipsisa32 |
4422 | 900 | vendor=sde | ||
4423 | 901 | basic_os=${basic_os:-elf} | ||
4424 | 1071 | ;; | 902 | ;; |
4427 | 1072 | ppc64le-* | powerpc64little-*) | 903 | simso-wrs) |
4428 | 1073 | basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 904 | cpu=sparclite |
4429 | 905 | vendor=wrs | ||
4430 | 906 | basic_os=vxworks | ||
4431 | 1074 | ;; | 907 | ;; |
4434 | 1075 | ps2) | 908 | tower | tower-32) |
4435 | 1076 | basic_machine=i386-ibm | 909 | cpu=m68k |
4436 | 910 | vendor=ncr | ||
4437 | 1077 | ;; | 911 | ;; |
4441 | 1078 | pw32) | 912 | vpp*|vx|vx-*) |
4442 | 1079 | basic_machine=i586-unknown | 913 | cpu=f301 |
4443 | 1080 | os=-pw32 | 914 | vendor=fujitsu |
4444 | 1081 | ;; | 915 | ;; |
4448 | 1082 | rdos | rdos64) | 916 | w65) |
4449 | 1083 | basic_machine=x86_64-pc | 917 | cpu=w65 |
4450 | 1084 | os=-rdos | 918 | vendor=wdc |
4451 | 1085 | ;; | 919 | ;; |
4455 | 1086 | rdos32) | 920 | w89k-*) |
4456 | 1087 | basic_machine=i386-pc | 921 | cpu=hppa1.1 |
4457 | 1088 | os=-rdos | 922 | vendor=winbond |
4458 | 923 | basic_os=proelf | ||
4459 | 1089 | ;; | 924 | ;; |
4463 | 1090 | rom68k) | 925 | none) |
4464 | 1091 | basic_machine=m68k-rom68k | 926 | cpu=none |
4465 | 1092 | os=-coff | 927 | vendor=none |
4466 | 1093 | ;; | 928 | ;; |
4469 | 1094 | rm[46]00) | 929 | leon|leon[3-9]) |
4470 | 1095 | basic_machine=mips-siemens | 930 | cpu=sparc |
4471 | 931 | vendor=$basic_machine | ||
4472 | 1096 | ;; | 932 | ;; |
4475 | 1097 | rtpc | rtpc-*) | 933 | leon-*|leon[3-9]-*) |
4476 | 1098 | basic_machine=romp-ibm | 934 | cpu=sparc |
4477 | 935 | vendor=`echo "$basic_machine" | sed 's/-.*//'` | ||
4478 | 1099 | ;; | 936 | ;; |
4481 | 1100 | s390 | s390-*) | 937 | |
4482 | 1101 | basic_machine=s390-ibm | 938 | *-*) |
4483 | 939 | # shellcheck disable=SC2162 | ||
4484 | 940 | saved_IFS=$IFS | ||
4485 | 941 | IFS="-" read cpu vendor <<EOF | ||
4486 | 942 | $basic_machine | ||
4487 | 943 | EOF | ||
4488 | 944 | IFS=$saved_IFS | ||
4489 | 1102 | ;; | 945 | ;; |
4492 | 1103 | s390x | s390x-*) | 946 | # We use `pc' rather than `unknown' |
4493 | 1104 | basic_machine=s390x-ibm | 947 | # because (1) that's what they normally are, and |
4494 | 948 | # (2) the word "unknown" tends to confuse beginning users. | ||
4495 | 949 | i*86 | x86_64) | ||
4496 | 950 | cpu=$basic_machine | ||
4497 | 951 | vendor=pc | ||
4498 | 1105 | ;; | 952 | ;; |
4502 | 1106 | sa29200) | 953 | # These rules are duplicated from below for sake of the special case above; |
4503 | 1107 | basic_machine=a29k-amd | 954 | # i.e. things that normalized to x86 arches should also default to "pc" |
4504 | 1108 | os=-udi | 955 | pc98) |
4505 | 956 | cpu=i386 | ||
4506 | 957 | vendor=pc | ||
4507 | 1109 | ;; | 958 | ;; |
4510 | 1110 | sb1) | 959 | x64 | amd64) |
4511 | 1111 | basic_machine=mipsisa64sb1-unknown | 960 | cpu=x86_64 |
4512 | 961 | vendor=pc | ||
4513 | 1112 | ;; | 962 | ;; |
4516 | 1113 | sb1el) | 963 | # Recognize the basic CPU types without company name. |
4517 | 1114 | basic_machine=mipsisa64sb1el-unknown | 964 | *) |
4518 | 965 | cpu=$basic_machine | ||
4519 | 966 | vendor=unknown | ||
4520 | 1115 | ;; | 967 | ;; |
4524 | 1116 | sde) | 968 | esac |
4525 | 1117 | basic_machine=mipsisa32-sde | 969 | |
4526 | 1118 | os=-elf | 970 | unset -v basic_machine |
4527 | 971 | |||
4528 | 972 | # Decode basic machines in the full and proper CPU-Company form. | ||
4529 | 973 | case $cpu-$vendor in | ||
4530 | 974 | # Here we handle the default manufacturer of certain CPU types in canonical form. It is in | ||
4531 | 975 | # some cases the only manufacturer, in others, it is the most popular. | ||
4532 | 976 | craynv-unknown) | ||
4533 | 977 | vendor=cray | ||
4534 | 978 | basic_os=${basic_os:-unicosmp} | ||
4535 | 1119 | ;; | 979 | ;; |
4539 | 1120 | sei) | 980 | c90-unknown | c90-cray) |
4540 | 1121 | basic_machine=mips-sei | 981 | vendor=cray |
4541 | 1122 | os=-seiux | 982 | basic_os=${Basic_os:-unicos} |
4542 | 1123 | ;; | 983 | ;; |
4545 | 1124 | sequent) | 984 | fx80-unknown) |
4546 | 1125 | basic_machine=i386-sequent | 985 | vendor=alliant |
4547 | 1126 | ;; | 986 | ;; |
4550 | 1127 | sh5el) | 987 | romp-unknown) |
4551 | 1128 | basic_machine=sh5le-unknown | 988 | vendor=ibm |
4552 | 1129 | ;; | 989 | ;; |
4556 | 1130 | simso-wrs) | 990 | mmix-unknown) |
4557 | 1131 | basic_machine=sparclite-wrs | 991 | vendor=knuth |
4555 | 1132 | os=-vxworks | ||
4558 | 1133 | ;; | 992 | ;; |
4562 | 1134 | sps7) | 993 | microblaze-unknown | microblazeel-unknown) |
4563 | 1135 | basic_machine=m68k-bull | 994 | vendor=xilinx |
4561 | 1136 | os=-sysv2 | ||
4564 | 1137 | ;; | 995 | ;; |
4567 | 1138 | spur) | 996 | rs6000-unknown) |
4568 | 1139 | basic_machine=spur-unknown | 997 | vendor=ibm |
4569 | 1140 | ;; | 998 | ;; |
4572 | 1141 | st2000) | 999 | vax-unknown) |
4573 | 1142 | basic_machine=m68k-tandem | 1000 | vendor=dec |
4574 | 1143 | ;; | 1001 | ;; |
4578 | 1144 | stratus) | 1002 | pdp11-unknown) |
4579 | 1145 | basic_machine=i860-stratus | 1003 | vendor=dec |
4577 | 1146 | os=-sysv4 | ||
4580 | 1147 | ;; | 1004 | ;; |
4583 | 1148 | strongarm-* | thumb-*) | 1005 | we32k-unknown) |
4584 | 1149 | basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 1006 | vendor=att |
4585 | 1150 | ;; | 1007 | ;; |
4588 | 1151 | sun2) | 1008 | cydra-unknown) |
4589 | 1152 | basic_machine=m68000-sun | 1009 | vendor=cydrome |
4590 | 1153 | ;; | 1010 | ;; |
4594 | 1154 | sun2os3) | 1011 | i370-ibm*) |
4595 | 1155 | basic_machine=m68000-sun | 1012 | vendor=ibm |
4593 | 1156 | os=-sunos3 | ||
4596 | 1157 | ;; | 1013 | ;; |
4600 | 1158 | sun2os4) | 1014 | orion-unknown) |
4601 | 1159 | basic_machine=m68000-sun | 1015 | vendor=highlevel |
4599 | 1160 | os=-sunos4 | ||
4602 | 1161 | ;; | 1016 | ;; |
4606 | 1162 | sun3os3) | 1017 | xps-unknown | xps100-unknown) |
4607 | 1163 | basic_machine=m68k-sun | 1018 | cpu=xps100 |
4608 | 1164 | os=-sunos3 | 1019 | vendor=honeywell |
4609 | 1165 | ;; | 1020 | ;; |
4613 | 1166 | sun3os4) | 1021 | |
4614 | 1167 | basic_machine=m68k-sun | 1022 | # Here we normalize CPU types with a missing or matching vendor |
4615 | 1168 | os=-sunos4 | 1023 | armh-unknown | armh-alt) |
4616 | 1024 | cpu=armv7l | ||
4617 | 1025 | vendor=alt | ||
4618 | 1026 | basic_os=${basic_os:-linux-gnueabihf} | ||
4619 | 1169 | ;; | 1027 | ;; |
4623 | 1170 | sun4os3) | 1028 | dpx20-unknown | dpx20-bull) |
4624 | 1171 | basic_machine=sparc-sun | 1029 | cpu=rs6000 |
4625 | 1172 | os=-sunos3 | 1030 | vendor=bull |
4626 | 1031 | basic_os=${basic_os:-bosx} | ||
4627 | 1173 | ;; | 1032 | ;; |
4631 | 1174 | sun4os4) | 1033 | |
4632 | 1175 | basic_machine=sparc-sun | 1034 | # Here we normalize CPU types irrespective of the vendor |
4633 | 1176 | os=-sunos4 | 1035 | amd64-*) |
4634 | 1036 | cpu=x86_64 | ||
4635 | 1177 | ;; | 1037 | ;; |
4639 | 1178 | sun4sol2) | 1038 | blackfin-*) |
4640 | 1179 | basic_machine=sparc-sun | 1039 | cpu=bfin |
4641 | 1180 | os=-solaris2 | 1040 | basic_os=linux |
4642 | 1181 | ;; | 1041 | ;; |
4645 | 1182 | sun3 | sun3-*) | 1042 | c54x-*) |
4646 | 1183 | basic_machine=m68k-sun | 1043 | cpu=tic54x |
4647 | 1184 | ;; | 1044 | ;; |
4650 | 1185 | sun4) | 1045 | c55x-*) |
4651 | 1186 | basic_machine=sparc-sun | 1046 | cpu=tic55x |
4652 | 1187 | ;; | 1047 | ;; |
4655 | 1188 | sun386 | sun386i | roadrunner) | 1048 | c6x-*) |
4656 | 1189 | basic_machine=i386-sun | 1049 | cpu=tic6x |
4657 | 1190 | ;; | 1050 | ;; |
4661 | 1191 | sv1) | 1051 | e500v[12]-*) |
4662 | 1192 | basic_machine=sv1-cray | 1052 | cpu=powerpc |
4663 | 1193 | os=-unicos | 1053 | basic_os=${basic_os}"spe" |
4664 | 1194 | ;; | 1054 | ;; |
4668 | 1195 | symmetry) | 1055 | mips3*-*) |
4669 | 1196 | basic_machine=i386-sequent | 1056 | cpu=mips64 |
4667 | 1197 | os=-dynix | ||
4670 | 1198 | ;; | 1057 | ;; |
4674 | 1199 | t3e) | 1058 | ms1-*) |
4675 | 1200 | basic_machine=alphaev5-cray | 1059 | cpu=mt |
4673 | 1201 | os=-unicos | ||
4676 | 1202 | ;; | 1060 | ;; |
4680 | 1203 | t90) | 1061 | m68knommu-*) |
4681 | 1204 | basic_machine=t90-cray | 1062 | cpu=m68k |
4682 | 1205 | os=-unicos | 1063 | basic_os=linux |
4683 | 1206 | ;; | 1064 | ;; |
4687 | 1207 | tile*) | 1065 | m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) |
4688 | 1208 | basic_machine=$basic_machine-unknown | 1066 | cpu=s12z |
4686 | 1209 | os=-linux-gnu | ||
4689 | 1210 | ;; | 1067 | ;; |
4692 | 1211 | tx39) | 1068 | openrisc-*) |
4693 | 1212 | basic_machine=mipstx39-unknown | 1069 | cpu=or32 |
4694 | 1213 | ;; | 1070 | ;; |
4697 | 1214 | tx39el) | 1071 | parisc-*) |
4698 | 1215 | basic_machine=mipstx39el-unknown | 1072 | cpu=hppa |
4699 | 1073 | basic_os=linux | ||
4700 | 1216 | ;; | 1074 | ;; |
4704 | 1217 | toad1) | 1075 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
4705 | 1218 | basic_machine=pdp10-xkl | 1076 | cpu=i586 |
4703 | 1219 | os=-tops20 | ||
4706 | 1220 | ;; | 1077 | ;; |
4709 | 1221 | tower | tower-32) | 1078 | pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) |
4710 | 1222 | basic_machine=m68k-ncr | 1079 | cpu=i686 |
4711 | 1223 | ;; | 1080 | ;; |
4715 | 1224 | tpf) | 1081 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
4716 | 1225 | basic_machine=s390x-ibm | 1082 | cpu=i686 |
4714 | 1226 | os=-tpf | ||
4717 | 1227 | ;; | 1083 | ;; |
4721 | 1228 | udi29k) | 1084 | pentium4-*) |
4722 | 1229 | basic_machine=a29k-amd | 1085 | cpu=i786 |
4720 | 1230 | os=-udi | ||
4723 | 1231 | ;; | 1086 | ;; |
4727 | 1232 | ultra3) | 1087 | pc98-*) |
4728 | 1233 | basic_machine=a29k-nyu | 1088 | cpu=i386 |
4726 | 1234 | os=-sym1 | ||
4729 | 1235 | ;; | 1089 | ;; |
4733 | 1236 | v810 | necv810) | 1090 | ppc-* | ppcbe-*) |
4734 | 1237 | basic_machine=v810-nec | 1091 | cpu=powerpc |
4732 | 1238 | os=-none | ||
4735 | 1239 | ;; | 1092 | ;; |
4739 | 1240 | vaxv) | 1093 | ppcle-* | powerpclittle-*) |
4740 | 1241 | basic_machine=vax-dec | 1094 | cpu=powerpcle |
4738 | 1242 | os=-sysv | ||
4741 | 1243 | ;; | 1095 | ;; |
4745 | 1244 | vms) | 1096 | ppc64-*) |
4746 | 1245 | basic_machine=vax-dec | 1097 | cpu=powerpc64 |
4744 | 1246 | os=-vms | ||
4747 | 1247 | ;; | 1098 | ;; |
4750 | 1248 | vpp*|vx|vx-*) | 1099 | ppc64le-* | powerpc64little-*) |
4751 | 1249 | basic_machine=f301-fujitsu | 1100 | cpu=powerpc64le |
4752 | 1250 | ;; | 1101 | ;; |
4756 | 1251 | vxworks960) | 1102 | sb1-*) |
4757 | 1252 | basic_machine=i960-wrs | 1103 | cpu=mipsisa64sb1 |
4755 | 1253 | os=-vxworks | ||
4758 | 1254 | ;; | 1104 | ;; |
4762 | 1255 | vxworks68) | 1105 | sb1el-*) |
4763 | 1256 | basic_machine=m68k-wrs | 1106 | cpu=mipsisa64sb1el |
4761 | 1257 | os=-vxworks | ||
4764 | 1258 | ;; | 1107 | ;; |
4768 | 1259 | vxworks29k) | 1108 | sh5e[lb]-*) |
4769 | 1260 | basic_machine=a29k-wrs | 1109 | cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` |
4767 | 1261 | os=-vxworks | ||
4770 | 1262 | ;; | 1110 | ;; |
4774 | 1263 | w65*) | 1111 | spur-*) |
4775 | 1264 | basic_machine=w65-wdc | 1112 | cpu=spur |
4773 | 1265 | os=-none | ||
4776 | 1266 | ;; | 1113 | ;; |
4780 | 1267 | w89k-*) | 1114 | strongarm-* | thumb-*) |
4781 | 1268 | basic_machine=hppa1.1-winbond | 1115 | cpu=arm |
4779 | 1269 | os=-proelf | ||
4782 | 1270 | ;; | 1116 | ;; |
4785 | 1271 | x64) | 1117 | tx39-*) |
4786 | 1272 | basic_machine=x86_64-pc | 1118 | cpu=mipstx39 |
4787 | 1273 | ;; | 1119 | ;; |
4791 | 1274 | xbox) | 1120 | tx39el-*) |
4792 | 1275 | basic_machine=i686-pc | 1121 | cpu=mipstx39el |
4790 | 1276 | os=-mingw32 | ||
4793 | 1277 | ;; | 1122 | ;; |
4796 | 1278 | xps | xps100) | 1123 | x64-*) |
4797 | 1279 | basic_machine=xps100-honeywell | 1124 | cpu=x86_64 |
4798 | 1280 | ;; | 1125 | ;; |
4799 | 1281 | xscale-* | xscalee[bl]-*) | 1126 | xscale-* | xscalee[bl]-*) |
4801 | 1282 | basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` | 1127 | cpu=`echo "$cpu" | sed 's/^xscale/arm/'` |
4802 | 1283 | ;; | 1128 | ;; |
4810 | 1284 | ymp) | 1129 | arm64-* | aarch64le-*) |
4811 | 1285 | basic_machine=ymp-cray | 1130 | cpu=aarch64 |
4805 | 1286 | os=-unicos | ||
4806 | 1287 | ;; | ||
4807 | 1288 | none) | ||
4808 | 1289 | basic_machine=none-none | ||
4809 | 1290 | os=-none | ||
4812 | 1291 | ;; | 1131 | ;; |
4813 | 1292 | 1132 | ||
4827 | 1293 | # Here we handle the default manufacturer of certain CPU types. It is in | 1133 | # Recognize the canonical CPU Types that limit and/or modify the |
4828 | 1294 | # some cases the only manufacturer, in others, it is the most popular. | 1134 | # company names they are paired with. |
4829 | 1295 | w89k) | 1135 | cr16-*) |
4830 | 1296 | basic_machine=hppa1.1-winbond | 1136 | basic_os=${basic_os:-elf} |
4818 | 1297 | ;; | ||
4819 | 1298 | op50n) | ||
4820 | 1299 | basic_machine=hppa1.1-oki | ||
4821 | 1300 | ;; | ||
4822 | 1301 | op60c) | ||
4823 | 1302 | basic_machine=hppa1.1-oki | ||
4824 | 1303 | ;; | ||
4825 | 1304 | romp) | ||
4826 | 1305 | basic_machine=romp-ibm | ||
4831 | 1306 | ;; | 1137 | ;; |
4834 | 1307 | mmix) | 1138 | crisv32-* | etraxfs*-*) |
4835 | 1308 | basic_machine=mmix-knuth | 1139 | cpu=crisv32 |
4836 | 1140 | vendor=axis | ||
4837 | 1309 | ;; | 1141 | ;; |
4840 | 1310 | rs6000) | 1142 | cris-* | etrax*-*) |
4841 | 1311 | basic_machine=rs6000-ibm | 1143 | cpu=cris |
4842 | 1144 | vendor=axis | ||
4843 | 1312 | ;; | 1145 | ;; |
4846 | 1313 | vax) | 1146 | crx-*) |
4847 | 1314 | basic_machine=vax-dec | 1147 | basic_os=${basic_os:-elf} |
4848 | 1315 | ;; | 1148 | ;; |
4857 | 1316 | pdp11) | 1149 | neo-tandem) |
4858 | 1317 | basic_machine=pdp11-dec | 1150 | cpu=neo |
4859 | 1318 | ;; | 1151 | vendor=tandem |
4852 | 1319 | we32k) | ||
4853 | 1320 | basic_machine=we32k-att | ||
4854 | 1321 | ;; | ||
4855 | 1322 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) | ||
4856 | 1323 | basic_machine=sh-unknown | ||
4860 | 1324 | ;; | 1152 | ;; |
4863 | 1325 | cydra) | 1153 | nse-tandem) |
4864 | 1326 | basic_machine=cydra-cydrome | 1154 | cpu=nse |
4865 | 1155 | vendor=tandem | ||
4866 | 1327 | ;; | 1156 | ;; |
4869 | 1328 | orion) | 1157 | nsr-tandem) |
4870 | 1329 | basic_machine=orion-highlevel | 1158 | cpu=nsr |
4871 | 1159 | vendor=tandem | ||
4872 | 1330 | ;; | 1160 | ;; |
4875 | 1331 | orion105) | 1161 | nsv-tandem) |
4876 | 1332 | basic_machine=clipper-highlevel | 1162 | cpu=nsv |
4877 | 1163 | vendor=tandem | ||
4878 | 1333 | ;; | 1164 | ;; |
4881 | 1334 | mac | mpw | mac-mpw) | 1165 | nsx-tandem) |
4882 | 1335 | basic_machine=m68k-apple | 1166 | cpu=nsx |
4883 | 1167 | vendor=tandem | ||
4884 | 1336 | ;; | 1168 | ;; |
4887 | 1337 | pmac | pmac-mpw) | 1169 | mipsallegrexel-sony) |
4888 | 1338 | basic_machine=powerpc-apple | 1170 | cpu=mipsallegrexel |
4889 | 1171 | vendor=sony | ||
4890 | 1339 | ;; | 1172 | ;; |
4893 | 1340 | *-unknown) | 1173 | tile*-*) |
4894 | 1341 | # Make sure to match an already-canonicalized machine name. | 1174 | basic_os=${basic_os:-linux-gnu} |
4895 | 1342 | ;; | 1175 | ;; |
4896 | 1176 | |||
4897 | 1343 | *) | 1177 | *) |
4900 | 1344 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | 1178 | # Recognize the canonical CPU types that are allowed with any |
4901 | 1345 | exit 1 | 1179 | # company name. |
4902 | 1180 | case $cpu in | ||
4903 | 1181 | 1750a | 580 \ | ||
4904 | 1182 | | a29k \ | ||
4905 | 1183 | | aarch64 | aarch64_be \ | ||
4906 | 1184 | | abacus \ | ||
4907 | 1185 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | ||
4908 | 1186 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ | ||
4909 | 1187 | | alphapca5[67] | alpha64pca5[67] \ | ||
4910 | 1188 | | am33_2.0 \ | ||
4911 | 1189 | | amdgcn \ | ||
4912 | 1190 | | arc | arceb | arc32 | arc64 \ | ||
4913 | 1191 | | arm | arm[lb]e | arme[lb] | armv* \ | ||
4914 | 1192 | | avr | avr32 \ | ||
4915 | 1193 | | asmjs \ | ||
4916 | 1194 | | ba \ | ||
4917 | 1195 | | be32 | be64 \ | ||
4918 | 1196 | | bfin | bpf | bs2000 \ | ||
4919 | 1197 | | c[123]* | c30 | [cjt]90 | c4x \ | ||
4920 | 1198 | | c8051 | clipper | craynv | csky | cydra \ | ||
4921 | 1199 | | d10v | d30v | dlx | dsp16xx \ | ||
4922 | 1200 | | e2k | elxsi | epiphany \ | ||
4923 | 1201 | | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ | ||
4924 | 1202 | | h8300 | h8500 \ | ||
4925 | 1203 | | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||
4926 | 1204 | | hexagon \ | ||
4927 | 1205 | | i370 | i*86 | i860 | i960 | ia16 | ia64 \ | ||
4928 | 1206 | | ip2k | iq2000 \ | ||
4929 | 1207 | | k1om \ | ||
4930 | 1208 | | le32 | le64 \ | ||
4931 | 1209 | | lm32 \ | ||
4932 | 1210 | | loongarch32 | loongarch64 | loongarchx32 \ | ||
4933 | 1211 | | m32c | m32r | m32rle \ | ||
4934 | 1212 | | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | ||
4935 | 1213 | | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ | ||
4936 | 1214 | | m88110 | m88k | maxq | mb | mcore | mep | metag \ | ||
4937 | 1215 | | microblaze | microblazeel \ | ||
4938 | 1216 | | mips | mipsbe | mipseb | mipsel | mipsle \ | ||
4939 | 1217 | | mips16 \ | ||
4940 | 1218 | | mips64 | mips64eb | mips64el \ | ||
4941 | 1219 | | mips64octeon | mips64octeonel \ | ||
4942 | 1220 | | mips64orion | mips64orionel \ | ||
4943 | 1221 | | mips64r5900 | mips64r5900el \ | ||
4944 | 1222 | | mips64vr | mips64vrel \ | ||
4945 | 1223 | | mips64vr4100 | mips64vr4100el \ | ||
4946 | 1224 | | mips64vr4300 | mips64vr4300el \ | ||
4947 | 1225 | | mips64vr5000 | mips64vr5000el \ | ||
4948 | 1226 | | mips64vr5900 | mips64vr5900el \ | ||
4949 | 1227 | | mipsisa32 | mipsisa32el \ | ||
4950 | 1228 | | mipsisa32r2 | mipsisa32r2el \ | ||
4951 | 1229 | | mipsisa32r3 | mipsisa32r3el \ | ||
4952 | 1230 | | mipsisa32r5 | mipsisa32r5el \ | ||
4953 | 1231 | | mipsisa32r6 | mipsisa32r6el \ | ||
4954 | 1232 | | mipsisa64 | mipsisa64el \ | ||
4955 | 1233 | | mipsisa64r2 | mipsisa64r2el \ | ||
4956 | 1234 | | mipsisa64r3 | mipsisa64r3el \ | ||
4957 | 1235 | | mipsisa64r5 | mipsisa64r5el \ | ||
4958 | 1236 | | mipsisa64r6 | mipsisa64r6el \ | ||
4959 | 1237 | | mipsisa64sb1 | mipsisa64sb1el \ | ||
4960 | 1238 | | mipsisa64sr71k | mipsisa64sr71kel \ | ||
4961 | 1239 | | mipsr5900 | mipsr5900el \ | ||
4962 | 1240 | | mipstx39 | mipstx39el \ | ||
4963 | 1241 | | mmix \ | ||
4964 | 1242 | | mn10200 | mn10300 \ | ||
4965 | 1243 | | moxie \ | ||
4966 | 1244 | | mt \ | ||
4967 | 1245 | | msp430 \ | ||
4968 | 1246 | | nds32 | nds32le | nds32be \ | ||
4969 | 1247 | | nfp \ | ||
4970 | 1248 | | nios | nios2 | nios2eb | nios2el \ | ||
4971 | 1249 | | none | np1 | ns16k | ns32k | nvptx \ | ||
4972 | 1250 | | open8 \ | ||
4973 | 1251 | | or1k* \ | ||
4974 | 1252 | | or32 \ | ||
4975 | 1253 | | orion \ | ||
4976 | 1254 | | picochip \ | ||
4977 | 1255 | | pdp10 | pdp11 | pj | pjl | pn | power \ | ||
4978 | 1256 | | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | ||
4979 | 1257 | | pru \ | ||
4980 | 1258 | | pyramid \ | ||
4981 | 1259 | | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ | ||
4982 | 1260 | | rl78 | romp | rs6000 | rx \ | ||
4983 | 1261 | | s390 | s390x \ | ||
4984 | 1262 | | score \ | ||
4985 | 1263 | | sh | shl \ | ||
4986 | 1264 | | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ | ||
4987 | 1265 | | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ | ||
4988 | 1266 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ | ||
4989 | 1267 | | sparclite \ | ||
4990 | 1268 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ | ||
4991 | 1269 | | spu \ | ||
4992 | 1270 | | tahoe \ | ||
4993 | 1271 | | thumbv7* \ | ||
4994 | 1272 | | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ | ||
4995 | 1273 | | tron \ | ||
4996 | 1274 | | ubicom32 \ | ||
4997 | 1275 | | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | ||
4998 | 1276 | | vax \ | ||
4999 | 1277 | | visium \ | ||
5000 | 1278 | | w65 \ |
The diff has been truncated for viewing.