~ubuntu-branches/ubuntu/precise/slurm-llnl/precise

« back to all changes in this revision

Viewing changes to debian/patches/config-patch

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2011-04-08 11:21:17 UTC
  • mfrom: (3.3.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110408112117-nfnyq9dtm55hqoaw
Tags: 2.2.4-1
* New upstream releases 
* Cleaning spare file and directories, not belonging to the sources
  generated by the building process and not removed by distclean.
  Added debian/clean with spare files and rm -rf inside debian/rules
  for directories.
* Added new packages libslurm-perl, libslurmdb-perl, slurm-llnl-torque
  (Closes: #575822) thanks to Julien Blache

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Upstream changes introduced in version 2.1.8-1
 
2
 This patch has been created by dpkg-source during the package build.
 
3
 Here's the last changelog entry, hopefully it gives details on why
 
4
 those changes were made:
 
5
 .
 
6
 slurm-llnl (2.1.8-1) unstable; urgency=low
 
7
 .
 
8
   * New upstream release
 
9
   * Removed logrotate filename wildcards to avoid conflicts between the
 
10
     slurm-llnl and the slurm-llnl-slurmdbd packages (Closes: #580010)
 
11
   * Switch to dpkg-source 3.0 (quilt) format
 
12
 .
 
13
 The person named in the Author field signed this changelog entry.
 
14
Author: Gennaro Oliva <oliva.g@na.icar.cnr.it>
 
15
Bug-Debian: http://bugs.debian.org/580010
 
16
 
 
17
---
 
18
The information above should follow the Patch Tagging Guidelines, please
 
19
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
 
20
are templates for supplementary fields that you might want to add:
 
21
 
 
22
Origin: <vendor|upstream|other>, <url of original patch>
 
23
Bug: <url in upstream bugtracker>
 
24
Bug-Debian: http://bugs.debian.org/<bugnumber>
 
25
Forwarded: <no|not-needed|url proving that it has been forwarded>
 
26
Reviewed-By: <name and email of someone who approved the patch>
 
27
Last-Update: <YYYY-MM-DD>
 
28
 
 
29
--- /dev/null
 
30
+++ slurm-llnl-2.1.8/config.guess
 
31
@@ -0,0 +1,1502 @@
 
32
+#! /bin/sh
 
33
+# Attempt to guess a canonical system name.
 
34
+#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 
35
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 
36
+#   Free Software Foundation, Inc.
 
37
+
 
38
+timestamp='2009-12-30'
 
39
+
 
40
+# This file is free software; you can redistribute it and/or modify it
 
41
+# under the terms of the GNU General Public License as published by
 
42
+# the Free Software Foundation; either version 2 of the License, or
 
43
+# (at your option) any later version.
 
44
+#
 
45
+# This program is distributed in the hope that it will be useful, but
 
46
+# WITHOUT ANY WARRANTY; without even the implied warranty of
 
47
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
48
+# General Public License for more details.
 
49
+#
 
50
+# You should have received a copy of the GNU General Public License
 
51
+# along with this program; if not, write to the Free Software
 
52
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
53
+# 02110-1301, USA.
 
54
+#
 
55
+# As a special exception to the GNU General Public License, if you
 
56
+# distribute this file as part of a program that contains a
 
57
+# configuration script generated by Autoconf, you may include it under
 
58
+# the same distribution terms that you use for the rest of that program.
 
59
+
 
60
+
 
61
+# Originally written by Per Bothner.  Please send patches (context
 
62
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
 
63
+# entry.
 
64
+#
 
65
+# This script attempts to guess a canonical system name similar to
 
66
+# config.sub.  If it succeeds, it prints the system name on stdout, and
 
67
+# exits with 0.  Otherwise, it exits with 1.
 
68
+#
 
69
+# You can get the latest version of this script from:
 
70
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
 
71
+
 
72
+me=`echo "$0" | sed -e 's,.*/,,'`
 
73
+
 
74
+usage="\
 
75
+Usage: $0 [OPTION]
 
76
+
 
77
+Output the configuration name of the system \`$me' is run on.
 
78
+
 
79
+Operation modes:
 
80
+  -h, --help         print this help, then exit
 
81
+  -t, --time-stamp   print date of last modification, then exit
 
82
+  -v, --version      print version number, then exit
 
83
+
 
84
+Report bugs and patches to <config-patches@gnu.org>."
 
85
+
 
86
+version="\
 
87
+GNU config.guess ($timestamp)
 
88
+
 
89
+Originally written by Per Bothner.
 
90
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
91
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
 
92
+Software Foundation, Inc.
 
93
+
 
94
+This is free software; see the source for copying conditions.  There is NO
 
95
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
96
+
 
97
+help="
 
98
+Try \`$me --help' for more information."
 
99
+
 
100
+# Parse command line
 
101
+while test $# -gt 0 ; do
 
102
+  case $1 in
 
103
+    --time-stamp | --time* | -t )
 
104
+       echo "$timestamp" ; exit ;;
 
105
+    --version | -v )
 
106
+       echo "$version" ; exit ;;
 
107
+    --help | --h* | -h )
 
108
+       echo "$usage"; exit ;;
 
109
+    -- )     # Stop option processing
 
110
+       shift; break ;;
 
111
+    - )        # Use stdin as input.
 
112
+       break ;;
 
113
+    -* )
 
114
+       echo "$me: invalid option $1$help" >&2
 
115
+       exit 1 ;;
 
116
+    * )
 
117
+       break ;;
 
118
+  esac
 
119
+done
 
120
+
 
121
+if test $# != 0; then
 
122
+  echo "$me: too many arguments$help" >&2
 
123
+  exit 1
 
124
+fi
 
125
+
 
126
+trap 'exit 1' 1 2 15
 
127
+
 
128
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
 
129
+# compiler to aid in system detection is discouraged as it requires
 
130
+# temporary files to be created and, as you can see below, it is a
 
131
+# headache to deal with in a portable fashion.
 
132
+
 
133
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
 
134
+# use `HOST_CC' if defined, but it is deprecated.
 
135
+
 
136
+# Portable tmp directory creation inspired by the Autoconf team.
 
137
+
 
138
+set_cc_for_build='
 
139
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
 
140
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
 
141
+: ${TMPDIR=/tmp} ;
 
142
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
143
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 
144
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 
145
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
 
146
+dummy=$tmp/dummy ;
 
147
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
 
148
+case $CC_FOR_BUILD,$HOST_CC,$CC in
 
149
+ ,,)    echo "int x;" > $dummy.c ;
 
150
+       for c in cc gcc c89 c99 ; do
 
151
+         if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
 
152
+            CC_FOR_BUILD="$c"; break ;
 
153
+         fi ;
 
154
+       done ;
 
155
+       if test x"$CC_FOR_BUILD" = x ; then
 
156
+         CC_FOR_BUILD=no_compiler_found ;
 
157
+       fi
 
158
+       ;;
 
159
+ ,,*)   CC_FOR_BUILD=$CC ;;
 
160
+ ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
 
161
+esac ; set_cc_for_build= ;'
 
162
+
 
163
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
 
164
+# (ghazi@noc.rutgers.edu 1994-08-24)
 
165
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
 
166
+       PATH=$PATH:/.attbin ; export PATH
 
167
+fi
 
168
+
 
169
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
 
170
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
 
171
+UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
 
172
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
 
173
+
 
174
+# Note: order is significant - the case branches are not exclusive.
 
175
+
 
176
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
 
177
+    *:NetBSD:*:*)
 
178
+       # NetBSD (nbsd) targets should (where applicable) match one or
 
179
+       # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
 
180
+       # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
 
181
+       # switched to ELF, *-*-netbsd* would select the old
 
182
+       # object file format.  This provides both forward
 
183
+       # compatibility and a consistent mechanism for selecting the
 
184
+       # object file format.
 
185
+       #
 
186
+       # Note: NetBSD doesn't particularly care about the vendor
 
187
+       # portion of the name.  We always set it to "unknown".
 
188
+       sysctl="sysctl -n hw.machine_arch"
 
189
+       UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
 
190
+           /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
 
191
+       case "${UNAME_MACHINE_ARCH}" in
 
192
+           armeb) machine=armeb-unknown ;;
 
193
+           arm*) machine=arm-unknown ;;
 
194
+           sh3el) machine=shl-unknown ;;
 
195
+           sh3eb) machine=sh-unknown ;;
 
196
+           sh5el) machine=sh5le-unknown ;;
 
197
+           *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
 
198
+       esac
 
199
+       # The Operating System including object format, if it has switched
 
200
+       # to ELF recently, or will in the future.
 
201
+       case "${UNAME_MACHINE_ARCH}" in
 
202
+           arm*|i386|m68k|ns32k|sh3*|sparc|vax)
 
203
+               eval $set_cc_for_build
 
204
+               if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
205
+                       | grep -q __ELF__
 
206
+               then
 
207
+                   # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
 
208
+                   # Return netbsd for either.  FIX?
 
209
+                   os=netbsd
 
210
+               else
 
211
+                   os=netbsdelf
 
212
+               fi
 
213
+               ;;
 
214
+           *)
 
215
+               os=netbsd
 
216
+               ;;
 
217
+       esac
 
218
+       # The OS release
 
219
+       # Debian GNU/NetBSD machines have a different userland, and
 
220
+       # thus, need a distinct triplet. However, they do not need
 
221
+       # kernel version information, so it can be replaced with a
 
222
+       # suitable tag, in the style of linux-gnu.
 
223
+       case "${UNAME_VERSION}" in
 
224
+           Debian*)
 
225
+               release='-gnu'
 
226
+               ;;
 
227
+           *)
 
228
+               release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
 
229
+               ;;
 
230
+       esac
 
231
+       # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
 
232
+       # contains redundant information, the shorter form:
 
233
+       # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
 
234
+       echo "${machine}-${os}${release}"
 
235
+       exit ;;
 
236
+    *:OpenBSD:*:*)
 
237
+       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
 
238
+       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
 
239
+       exit ;;
 
240
+    *:ekkoBSD:*:*)
 
241
+       echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
 
242
+       exit ;;
 
243
+    *:SolidBSD:*:*)
 
244
+       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
245
+       exit ;;
 
246
+    macppc:MirBSD:*:*)
 
247
+       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
 
248
+       exit ;;
 
249
+    *:MirBSD:*:*)
 
250
+       echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
 
251
+       exit ;;
 
252
+    alpha:OSF1:*:*)
 
253
+       case $UNAME_RELEASE in
 
254
+       *4.0)
 
255
+               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
 
256
+               ;;
 
257
+       *5.*)
 
258
+               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
259
+               ;;
 
260
+       esac
 
261
+       # According to Compaq, /usr/sbin/psrinfo has been available on
 
262
+       # OSF/1 and Tru64 systems produced since 1995.  I hope that
 
263
+       # covers most systems running today.  This code pipes the CPU
 
264
+       # types through head -n 1, so we only detect the type of CPU 0.
 
265
+       ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
 
266
+       case "$ALPHA_CPU_TYPE" in
 
267
+           "EV4 (21064)")
 
268
+               UNAME_MACHINE="alpha" ;;
 
269
+           "EV4.5 (21064)")
 
270
+               UNAME_MACHINE="alpha" ;;
 
271
+           "LCA4 (21066/21068)")
 
272
+               UNAME_MACHINE="alpha" ;;
 
273
+           "EV5 (21164)")
 
274
+               UNAME_MACHINE="alphaev5" ;;
 
275
+           "EV5.6 (21164A)")
 
276
+               UNAME_MACHINE="alphaev56" ;;
 
277
+           "EV5.6 (21164PC)")
 
278
+               UNAME_MACHINE="alphapca56" ;;
 
279
+           "EV5.7 (21164PC)")
 
280
+               UNAME_MACHINE="alphapca57" ;;
 
281
+           "EV6 (21264)")
 
282
+               UNAME_MACHINE="alphaev6" ;;
 
283
+           "EV6.7 (21264A)")
 
284
+               UNAME_MACHINE="alphaev67" ;;
 
285
+           "EV6.8CB (21264C)")
 
286
+               UNAME_MACHINE="alphaev68" ;;
 
287
+           "EV6.8AL (21264B)")
 
288
+               UNAME_MACHINE="alphaev68" ;;
 
289
+           "EV6.8CX (21264D)")
 
290
+               UNAME_MACHINE="alphaev68" ;;
 
291
+           "EV6.9A (21264/EV69A)")
 
292
+               UNAME_MACHINE="alphaev69" ;;
 
293
+           "EV7 (21364)")
 
294
+               UNAME_MACHINE="alphaev7" ;;
 
295
+           "EV7.9 (21364A)")
 
296
+               UNAME_MACHINE="alphaev79" ;;
 
297
+       esac
 
298
+       # A Pn.n version is a patched version.
 
299
+       # A Vn.n version is a released version.
 
300
+       # A Tn.n version is a released field test version.
 
301
+       # A Xn.n version is an unreleased experimental baselevel.
 
302
+       # 1.2 uses "1.2" for uname -r.
 
303
+       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
 
304
+       exit ;;
 
305
+    Alpha\ *:Windows_NT*:*)
 
306
+       # How do we know it's Interix rather than the generic POSIX subsystem?
 
307
+       # Should we change UNAME_MACHINE based on the output of uname instead
 
308
+       # of the specific Alpha model?
 
309
+       echo alpha-pc-interix
 
310
+       exit ;;
 
311
+    21064:Windows_NT:50:3)
 
312
+       echo alpha-dec-winnt3.5
 
313
+       exit ;;
 
314
+    Amiga*:UNIX_System_V:4.0:*)
 
315
+       echo m68k-unknown-sysv4
 
316
+       exit ;;
 
317
+    *:[Aa]miga[Oo][Ss]:*:*)
 
318
+       echo ${UNAME_MACHINE}-unknown-amigaos
 
319
+       exit ;;
 
320
+    *:[Mm]orph[Oo][Ss]:*:*)
 
321
+       echo ${UNAME_MACHINE}-unknown-morphos
 
322
+       exit ;;
 
323
+    *:OS/390:*:*)
 
324
+       echo i370-ibm-openedition
 
325
+       exit ;;
 
326
+    *:z/VM:*:*)
 
327
+       echo s390-ibm-zvmoe
 
328
+       exit ;;
 
329
+    *:OS400:*:*)
 
330
+        echo powerpc-ibm-os400
 
331
+       exit ;;
 
332
+    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
 
333
+       echo arm-acorn-riscix${UNAME_RELEASE}
 
334
+       exit ;;
 
335
+    arm:riscos:*:*|arm:RISCOS:*:*)
 
336
+       echo arm-unknown-riscos
 
337
+       exit ;;
 
338
+    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
 
339
+       echo hppa1.1-hitachi-hiuxmpp
 
340
+       exit ;;
 
341
+    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
 
342
+       # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
 
343
+       if test "`(/bin/universe) 2>/dev/null`" = att ; then
 
344
+               echo pyramid-pyramid-sysv3
 
345
+       else
 
346
+               echo pyramid-pyramid-bsd
 
347
+       fi
 
348
+       exit ;;
 
349
+    NILE*:*:*:dcosx)
 
350
+       echo pyramid-pyramid-svr4
 
351
+       exit ;;
 
352
+    DRS?6000:unix:4.0:6*)
 
353
+       echo sparc-icl-nx6
 
354
+       exit ;;
 
355
+    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
 
356
+       case `/usr/bin/uname -p` in
 
357
+           sparc) echo sparc-icl-nx7; exit ;;
 
358
+       esac ;;
 
359
+    s390x:SunOS:*:*)
 
360
+       echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
361
+       exit ;;
 
362
+    sun4H:SunOS:5.*:*)
 
363
+       echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
364
+       exit ;;
 
365
+    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
 
366
+       echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
367
+       exit ;;
 
368
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
 
369
+       echo i386-pc-auroraux${UNAME_RELEASE}
 
370
+       exit ;;
 
371
+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
372
+       eval $set_cc_for_build
 
373
+       SUN_ARCH="i386"
 
374
+       # If there is a compiler, see if it is configured for 64-bit objects.
 
375
+       # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
376
+       # This test works for both compilers.
 
377
+       if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
378
+           if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
379
+               (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
380
+               grep IS_64BIT_ARCH >/dev/null
 
381
+           then
 
382
+               SUN_ARCH="x86_64"
 
383
+           fi
 
384
+       fi
 
385
+       echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
386
+       exit ;;
 
387
+    sun4*:SunOS:6*:*)
 
388
+       # According to config.sub, this is the proper way to canonicalize
 
389
+       # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
 
390
+       # it's likely to be more like Solaris than SunOS4.
 
391
+       echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
392
+       exit ;;
 
393
+    sun4*:SunOS:*:*)
 
394
+       case "`/usr/bin/arch -k`" in
 
395
+           Series*|S4*)
 
396
+               UNAME_RELEASE=`uname -v`
 
397
+               ;;
 
398
+       esac
 
399
+       # Japanese Language versions have a version number like `4.1.3-JL'.
 
400
+       echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
 
401
+       exit ;;
 
402
+    sun3*:SunOS:*:*)
 
403
+       echo m68k-sun-sunos${UNAME_RELEASE}
 
404
+       exit ;;
 
405
+    sun*:*:4.2BSD:*)
 
406
+       UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
 
407
+       test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
 
408
+       case "`/bin/arch`" in
 
409
+           sun3)
 
410
+               echo m68k-sun-sunos${UNAME_RELEASE}
 
411
+               ;;
 
412
+           sun4)
 
413
+               echo sparc-sun-sunos${UNAME_RELEASE}
 
414
+               ;;
 
415
+       esac
 
416
+       exit ;;
 
417
+    aushp:SunOS:*:*)
 
418
+       echo sparc-auspex-sunos${UNAME_RELEASE}
 
419
+       exit ;;
 
420
+    # The situation for MiNT is a little confusing.  The machine name
 
421
+    # can be virtually everything (everything which is not
 
422
+    # "atarist" or "atariste" at least should have a processor
 
423
+    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
 
424
+    # to the lowercase version "mint" (or "freemint").  Finally
 
425
+    # the system name "TOS" denotes a system which is actually not
 
426
+    # MiNT.  But MiNT is downward compatible to TOS, so this should
 
427
+    # be no problem.
 
428
+    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
 
429
+        echo m68k-atari-mint${UNAME_RELEASE}
 
430
+       exit ;;
 
431
+    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
 
432
+       echo m68k-atari-mint${UNAME_RELEASE}
 
433
+        exit ;;
 
434
+    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
 
435
+        echo m68k-atari-mint${UNAME_RELEASE}
 
436
+       exit ;;
 
437
+    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
 
438
+        echo m68k-milan-mint${UNAME_RELEASE}
 
439
+        exit ;;
 
440
+    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
 
441
+        echo m68k-hades-mint${UNAME_RELEASE}
 
442
+        exit ;;
 
443
+    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
 
444
+        echo m68k-unknown-mint${UNAME_RELEASE}
 
445
+        exit ;;
 
446
+    m68k:machten:*:*)
 
447
+       echo m68k-apple-machten${UNAME_RELEASE}
 
448
+       exit ;;
 
449
+    powerpc:machten:*:*)
 
450
+       echo powerpc-apple-machten${UNAME_RELEASE}
 
451
+       exit ;;
 
452
+    RISC*:Mach:*:*)
 
453
+       echo mips-dec-mach_bsd4.3
 
454
+       exit ;;
 
455
+    RISC*:ULTRIX:*:*)
 
456
+       echo mips-dec-ultrix${UNAME_RELEASE}
 
457
+       exit ;;
 
458
+    VAX*:ULTRIX*:*:*)
 
459
+       echo vax-dec-ultrix${UNAME_RELEASE}
 
460
+       exit ;;
 
461
+    2020:CLIX:*:* | 2430:CLIX:*:*)
 
462
+       echo clipper-intergraph-clix${UNAME_RELEASE}
 
463
+       exit ;;
 
464
+    mips:*:*:UMIPS | mips:*:*:RISCos)
 
465
+       eval $set_cc_for_build
 
466
+       sed 's/^        //' << EOF >$dummy.c
 
467
+#ifdef __cplusplus
 
468
+#include <stdio.h>  /* for printf() prototype */
 
469
+       int main (int argc, char *argv[]) {
 
470
+#else
 
471
+       int main (argc, argv) int argc; char *argv[]; {
 
472
+#endif
 
473
+       #if defined (host_mips) && defined (MIPSEB)
 
474
+       #if defined (SYSTYPE_SYSV)
 
475
+         printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
 
476
+       #endif
 
477
+       #if defined (SYSTYPE_SVR4)
 
478
+         printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
 
479
+       #endif
 
480
+       #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
 
481
+         printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
 
482
+       #endif
 
483
+       #endif
 
484
+         exit (-1);
 
485
+       }
 
486
+EOF
 
487
+       $CC_FOR_BUILD -o $dummy $dummy.c &&
 
488
+         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
 
489
+         SYSTEM_NAME=`$dummy $dummyarg` &&
 
490
+           { echo "$SYSTEM_NAME"; exit; }
 
491
+       echo mips-mips-riscos${UNAME_RELEASE}
 
492
+       exit ;;
 
493
+    Motorola:PowerMAX_OS:*:*)
 
494
+       echo powerpc-motorola-powermax
 
495
+       exit ;;
 
496
+    Motorola:*:4.3:PL8-*)
 
497
+       echo powerpc-harris-powermax
 
498
+       exit ;;
 
499
+    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
 
500
+       echo powerpc-harris-powermax
 
501
+       exit ;;
 
502
+    Night_Hawk:Power_UNIX:*:*)
 
503
+       echo powerpc-harris-powerunix
 
504
+       exit ;;
 
505
+    m88k:CX/UX:7*:*)
 
506
+       echo m88k-harris-cxux7
 
507
+       exit ;;
 
508
+    m88k:*:4*:R4*)
 
509
+       echo m88k-motorola-sysv4
 
510
+       exit ;;
 
511
+    m88k:*:3*:R3*)
 
512
+       echo m88k-motorola-sysv3
 
513
+       exit ;;
 
514
+    AViiON:dgux:*:*)
 
515
+        # DG/UX returns AViiON for all architectures
 
516
+        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
517
+       if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
 
518
+       then
 
519
+           if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
 
520
+              [ ${TARGET_BINARY_INTERFACE}x = x ]
 
521
+           then
 
522
+               echo m88k-dg-dgux${UNAME_RELEASE}
 
523
+           else
 
524
+               echo m88k-dg-dguxbcs${UNAME_RELEASE}
 
525
+           fi
 
526
+       else
 
527
+           echo i586-dg-dgux${UNAME_RELEASE}
 
528
+       fi
 
529
+       exit ;;
 
530
+    M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
 
531
+       echo m88k-dolphin-sysv3
 
532
+       exit ;;
 
533
+    M88*:*:R3*:*)
 
534
+       # Delta 88k system running SVR3
 
535
+       echo m88k-motorola-sysv3
 
536
+       exit ;;
 
537
+    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
 
538
+       echo m88k-tektronix-sysv3
 
539
+       exit ;;
 
540
+    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
 
541
+       echo m68k-tektronix-bsd
 
542
+       exit ;;
 
543
+    *:IRIX*:*:*)
 
544
+       echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
 
545
+       exit ;;
 
546
+    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
 
547
+       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
 
548
+       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
 
549
+    i*86:AIX:*:*)
 
550
+       echo i386-ibm-aix
 
551
+       exit ;;
 
552
+    ia64:AIX:*:*)
 
553
+       if [ -x /usr/bin/oslevel ] ; then
 
554
+               IBM_REV=`/usr/bin/oslevel`
 
555
+       else
 
556
+               IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
 
557
+       fi
 
558
+       echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
 
559
+       exit ;;
 
560
+    *:AIX:2:3)
 
561
+       if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
 
562
+               eval $set_cc_for_build
 
563
+               sed 's/^                //' << EOF >$dummy.c
 
564
+               #include <sys/systemcfg.h>
 
565
+
 
566
+               main()
 
567
+                       {
 
568
+                       if (!__power_pc())
 
569
+                               exit(1);
 
570
+                       puts("powerpc-ibm-aix3.2.5");
 
571
+                       exit(0);
 
572
+                       }
 
573
+EOF
 
574
+               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
 
575
+               then
 
576
+                       echo "$SYSTEM_NAME"
 
577
+               else
 
578
+                       echo rs6000-ibm-aix3.2.5
 
579
+               fi
 
580
+       elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
 
581
+               echo rs6000-ibm-aix3.2.4
 
582
+       else
 
583
+               echo rs6000-ibm-aix3.2
 
584
+       fi
 
585
+       exit ;;
 
586
+    *:AIX:*:[456])
 
587
+       IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
 
588
+       if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
 
589
+               IBM_ARCH=rs6000
 
590
+       else
 
591
+               IBM_ARCH=powerpc
 
592
+       fi
 
593
+       if [ -x /usr/bin/oslevel ] ; then
 
594
+               IBM_REV=`/usr/bin/oslevel`
 
595
+       else
 
596
+               IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
 
597
+       fi
 
598
+       echo ${IBM_ARCH}-ibm-aix${IBM_REV}
 
599
+       exit ;;
 
600
+    *:AIX:*:*)
 
601
+       echo rs6000-ibm-aix
 
602
+       exit ;;
 
603
+    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
 
604
+       echo romp-ibm-bsd4.4
 
605
+       exit ;;
 
606
+    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
 
607
+       echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
 
608
+       exit ;;                             # report: romp-ibm BSD 4.3
 
609
+    *:BOSX:*:*)
 
610
+       echo rs6000-bull-bosx
 
611
+       exit ;;
 
612
+    DPX/2?00:B.O.S.:*:*)
 
613
+       echo m68k-bull-sysv3
 
614
+       exit ;;
 
615
+    9000/[34]??:4.3bsd:1.*:*)
 
616
+       echo m68k-hp-bsd
 
617
+       exit ;;
 
618
+    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
 
619
+       echo m68k-hp-bsd4.4
 
620
+       exit ;;
 
621
+    9000/[34678]??:HP-UX:*:*)
 
622
+       HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
 
623
+       case "${UNAME_MACHINE}" in
 
624
+           9000/31? )            HP_ARCH=m68000 ;;
 
625
+           9000/[34]?? )         HP_ARCH=m68k ;;
 
626
+           9000/[678][0-9][0-9])
 
627
+               if [ -x /usr/bin/getconf ]; then
 
628
+                   sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
 
629
+                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
 
630
+                    case "${sc_cpu_version}" in
 
631
+                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
 
632
+                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
 
633
+                      532)                      # CPU_PA_RISC2_0
 
634
+                        case "${sc_kernel_bits}" in
 
635
+                          32) HP_ARCH="hppa2.0n" ;;
 
636
+                          64) HP_ARCH="hppa2.0w" ;;
 
637
+                         '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
 
638
+                        esac ;;
 
639
+                    esac
 
640
+               fi
 
641
+               if [ "${HP_ARCH}" = "" ]; then
 
642
+                   eval $set_cc_for_build
 
643
+                   sed 's/^              //' << EOF >$dummy.c
 
644
+
 
645
+              #define _HPUX_SOURCE
 
646
+              #include <stdlib.h>
 
647
+              #include <unistd.h>
 
648
+
 
649
+              int main ()
 
650
+              {
 
651
+              #if defined(_SC_KERNEL_BITS)
 
652
+                  long bits = sysconf(_SC_KERNEL_BITS);
 
653
+              #endif
 
654
+                  long cpu  = sysconf (_SC_CPU_VERSION);
 
655
+
 
656
+                  switch (cpu)
 
657
+               {
 
658
+               case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
 
659
+               case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
 
660
+               case CPU_PA_RISC2_0:
 
661
+              #if defined(_SC_KERNEL_BITS)
 
662
+                   switch (bits)
 
663
+                       {
 
664
+                       case 64: puts ("hppa2.0w"); break;
 
665
+                       case 32: puts ("hppa2.0n"); break;
 
666
+                       default: puts ("hppa2.0"); break;
 
667
+                       } break;
 
668
+              #else  /* !defined(_SC_KERNEL_BITS) */
 
669
+                   puts ("hppa2.0"); break;
 
670
+              #endif
 
671
+               default: puts ("hppa1.0"); break;
 
672
+               }
 
673
+                  exit (0);
 
674
+              }
 
675
+EOF
 
676
+                   (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
 
677
+                   test -z "$HP_ARCH" && HP_ARCH=hppa
 
678
+               fi ;;
 
679
+       esac
 
680
+       if [ ${HP_ARCH} = "hppa2.0w" ]
 
681
+       then
 
682
+           eval $set_cc_for_build
 
683
+
 
684
+           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
 
685
+           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
 
686
+           # generating 64-bit code.  GNU and HP use different nomenclature:
 
687
+           #
 
688
+           # $ CC_FOR_BUILD=cc ./config.guess
 
689
+           # => hppa2.0w-hp-hpux11.23
 
690
+           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
 
691
+           # => hppa64-hp-hpux11.23
 
692
+
 
693
+           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
 
694
+               grep -q __LP64__
 
695
+           then
 
696
+               HP_ARCH="hppa2.0w"
 
697
+           else
 
698
+               HP_ARCH="hppa64"
 
699
+           fi
 
700
+       fi
 
701
+       echo ${HP_ARCH}-hp-hpux${HPUX_REV}
 
702
+       exit ;;
 
703
+    ia64:HP-UX:*:*)
 
704
+       HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
 
705
+       echo ia64-hp-hpux${HPUX_REV}
 
706
+       exit ;;
 
707
+    3050*:HI-UX:*:*)
 
708
+       eval $set_cc_for_build
 
709
+       sed 's/^        //' << EOF >$dummy.c
 
710
+       #include <unistd.h>
 
711
+       int
 
712
+       main ()
 
713
+       {
 
714
+         long cpu = sysconf (_SC_CPU_VERSION);
 
715
+         /* The order matters, because CPU_IS_HP_MC68K erroneously returns
 
716
+            true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
 
717
+            results, however.  */
 
718
+         if (CPU_IS_PA_RISC (cpu))
 
719
+           {
 
720
+             switch (cpu)
 
721
+               {
 
722
+                 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
 
723
+                 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
 
724
+                 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
 
725
+                 default: puts ("hppa-hitachi-hiuxwe2"); break;
 
726
+               }
 
727
+           }
 
728
+         else if (CPU_IS_HP_MC68K (cpu))
 
729
+           puts ("m68k-hitachi-hiuxwe2");
 
730
+         else puts ("unknown-hitachi-hiuxwe2");
 
731
+         exit (0);
 
732
+       }
 
733
+EOF
 
734
+       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
 
735
+               { echo "$SYSTEM_NAME"; exit; }
 
736
+       echo unknown-hitachi-hiuxwe2
 
737
+       exit ;;
 
738
+    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
 
739
+       echo hppa1.1-hp-bsd
 
740
+       exit ;;
 
741
+    9000/8??:4.3bsd:*:*)
 
742
+       echo hppa1.0-hp-bsd
 
743
+       exit ;;
 
744
+    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
 
745
+       echo hppa1.0-hp-mpeix
 
746
+       exit ;;
 
747
+    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
 
748
+       echo hppa1.1-hp-osf
 
749
+       exit ;;
 
750
+    hp8??:OSF1:*:*)
 
751
+       echo hppa1.0-hp-osf
 
752
+       exit ;;
 
753
+    i*86:OSF1:*:*)
 
754
+       if [ -x /usr/sbin/sysversion ] ; then
 
755
+           echo ${UNAME_MACHINE}-unknown-osf1mk
 
756
+       else
 
757
+           echo ${UNAME_MACHINE}-unknown-osf1
 
758
+       fi
 
759
+       exit ;;
 
760
+    parisc*:Lites*:*:*)
 
761
+       echo hppa1.1-hp-lites
 
762
+       exit ;;
 
763
+    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
 
764
+       echo c1-convex-bsd
 
765
+        exit ;;
 
766
+    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
 
767
+       if getsysinfo -f scalar_acc
 
768
+       then echo c32-convex-bsd
 
769
+       else echo c2-convex-bsd
 
770
+       fi
 
771
+        exit ;;
 
772
+    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
 
773
+       echo c34-convex-bsd
 
774
+        exit ;;
 
775
+    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
 
776
+       echo c38-convex-bsd
 
777
+        exit ;;
 
778
+    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
 
779
+       echo c4-convex-bsd
 
780
+        exit ;;
 
781
+    CRAY*Y-MP:*:*:*)
 
782
+       echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
783
+       exit ;;
 
784
+    CRAY*[A-Z]90:*:*:*)
 
785
+       echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
 
786
+       | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
 
787
+             -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
 
788
+             -e 's/\.[^.]*$/.X/'
 
789
+       exit ;;
 
790
+    CRAY*TS:*:*:*)
 
791
+       echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
792
+       exit ;;
 
793
+    CRAY*T3E:*:*:*)
 
794
+       echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
795
+       exit ;;
 
796
+    CRAY*SV1:*:*:*)
 
797
+       echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
798
+       exit ;;
 
799
+    *:UNICOS/mp:*:*)
 
800
+       echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
801
+       exit ;;
 
802
+    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
 
803
+       FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
 
804
+        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
805
+        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
 
806
+        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
807
+        exit ;;
 
808
+    5000:UNIX_System_V:4.*:*)
 
809
+        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
810
+        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
811
+        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
812
+       exit ;;
 
813
+    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
 
814
+       echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
 
815
+       exit ;;
 
816
+    sparc*:BSD/OS:*:*)
 
817
+       echo sparc-unknown-bsdi${UNAME_RELEASE}
 
818
+       exit ;;
 
819
+    *:BSD/OS:*:*)
 
820
+       echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
 
821
+       exit ;;
 
822
+    *:FreeBSD:*:*)
 
823
+       case ${UNAME_MACHINE} in
 
824
+           pc98)
 
825
+               echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
826
+           amd64)
 
827
+               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
828
+           *)
 
829
+               echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
830
+       esac
 
831
+       exit ;;
 
832
+    i*:CYGWIN*:*)
 
833
+       echo ${UNAME_MACHINE}-pc-cygwin
 
834
+       exit ;;
 
835
+    *:MINGW*:*)
 
836
+       echo ${UNAME_MACHINE}-pc-mingw32
 
837
+       exit ;;
 
838
+    i*:windows32*:*)
 
839
+       # uname -m includes "-pc" on this system.
 
840
+       echo ${UNAME_MACHINE}-mingw32
 
841
+       exit ;;
 
842
+    i*:PW*:*)
 
843
+       echo ${UNAME_MACHINE}-pc-pw32
 
844
+       exit ;;
 
845
+    *:Interix*:*)
 
846
+       case ${UNAME_MACHINE} in
 
847
+           x86)
 
848
+               echo i586-pc-interix${UNAME_RELEASE}
 
849
+               exit ;;
 
850
+           authenticamd | genuineintel | EM64T)
 
851
+               echo x86_64-unknown-interix${UNAME_RELEASE}
 
852
+               exit ;;
 
853
+           IA64)
 
854
+               echo ia64-unknown-interix${UNAME_RELEASE}
 
855
+               exit ;;
 
856
+       esac ;;
 
857
+    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
 
858
+       echo i${UNAME_MACHINE}-pc-mks
 
859
+       exit ;;
 
860
+    8664:Windows_NT:*)
 
861
+       echo x86_64-pc-mks
 
862
+       exit ;;
 
863
+    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
 
864
+       # How do we know it's Interix rather than the generic POSIX subsystem?
 
865
+       # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
 
866
+       # UNAME_MACHINE based on the output of uname instead of i386?
 
867
+       echo i586-pc-interix
 
868
+       exit ;;
 
869
+    i*:UWIN*:*)
 
870
+       echo ${UNAME_MACHINE}-pc-uwin
 
871
+       exit ;;
 
872
+    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
 
873
+       echo x86_64-unknown-cygwin
 
874
+       exit ;;
 
875
+    p*:CYGWIN*:*)
 
876
+       echo powerpcle-unknown-cygwin
 
877
+       exit ;;
 
878
+    prep*:SunOS:5.*:*)
 
879
+       echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
880
+       exit ;;
 
881
+    *:GNU:*:*)
 
882
+       # the GNU system
 
883
+       echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
 
884
+       exit ;;
 
885
+    *:GNU/*:*:*)
 
886
+       # other systems with GNU libc and userland
 
887
+       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
 
888
+       exit ;;
 
889
+    i*86:Minix:*:*)
 
890
+       echo ${UNAME_MACHINE}-pc-minix
 
891
+       exit ;;
 
892
+    alpha:Linux:*:*)
 
893
+       case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
 
894
+         EV5)   UNAME_MACHINE=alphaev5 ;;
 
895
+         EV56)  UNAME_MACHINE=alphaev56 ;;
 
896
+         PCA56) UNAME_MACHINE=alphapca56 ;;
 
897
+         PCA57) UNAME_MACHINE=alphapca56 ;;
 
898
+         EV6)   UNAME_MACHINE=alphaev6 ;;
 
899
+         EV67)  UNAME_MACHINE=alphaev67 ;;
 
900
+         EV68*) UNAME_MACHINE=alphaev68 ;;
 
901
+        esac
 
902
+       objdump --private-headers /bin/sh | grep -q ld.so.1
 
903
+       if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
904
+       echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
905
+       exit ;;
 
906
+    arm*:Linux:*:*)
 
907
+       eval $set_cc_for_build
 
908
+       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
909
+           | grep -q __ARM_EABI__
 
910
+       then
 
911
+           echo ${UNAME_MACHINE}-unknown-linux-gnu
 
912
+       else
 
913
+           echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
914
+       fi
 
915
+       exit ;;
 
916
+    avr32*:Linux:*:*)
 
917
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
 
918
+       exit ;;
 
919
+    cris:Linux:*:*)
 
920
+       echo cris-axis-linux-gnu
 
921
+       exit ;;
 
922
+    crisv32:Linux:*:*)
 
923
+       echo crisv32-axis-linux-gnu
 
924
+       exit ;;
 
925
+    frv:Linux:*:*)
 
926
+       echo frv-unknown-linux-gnu
 
927
+       exit ;;
 
928
+    i*86:Linux:*:*)
 
929
+       LIBC=gnu
 
930
+       eval $set_cc_for_build
 
931
+       sed 's/^        //' << EOF >$dummy.c
 
932
+       #ifdef __dietlibc__
 
933
+       LIBC=dietlibc
 
934
+       #endif
 
935
+EOF
 
936
+       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
937
+       echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
 
938
+       exit ;;
 
939
+    ia64:Linux:*:*)
 
940
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
 
941
+       exit ;;
 
942
+    m32r*:Linux:*:*)
 
943
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
 
944
+       exit ;;
 
945
+    m68*:Linux:*:*)
 
946
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
 
947
+       exit ;;
 
948
+    mips:Linux:*:* | mips64:Linux:*:*)
 
949
+       eval $set_cc_for_build
 
950
+       sed 's/^        //' << EOF >$dummy.c
 
951
+       #undef CPU
 
952
+       #undef ${UNAME_MACHINE}
 
953
+       #undef ${UNAME_MACHINE}el
 
954
+       #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
955
+       CPU=${UNAME_MACHINE}el
 
956
+       #else
 
957
+       #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
958
+       CPU=${UNAME_MACHINE}
 
959
+       #else
 
960
+       CPU=
 
961
+       #endif
 
962
+       #endif
 
963
+EOF
 
964
+       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
 
965
+       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
966
+       ;;
 
967
+    or32:Linux:*:*)
 
968
+       echo or32-unknown-linux-gnu
 
969
+       exit ;;
 
970
+    padre:Linux:*:*)
 
971
+       echo sparc-unknown-linux-gnu
 
972
+       exit ;;
 
973
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
974
+       echo hppa64-unknown-linux-gnu
 
975
+       exit ;;
 
976
+    parisc:Linux:*:* | hppa:Linux:*:*)
 
977
+       # Look for CPU level
 
978
+       case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
 
979
+         PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
980
+         PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
981
+         *)    echo hppa-unknown-linux-gnu ;;
 
982
+       esac
 
983
+       exit ;;
 
984
+    ppc64:Linux:*:*)
 
985
+       echo powerpc64-unknown-linux-gnu
 
986
+       exit ;;
 
987
+    ppc:Linux:*:*)
 
988
+       echo powerpc-unknown-linux-gnu
 
989
+       exit ;;
 
990
+    s390:Linux:*:* | s390x:Linux:*:*)
 
991
+       echo ${UNAME_MACHINE}-ibm-linux
 
992
+       exit ;;
 
993
+    sh64*:Linux:*:*)
 
994
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
 
995
+       exit ;;
 
996
+    sh*:Linux:*:*)
 
997
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
 
998
+       exit ;;
 
999
+    sparc:Linux:*:* | sparc64:Linux:*:*)
 
1000
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1001
+       exit ;;
 
1002
+    vax:Linux:*:*)
 
1003
+       echo ${UNAME_MACHINE}-dec-linux-gnu
 
1004
+       exit ;;
 
1005
+    x86_64:Linux:*:*)
 
1006
+       echo x86_64-unknown-linux-gnu
 
1007
+       exit ;;
 
1008
+    xtensa*:Linux:*:*)
 
1009
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1010
+       exit ;;
 
1011
+    i*86:DYNIX/ptx:4*:*)
 
1012
+       # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
 
1013
+       # earlier versions are messed up and put the nodename in both
 
1014
+       # sysname and nodename.
 
1015
+       echo i386-sequent-sysv4
 
1016
+       exit ;;
 
1017
+    i*86:UNIX_SV:4.2MP:2.*)
 
1018
+        # Unixware is an offshoot of SVR4, but it has its own version
 
1019
+        # number series starting with 2...
 
1020
+        # I am not positive that other SVR4 systems won't match this,
 
1021
+       # I just have to hope.  -- rms.
 
1022
+        # Use sysv4.2uw... so that sysv4* matches it.
 
1023
+       echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
 
1024
+       exit ;;
 
1025
+    i*86:OS/2:*:*)
 
1026
+       # If we were able to find `uname', then EMX Unix compatibility
 
1027
+       # is probably installed.
 
1028
+       echo ${UNAME_MACHINE}-pc-os2-emx
 
1029
+       exit ;;
 
1030
+    i*86:XTS-300:*:STOP)
 
1031
+       echo ${UNAME_MACHINE}-unknown-stop
 
1032
+       exit ;;
 
1033
+    i*86:atheos:*:*)
 
1034
+       echo ${UNAME_MACHINE}-unknown-atheos
 
1035
+       exit ;;
 
1036
+    i*86:syllable:*:*)
 
1037
+       echo ${UNAME_MACHINE}-pc-syllable
 
1038
+       exit ;;
 
1039
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
 
1040
+       echo i386-unknown-lynxos${UNAME_RELEASE}
 
1041
+       exit ;;
 
1042
+    i*86:*DOS:*:*)
 
1043
+       echo ${UNAME_MACHINE}-pc-msdosdjgpp
 
1044
+       exit ;;
 
1045
+    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
 
1046
+       UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
 
1047
+       if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
 
1048
+               echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
 
1049
+       else
 
1050
+               echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
 
1051
+       fi
 
1052
+       exit ;;
 
1053
+    i*86:*:5:[678]*)
 
1054
+       # UnixWare 7.x, OpenUNIX and OpenServer 6.
 
1055
+       case `/bin/uname -X | grep "^Machine"` in
 
1056
+           *486*)           UNAME_MACHINE=i486 ;;
 
1057
+           *Pentium)        UNAME_MACHINE=i586 ;;
 
1058
+           *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
 
1059
+       esac
 
1060
+       echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
 
1061
+       exit ;;
 
1062
+    i*86:*:3.2:*)
 
1063
+       if test -f /usr/options/cb.name; then
 
1064
+               UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
 
1065
+               echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
 
1066
+       elif /bin/uname -X 2>/dev/null >/dev/null ; then
 
1067
+               UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
 
1068
+               (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
 
1069
+               (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
 
1070
+                       && UNAME_MACHINE=i586
 
1071
+               (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
 
1072
+                       && UNAME_MACHINE=i686
 
1073
+               (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
 
1074
+                       && UNAME_MACHINE=i686
 
1075
+               echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
 
1076
+       else
 
1077
+               echo ${UNAME_MACHINE}-pc-sysv32
 
1078
+       fi
 
1079
+       exit ;;
 
1080
+    pc:*:*:*)
 
1081
+       # Left here for compatibility:
 
1082
+        # uname -m prints for DJGPP always 'pc', but it prints nothing about
 
1083
+        # the processor, so we play safe by assuming i586.
 
1084
+       # Note: whatever this is, it MUST be the same as what config.sub
 
1085
+       # prints for the "djgpp" host, or else GDB configury will decide that
 
1086
+       # this is a cross-build.
 
1087
+       echo i586-pc-msdosdjgpp
 
1088
+        exit ;;
 
1089
+    Intel:Mach:3*:*)
 
1090
+       echo i386-pc-mach3
 
1091
+       exit ;;
 
1092
+    paragon:*:*:*)
 
1093
+       echo i860-intel-osf1
 
1094
+       exit ;;
 
1095
+    i860:*:4.*:*) # i860-SVR4
 
1096
+       if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
 
1097
+         echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
 
1098
+       else # Add other i860-SVR4 vendors below as they are discovered.
 
1099
+         echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
 
1100
+       fi
 
1101
+       exit ;;
 
1102
+    mini*:CTIX:SYS*5:*)
 
1103
+       # "miniframe"
 
1104
+       echo m68010-convergent-sysv
 
1105
+       exit ;;
 
1106
+    mc68k:UNIX:SYSTEM5:3.51m)
 
1107
+       echo m68k-convergent-sysv
 
1108
+       exit ;;
 
1109
+    M680?0:D-NIX:5.3:*)
 
1110
+       echo m68k-diab-dnix
 
1111
+       exit ;;
 
1112
+    M68*:*:R3V[5678]*:*)
 
1113
+       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
 
1114
+    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)
 
1115
+       OS_REL=''
 
1116
+       test -r /etc/.relid \
 
1117
+       && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1118
+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1119
+         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1120
+       /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1121
+         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
 
1122
+    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
 
1123
+        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1124
+          && { echo i486-ncr-sysv4; exit; } ;;
 
1125
+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1126
+       OS_REL='.3'
 
1127
+       test -r /etc/.relid \
 
1128
+           && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1129
+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1130
+           && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1131
+       /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1132
+           && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
1133
+       /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1134
+           && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
 
1135
+    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
 
1136
+       echo m68k-unknown-lynxos${UNAME_RELEASE}
 
1137
+       exit ;;
 
1138
+    mc68030:UNIX_System_V:4.*:*)
 
1139
+       echo m68k-atari-sysv4
 
1140
+       exit ;;
 
1141
+    TSUNAMI:LynxOS:2.*:*)
 
1142
+       echo sparc-unknown-lynxos${UNAME_RELEASE}
 
1143
+       exit ;;
 
1144
+    rs6000:LynxOS:2.*:*)
 
1145
+       echo rs6000-unknown-lynxos${UNAME_RELEASE}
 
1146
+       exit ;;
 
1147
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
 
1148
+       echo powerpc-unknown-lynxos${UNAME_RELEASE}
 
1149
+       exit ;;
 
1150
+    SM[BE]S:UNIX_SV:*:*)
 
1151
+       echo mips-dde-sysv${UNAME_RELEASE}
 
1152
+       exit ;;
 
1153
+    RM*:ReliantUNIX-*:*:*)
 
1154
+       echo mips-sni-sysv4
 
1155
+       exit ;;
 
1156
+    RM*:SINIX-*:*:*)
 
1157
+       echo mips-sni-sysv4
 
1158
+       exit ;;
 
1159
+    *:SINIX-*:*:*)
 
1160
+       if uname -p 2>/dev/null >/dev/null ; then
 
1161
+               UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1162
+               echo ${UNAME_MACHINE}-sni-sysv4
 
1163
+       else
 
1164
+               echo ns32k-sni-sysv
 
1165
+       fi
 
1166
+       exit ;;
 
1167
+    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
 
1168
+                      # says <Richard.M.Bartel@ccMail.Census.GOV>
 
1169
+        echo i586-unisys-sysv4
 
1170
+        exit ;;
 
1171
+    *:UNIX_System_V:4*:FTX*)
 
1172
+       # From Gerald Hewes <hewes@openmarket.com>.
 
1173
+       # How about differentiating between stratus architectures? -djm
 
1174
+       echo hppa1.1-stratus-sysv4
 
1175
+       exit ;;
 
1176
+    *:*:*:FTX*)
 
1177
+       # From seanf@swdc.stratus.com.
 
1178
+       echo i860-stratus-sysv4
 
1179
+       exit ;;
 
1180
+    i*86:VOS:*:*)
 
1181
+       # From Paul.Green@stratus.com.
 
1182
+       echo ${UNAME_MACHINE}-stratus-vos
 
1183
+       exit ;;
 
1184
+    *:VOS:*:*)
 
1185
+       # From Paul.Green@stratus.com.
 
1186
+       echo hppa1.1-stratus-vos
 
1187
+       exit ;;
 
1188
+    mc68*:A/UX:*:*)
 
1189
+       echo m68k-apple-aux${UNAME_RELEASE}
 
1190
+       exit ;;
 
1191
+    news*:NEWS-OS:6*:*)
 
1192
+       echo mips-sony-newsos6
 
1193
+       exit ;;
 
1194
+    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
 
1195
+       if [ -d /usr/nec ]; then
 
1196
+               echo mips-nec-sysv${UNAME_RELEASE}
 
1197
+       else
 
1198
+               echo mips-unknown-sysv${UNAME_RELEASE}
 
1199
+       fi
 
1200
+        exit ;;
 
1201
+    BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
 
1202
+       echo powerpc-be-beos
 
1203
+       exit ;;
 
1204
+    BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
 
1205
+       echo powerpc-apple-beos
 
1206
+       exit ;;
 
1207
+    BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
 
1208
+       echo i586-pc-beos
 
1209
+       exit ;;
 
1210
+    BePC:Haiku:*:*)    # Haiku running on Intel PC compatible.
 
1211
+       echo i586-pc-haiku
 
1212
+       exit ;;
 
1213
+    SX-4:SUPER-UX:*:*)
 
1214
+       echo sx4-nec-superux${UNAME_RELEASE}
 
1215
+       exit ;;
 
1216
+    SX-5:SUPER-UX:*:*)
 
1217
+       echo sx5-nec-superux${UNAME_RELEASE}
 
1218
+       exit ;;
 
1219
+    SX-6:SUPER-UX:*:*)
 
1220
+       echo sx6-nec-superux${UNAME_RELEASE}
 
1221
+       exit ;;
 
1222
+    SX-7:SUPER-UX:*:*)
 
1223
+       echo sx7-nec-superux${UNAME_RELEASE}
 
1224
+       exit ;;
 
1225
+    SX-8:SUPER-UX:*:*)
 
1226
+       echo sx8-nec-superux${UNAME_RELEASE}
 
1227
+       exit ;;
 
1228
+    SX-8R:SUPER-UX:*:*)
 
1229
+       echo sx8r-nec-superux${UNAME_RELEASE}
 
1230
+       exit ;;
 
1231
+    Power*:Rhapsody:*:*)
 
1232
+       echo powerpc-apple-rhapsody${UNAME_RELEASE}
 
1233
+       exit ;;
 
1234
+    *:Rhapsody:*:*)
 
1235
+       echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
 
1236
+       exit ;;
 
1237
+    *:Darwin:*:*)
 
1238
+       UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
 
1239
+       case $UNAME_PROCESSOR in
 
1240
+           i386)
 
1241
+               eval $set_cc_for_build
 
1242
+               if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
1243
+                 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
 
1244
+                     (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
1245
+                     grep IS_64BIT_ARCH >/dev/null
 
1246
+                 then
 
1247
+                     UNAME_PROCESSOR="x86_64"
 
1248
+                 fi
 
1249
+               fi ;;
 
1250
+           unknown) UNAME_PROCESSOR=powerpc ;;
 
1251
+       esac
 
1252
+       echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
 
1253
+       exit ;;
 
1254
+    *:procnto*:*:* | *:QNX:[0123456789]*:*)
 
1255
+       UNAME_PROCESSOR=`uname -p`
 
1256
+       if test "$UNAME_PROCESSOR" = "x86"; then
 
1257
+               UNAME_PROCESSOR=i386
 
1258
+               UNAME_MACHINE=pc
 
1259
+       fi
 
1260
+       echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
 
1261
+       exit ;;
 
1262
+    *:QNX:*:4*)
 
1263
+       echo i386-pc-qnx
 
1264
+       exit ;;
 
1265
+    NSE-?:NONSTOP_KERNEL:*:*)
 
1266
+       echo nse-tandem-nsk${UNAME_RELEASE}
 
1267
+       exit ;;
 
1268
+    NSR-?:NONSTOP_KERNEL:*:*)
 
1269
+       echo nsr-tandem-nsk${UNAME_RELEASE}
 
1270
+       exit ;;
 
1271
+    *:NonStop-UX:*:*)
 
1272
+       echo mips-compaq-nonstopux
 
1273
+       exit ;;
 
1274
+    BS2000:POSIX*:*:*)
 
1275
+       echo bs2000-siemens-sysv
 
1276
+       exit ;;
 
1277
+    DS/*:UNIX_System_V:*:*)
 
1278
+       echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
 
1279
+       exit ;;
 
1280
+    *:Plan9:*:*)
 
1281
+       # "uname -m" is not consistent, so use $cputype instead. 386
 
1282
+       # is converted to i386 for consistency with other x86
 
1283
+       # operating systems.
 
1284
+       if test "$cputype" = "386"; then
 
1285
+           UNAME_MACHINE=i386
 
1286
+       else
 
1287
+           UNAME_MACHINE="$cputype"
 
1288
+       fi
 
1289
+       echo ${UNAME_MACHINE}-unknown-plan9
 
1290
+       exit ;;
 
1291
+    *:TOPS-10:*:*)
 
1292
+       echo pdp10-unknown-tops10
 
1293
+       exit ;;
 
1294
+    *:TENEX:*:*)
 
1295
+       echo pdp10-unknown-tenex
 
1296
+       exit ;;
 
1297
+    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
 
1298
+       echo pdp10-dec-tops20
 
1299
+       exit ;;
 
1300
+    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
 
1301
+       echo pdp10-xkl-tops20
 
1302
+       exit ;;
 
1303
+    *:TOPS-20:*:*)
 
1304
+       echo pdp10-unknown-tops20
 
1305
+       exit ;;
 
1306
+    *:ITS:*:*)
 
1307
+       echo pdp10-unknown-its
 
1308
+       exit ;;
 
1309
+    SEI:*:*:SEIUX)
 
1310
+        echo mips-sei-seiux${UNAME_RELEASE}
 
1311
+       exit ;;
 
1312
+    *:DragonFly:*:*)
 
1313
+       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1314
+       exit ;;
 
1315
+    *:*VMS:*:*)
 
1316
+       UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1317
+       case "${UNAME_MACHINE}" in
 
1318
+           A*) echo alpha-dec-vms ; exit ;;
 
1319
+           I*) echo ia64-dec-vms ; exit ;;
 
1320
+           V*) echo vax-dec-vms ; exit ;;
 
1321
+       esac ;;
 
1322
+    *:XENIX:*:SysV)
 
1323
+       echo i386-pc-xenix
 
1324
+       exit ;;
 
1325
+    i*86:skyos:*:*)
 
1326
+       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
 
1327
+       exit ;;
 
1328
+    i*86:rdos:*:*)
 
1329
+       echo ${UNAME_MACHINE}-pc-rdos
 
1330
+       exit ;;
 
1331
+    i*86:AROS:*:*)
 
1332
+       echo ${UNAME_MACHINE}-pc-aros
 
1333
+       exit ;;
 
1334
+esac
 
1335
+
 
1336
+#echo '(No uname command or uname output not recognized.)' 1>&2
 
1337
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
 
1338
+
 
1339
+eval $set_cc_for_build
 
1340
+cat >$dummy.c <<EOF
 
1341
+#ifdef _SEQUENT_
 
1342
+# include <sys/types.h>
 
1343
+# include <sys/utsname.h>
 
1344
+#endif
 
1345
+main ()
 
1346
+{
 
1347
+#if defined (sony)
 
1348
+#if defined (MIPSEB)
 
1349
+  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
 
1350
+     I don't know....  */
 
1351
+  printf ("mips-sony-bsd\n"); exit (0);
 
1352
+#else
 
1353
+#include <sys/param.h>
 
1354
+  printf ("m68k-sony-newsos%s\n",
 
1355
+#ifdef NEWSOS4
 
1356
+          "4"
 
1357
+#else
 
1358
+         ""
 
1359
+#endif
 
1360
+         ); exit (0);
 
1361
+#endif
 
1362
+#endif
 
1363
+
 
1364
+#if defined (__arm) && defined (__acorn) && defined (__unix)
 
1365
+  printf ("arm-acorn-riscix\n"); exit (0);
 
1366
+#endif
 
1367
+
 
1368
+#if defined (hp300) && !defined (hpux)
 
1369
+  printf ("m68k-hp-bsd\n"); exit (0);
 
1370
+#endif
 
1371
+
 
1372
+#if defined (NeXT)
 
1373
+#if !defined (__ARCHITECTURE__)
 
1374
+#define __ARCHITECTURE__ "m68k"
 
1375
+#endif
 
1376
+  int version;
 
1377
+  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
 
1378
+  if (version < 4)
 
1379
+    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
 
1380
+  else
 
1381
+    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
 
1382
+  exit (0);
 
1383
+#endif
 
1384
+
 
1385
+#if defined (MULTIMAX) || defined (n16)
 
1386
+#if defined (UMAXV)
 
1387
+  printf ("ns32k-encore-sysv\n"); exit (0);
 
1388
+#else
 
1389
+#if defined (CMU)
 
1390
+  printf ("ns32k-encore-mach\n"); exit (0);
 
1391
+#else
 
1392
+  printf ("ns32k-encore-bsd\n"); exit (0);
 
1393
+#endif
 
1394
+#endif
 
1395
+#endif
 
1396
+
 
1397
+#if defined (__386BSD__)
 
1398
+  printf ("i386-pc-bsd\n"); exit (0);
 
1399
+#endif
 
1400
+
 
1401
+#if defined (sequent)
 
1402
+#if defined (i386)
 
1403
+  printf ("i386-sequent-dynix\n"); exit (0);
 
1404
+#endif
 
1405
+#if defined (ns32000)
 
1406
+  printf ("ns32k-sequent-dynix\n"); exit (0);
 
1407
+#endif
 
1408
+#endif
 
1409
+
 
1410
+#if defined (_SEQUENT_)
 
1411
+    struct utsname un;
 
1412
+
 
1413
+    uname(&un);
 
1414
+
 
1415
+    if (strncmp(un.version, "V2", 2) == 0) {
 
1416
+       printf ("i386-sequent-ptx2\n"); exit (0);
 
1417
+    }
 
1418
+    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
 
1419
+       printf ("i386-sequent-ptx1\n"); exit (0);
 
1420
+    }
 
1421
+    printf ("i386-sequent-ptx\n"); exit (0);
 
1422
+
 
1423
+#endif
 
1424
+
 
1425
+#if defined (vax)
 
1426
+# if !defined (ultrix)
 
1427
+#  include <sys/param.h>
 
1428
+#  if defined (BSD)
 
1429
+#   if BSD == 43
 
1430
+      printf ("vax-dec-bsd4.3\n"); exit (0);
 
1431
+#   else
 
1432
+#    if BSD == 199006
 
1433
+      printf ("vax-dec-bsd4.3reno\n"); exit (0);
 
1434
+#    else
 
1435
+      printf ("vax-dec-bsd\n"); exit (0);
 
1436
+#    endif
 
1437
+#   endif
 
1438
+#  else
 
1439
+    printf ("vax-dec-bsd\n"); exit (0);
 
1440
+#  endif
 
1441
+# else
 
1442
+    printf ("vax-dec-ultrix\n"); exit (0);
 
1443
+# endif
 
1444
+#endif
 
1445
+
 
1446
+#if defined (alliant) && defined (i860)
 
1447
+  printf ("i860-alliant-bsd\n"); exit (0);
 
1448
+#endif
 
1449
+
 
1450
+  exit (1);
 
1451
+}
 
1452
+EOF
 
1453
+
 
1454
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
 
1455
+       { echo "$SYSTEM_NAME"; exit; }
 
1456
+
 
1457
+# Apollos put the system type in the environment.
 
1458
+
 
1459
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
 
1460
+
 
1461
+# Convex versions that predate uname can use getsysinfo(1)
 
1462
+
 
1463
+if [ -x /usr/convex/getsysinfo ]
 
1464
+then
 
1465
+    case `getsysinfo -f cpu_type` in
 
1466
+    c1*)
 
1467
+       echo c1-convex-bsd
 
1468
+       exit ;;
 
1469
+    c2*)
 
1470
+       if getsysinfo -f scalar_acc
 
1471
+       then echo c32-convex-bsd
 
1472
+       else echo c2-convex-bsd
 
1473
+       fi
 
1474
+       exit ;;
 
1475
+    c34*)
 
1476
+       echo c34-convex-bsd
 
1477
+       exit ;;
 
1478
+    c38*)
 
1479
+       echo c38-convex-bsd
 
1480
+       exit ;;
 
1481
+    c4*)
 
1482
+       echo c4-convex-bsd
 
1483
+       exit ;;
 
1484
+    esac
 
1485
+fi
 
1486
+
 
1487
+cat >&2 <<EOF
 
1488
+$0: unable to guess system type
 
1489
+
 
1490
+This script, last modified $timestamp, has failed to recognize
 
1491
+the operating system you are using. It is advised that you
 
1492
+download the most up to date version of the config scripts from
 
1493
+
 
1494
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
 
1495
+and
 
1496
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
1497
+
 
1498
+If the version you run ($0) is already up to date, please
 
1499
+send the following data and any information you think might be
 
1500
+pertinent to <config-patches@gnu.org> in order to provide the needed
 
1501
+information to handle your system.
 
1502
+
 
1503
+config.guess timestamp = $timestamp
 
1504
+
 
1505
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1506
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1507
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1508
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1509
+
 
1510
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
 
1511
+/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
 
1512
+
 
1513
+hostinfo               = `(hostinfo) 2>/dev/null`
 
1514
+/bin/universe          = `(/bin/universe) 2>/dev/null`
 
1515
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
 
1516
+/bin/arch              = `(/bin/arch) 2>/dev/null`
 
1517
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
 
1518
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
 
1519
+
 
1520
+UNAME_MACHINE = ${UNAME_MACHINE}
 
1521
+UNAME_RELEASE = ${UNAME_RELEASE}
 
1522
+UNAME_SYSTEM  = ${UNAME_SYSTEM}
 
1523
+UNAME_VERSION = ${UNAME_VERSION}
 
1524
+EOF
 
1525
+
 
1526
+exit 1
 
1527
+
 
1528
+# Local variables:
 
1529
+# eval: (add-hook 'write-file-hooks 'time-stamp)
 
1530
+# time-stamp-start: "timestamp='"
 
1531
+# time-stamp-format: "%:y-%02m-%02d"
 
1532
+# time-stamp-end: "'"
 
1533
+# End:
 
1534
--- /dev/null
 
1535
+++ slurm-llnl-2.1.8/config.sub
 
1536
@@ -0,0 +1,1714 @@
 
1537
+#! /bin/sh
 
1538
+# Configuration validation subroutine script.
 
1539
+#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 
1540
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 
1541
+#   Free Software Foundation, Inc.
 
1542
+
 
1543
+timestamp='2010-01-22'
 
1544
+
 
1545
+# This file is (in principle) common to ALL GNU software.
 
1546
+# The presence of a machine in this file suggests that SOME GNU software
 
1547
+# can handle that machine.  It does not imply ALL GNU software can.
 
1548
+#
 
1549
+# This file is free software; you can redistribute it and/or modify
 
1550
+# it under the terms of the GNU General Public License as published by
 
1551
+# the Free Software Foundation; either version 2 of the License, or
 
1552
+# (at your option) any later version.
 
1553
+#
 
1554
+# This program is distributed in the hope that it will be useful,
 
1555
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1556
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1557
+# GNU General Public License for more details.
 
1558
+#
 
1559
+# You should have received a copy of the GNU General Public License
 
1560
+# along with this program; if not, write to the Free Software
 
1561
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
1562
+# 02110-1301, USA.
 
1563
+#
 
1564
+# As a special exception to the GNU General Public License, if you
 
1565
+# distribute this file as part of a program that contains a
 
1566
+# configuration script generated by Autoconf, you may include it under
 
1567
+# the same distribution terms that you use for the rest of that program.
 
1568
+
 
1569
+
 
1570
+# Please send patches to <config-patches@gnu.org>.  Submit a context
 
1571
+# diff and a properly formatted GNU ChangeLog entry.
 
1572
+#
 
1573
+# Configuration subroutine to validate and canonicalize a configuration type.
 
1574
+# Supply the specified configuration type as an argument.
 
1575
+# If it is invalid, we print an error message on stderr and exit with code 1.
 
1576
+# Otherwise, we print the canonical config type on stdout and succeed.
 
1577
+
 
1578
+# You can get the latest version of this script from:
 
1579
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
1580
+
 
1581
+# This file is supposed to be the same for all GNU packages
 
1582
+# and recognize all the CPU types, system types and aliases
 
1583
+# that are meaningful with *any* GNU software.
 
1584
+# Each package is responsible for reporting which valid configurations
 
1585
+# it does not support.  The user should be able to distinguish
 
1586
+# a failure to support a valid configuration from a meaningless
 
1587
+# configuration.
 
1588
+
 
1589
+# The goal of this file is to map all the various variations of a given
 
1590
+# machine specification into a single specification in the form:
 
1591
+#      CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
 
1592
+# or in some cases, the newer four-part form:
 
1593
+#      CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
 
1594
+# It is wrong to echo any other type of specification.
 
1595
+
 
1596
+me=`echo "$0" | sed -e 's,.*/,,'`
 
1597
+
 
1598
+usage="\
 
1599
+Usage: $0 [OPTION] CPU-MFR-OPSYS
 
1600
+       $0 [OPTION] ALIAS
 
1601
+
 
1602
+Canonicalize a configuration name.
 
1603
+
 
1604
+Operation modes:
 
1605
+  -h, --help         print this help, then exit
 
1606
+  -t, --time-stamp   print date of last modification, then exit
 
1607
+  -v, --version      print version number, then exit
 
1608
+
 
1609
+Report bugs and patches to <config-patches@gnu.org>."
 
1610
+
 
1611
+version="\
 
1612
+GNU config.sub ($timestamp)
 
1613
+
 
1614
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
1615
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
 
1616
+Software Foundation, Inc.
 
1617
+
 
1618
+This is free software; see the source for copying conditions.  There is NO
 
1619
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
1620
+
 
1621
+help="
 
1622
+Try \`$me --help' for more information."
 
1623
+
 
1624
+# Parse command line
 
1625
+while test $# -gt 0 ; do
 
1626
+  case $1 in
 
1627
+    --time-stamp | --time* | -t )
 
1628
+       echo "$timestamp" ; exit ;;
 
1629
+    --version | -v )
 
1630
+       echo "$version" ; exit ;;
 
1631
+    --help | --h* | -h )
 
1632
+       echo "$usage"; exit ;;
 
1633
+    -- )     # Stop option processing
 
1634
+       shift; break ;;
 
1635
+    - )        # Use stdin as input.
 
1636
+       break ;;
 
1637
+    -* )
 
1638
+       echo "$me: invalid option $1$help"
 
1639
+       exit 1 ;;
 
1640
+
 
1641
+    *local*)
 
1642
+       # First pass through any local machine types.
 
1643
+       echo $1
 
1644
+       exit ;;
 
1645
+
 
1646
+    * )
 
1647
+       break ;;
 
1648
+  esac
 
1649
+done
 
1650
+
 
1651
+case $# in
 
1652
+ 0) echo "$me: missing argument$help" >&2
 
1653
+    exit 1;;
 
1654
+ 1) ;;
 
1655
+ *) echo "$me: too many arguments$help" >&2
 
1656
+    exit 1;;
 
1657
+esac
 
1658
+
 
1659
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
 
1660
+# Here we must recognize all the valid KERNEL-OS combinations.
 
1661
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 
1662
+case $maybe_os in
 
1663
+  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
1664
+  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
1665
+  kopensolaris*-gnu* | \
 
1666
+  storm-chaos* | os2-emx* | rtmk-nova*)
 
1667
+    os=-$maybe_os
 
1668
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
 
1669
+    ;;
 
1670
+  *)
 
1671
+    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
 
1672
+    if [ $basic_machine != $1 ]
 
1673
+    then os=`echo $1 | sed 's/.*-/-/'`
 
1674
+    else os=; fi
 
1675
+    ;;
 
1676
+esac
 
1677
+
 
1678
+### Let's recognize common machines as not being operating systems so
 
1679
+### that things like config.sub decstation-3100 work.  We also
 
1680
+### recognize some manufacturers as not being operating systems, so we
 
1681
+### can provide default operating systems below.
 
1682
+case $os in
 
1683
+       -sun*os*)
 
1684
+               # Prevent following clause from handling this invalid input.
 
1685
+               ;;
 
1686
+       -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
 
1687
+       -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
 
1688
+       -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
 
1689
+       -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
 
1690
+       -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
 
1691
+       -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
 
1692
+       -apple | -axis | -knuth | -cray | -microblaze)
 
1693
+               os=
 
1694
+               basic_machine=$1
 
1695
+               ;;
 
1696
+        -bluegene*)
 
1697
+               os=-cnk
 
1698
+               ;;
 
1699
+       -sim | -cisco | -oki | -wec | -winbond)
 
1700
+               os=
 
1701
+               basic_machine=$1
 
1702
+               ;;
 
1703
+       -scout)
 
1704
+               ;;
 
1705
+       -wrs)
 
1706
+               os=-vxworks
 
1707
+               basic_machine=$1
 
1708
+               ;;
 
1709
+       -chorusos*)
 
1710
+               os=-chorusos
 
1711
+               basic_machine=$1
 
1712
+               ;;
 
1713
+       -chorusrdb)
 
1714
+               os=-chorusrdb
 
1715
+               basic_machine=$1
 
1716
+               ;;
 
1717
+       -hiux*)
 
1718
+               os=-hiuxwe2
 
1719
+               ;;
 
1720
+       -sco6)
 
1721
+               os=-sco5v6
 
1722
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1723
+               ;;
 
1724
+       -sco5)
 
1725
+               os=-sco3.2v5
 
1726
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1727
+               ;;
 
1728
+       -sco4)
 
1729
+               os=-sco3.2v4
 
1730
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1731
+               ;;
 
1732
+       -sco3.2.[4-9]*)
 
1733
+               os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
 
1734
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1735
+               ;;
 
1736
+       -sco3.2v[4-9]*)
 
1737
+               # Don't forget version if it is 3.2v4 or newer.
 
1738
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1739
+               ;;
 
1740
+       -sco5v6*)
 
1741
+               # Don't forget version if it is 3.2v4 or newer.
 
1742
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1743
+               ;;
 
1744
+       -sco*)
 
1745
+               os=-sco3.2v2
 
1746
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1747
+               ;;
 
1748
+       -udk*)
 
1749
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1750
+               ;;
 
1751
+       -isc)
 
1752
+               os=-isc2.2
 
1753
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1754
+               ;;
 
1755
+       -clix*)
 
1756
+               basic_machine=clipper-intergraph
 
1757
+               ;;
 
1758
+       -isc*)
 
1759
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
1760
+               ;;
 
1761
+       -lynx*)
 
1762
+               os=-lynxos
 
1763
+               ;;
 
1764
+       -ptx*)
 
1765
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
 
1766
+               ;;
 
1767
+       -windowsnt*)
 
1768
+               os=`echo $os | sed -e 's/windowsnt/winnt/'`
 
1769
+               ;;
 
1770
+       -psos*)
 
1771
+               os=-psos
 
1772
+               ;;
 
1773
+       -mint | -mint[0-9]*)
 
1774
+               basic_machine=m68k-atari
 
1775
+               os=-mint
 
1776
+               ;;
 
1777
+esac
 
1778
+
 
1779
+# Decode aliases for certain CPU-COMPANY combinations.
 
1780
+case $basic_machine in
 
1781
+       # Recognize the basic CPU types without company name.
 
1782
+       # Some are omitted here because they have special meanings below.
 
1783
+       1750a | 580 \
 
1784
+       | a29k \
 
1785
+       | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
 
1786
+       | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
1787
+       | am33_2.0 \
 
1788
+       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
1789
+       | bfin \
 
1790
+       | c4x | clipper \
 
1791
+       | d10v | d30v | dlx | dsp16xx \
 
1792
+       | fido | fr30 | frv \
 
1793
+       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
1794
+       | i370 | i860 | i960 | ia64 \
 
1795
+       | ip2k | iq2000 \
 
1796
+       | lm32 \
 
1797
+       | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
1798
+       | maxq | mb | microblaze | mcore | mep | metag \
 
1799
+       | mips | mipsbe | mipseb | mipsel | mipsle \
 
1800
+       | mips16 \
 
1801
+       | mips64 | mips64el \
 
1802
+       | mips64octeon | mips64octeonel \
 
1803
+       | mips64orion | mips64orionel \
 
1804
+       | mips64r5900 | mips64r5900el \
 
1805
+       | mips64vr | mips64vrel \
 
1806
+       | mips64vr4100 | mips64vr4100el \
 
1807
+       | mips64vr4300 | mips64vr4300el \
 
1808
+       | mips64vr5000 | mips64vr5000el \
 
1809
+       | mips64vr5900 | mips64vr5900el \
 
1810
+       | mipsisa32 | mipsisa32el \
 
1811
+       | mipsisa32r2 | mipsisa32r2el \
 
1812
+       | mipsisa64 | mipsisa64el \
 
1813
+       | mipsisa64r2 | mipsisa64r2el \
 
1814
+       | mipsisa64sb1 | mipsisa64sb1el \
 
1815
+       | mipsisa64sr71k | mipsisa64sr71kel \
 
1816
+       | mipstx39 | mipstx39el \
 
1817
+       | mn10200 | mn10300 \
 
1818
+       | moxie \
 
1819
+       | mt \
 
1820
+       | msp430 \
 
1821
+       | nios | nios2 \
 
1822
+       | ns16k | ns32k \
 
1823
+       | or32 \
 
1824
+       | pdp10 | pdp11 | pj | pjl \
 
1825
+       | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
1826
+       | pyramid \
 
1827
+       | rx \
 
1828
+       | score \
 
1829
+       | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
1830
+       | sh64 | sh64le \
 
1831
+       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
1832
+       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
1833
+       | spu | strongarm \
 
1834
+       | tahoe | thumb | tic4x | tic80 | tron \
 
1835
+       | ubicom32 \
 
1836
+       | v850 | v850e \
 
1837
+       | we32k \
 
1838
+       | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
1839
+       | z8k | z80)
 
1840
+               basic_machine=$basic_machine-unknown
 
1841
+               ;;
 
1842
+       m6811 | m68hc11 | m6812 | m68hc12 | picochip)
 
1843
+               # Motorola 68HC11/12.
 
1844
+               basic_machine=$basic_machine-unknown
 
1845
+               os=-none
 
1846
+               ;;
 
1847
+       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
 
1848
+               ;;
 
1849
+       ms1)
 
1850
+               basic_machine=mt-unknown
 
1851
+               ;;
 
1852
+
 
1853
+       # We use `pc' rather than `unknown'
 
1854
+       # because (1) that's what they normally are, and
 
1855
+       # (2) the word "unknown" tends to confuse beginning users.
 
1856
+       i*86 | x86_64)
 
1857
+         basic_machine=$basic_machine-pc
 
1858
+         ;;
 
1859
+       # Object if more than one company name word.
 
1860
+       *-*-*)
 
1861
+               echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
 
1862
+               exit 1
 
1863
+               ;;
 
1864
+       # Recognize the basic CPU types with company name.
 
1865
+       580-* \
 
1866
+       | a29k-* \
 
1867
+       | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
 
1868
+       | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 
1869
+       | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
1870
+       | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
 
1871
+       | avr-* | avr32-* \
 
1872
+       | bfin-* | bs2000-* \
 
1873
+       | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
1874
+       | clipper-* | craynv-* | cydra-* \
 
1875
+       | d10v-* | d30v-* | dlx-* \
 
1876
+       | elxsi-* \
 
1877
+       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
 
1878
+       | h8300-* | h8500-* \
 
1879
+       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
1880
+       | i*86-* | i860-* | i960-* | ia64-* \
 
1881
+       | ip2k-* | iq2000-* \
 
1882
+       | lm32-* \
 
1883
+       | m32c-* | m32r-* | m32rle-* \
 
1884
+       | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 
1885
+       | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
1886
+       | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
1887
+       | mips16-* \
 
1888
+       | mips64-* | mips64el-* \
 
1889
+       | mips64octeon-* | mips64octeonel-* \
 
1890
+       | mips64orion-* | mips64orionel-* \
 
1891
+       | mips64r5900-* | mips64r5900el-* \
 
1892
+       | mips64vr-* | mips64vrel-* \
 
1893
+       | mips64vr4100-* | mips64vr4100el-* \
 
1894
+       | mips64vr4300-* | mips64vr4300el-* \
 
1895
+       | mips64vr5000-* | mips64vr5000el-* \
 
1896
+       | mips64vr5900-* | mips64vr5900el-* \
 
1897
+       | mipsisa32-* | mipsisa32el-* \
 
1898
+       | mipsisa32r2-* | mipsisa32r2el-* \
 
1899
+       | mipsisa64-* | mipsisa64el-* \
 
1900
+       | mipsisa64r2-* | mipsisa64r2el-* \
 
1901
+       | mipsisa64sb1-* | mipsisa64sb1el-* \
 
1902
+       | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
1903
+       | mipstx39-* | mipstx39el-* \
 
1904
+       | mmix-* \
 
1905
+       | mt-* \
 
1906
+       | msp430-* \
 
1907
+       | nios-* | nios2-* \
 
1908
+       | none-* | np1-* | ns16k-* | ns32k-* \
 
1909
+       | orion-* \
 
1910
+       | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
 
1911
+       | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
1912
+       | pyramid-* \
 
1913
+       | romp-* | rs6000-* | rx-* \
 
1914
+       | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
1915
+       | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
1916
+       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
 
1917
+       | sparclite-* \
 
1918
+       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 
1919
+       | tahoe-* | thumb-* \
 
1920
+       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
1921
+       | tile-* | tilegx-* \
 
1922
+       | tron-* \
 
1923
+       | ubicom32-* \
 
1924
+       | v850-* | v850e-* | vax-* \
 
1925
+       | we32k-* \
 
1926
+       | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
1927
+       | xstormy16-* | xtensa*-* \
 
1928
+       | ymp-* \
 
1929
+       | z8k-* | z80-*)
 
1930
+               ;;
 
1931
+       # Recognize the basic CPU types without company name, with glob match.
 
1932
+       xtensa*)
 
1933
+               basic_machine=$basic_machine-unknown
 
1934
+               ;;
 
1935
+       # Recognize the various machine names and aliases which stand
 
1936
+       # for a CPU type and a company and sometimes even an OS.
 
1937
+       386bsd)
 
1938
+               basic_machine=i386-unknown
 
1939
+               os=-bsd
 
1940
+               ;;
 
1941
+       3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
 
1942
+               basic_machine=m68000-att
 
1943
+               ;;
 
1944
+       3b*)
 
1945
+               basic_machine=we32k-att
 
1946
+               ;;
 
1947
+       a29khif)
 
1948
+               basic_machine=a29k-amd
 
1949
+               os=-udi
 
1950
+               ;;
 
1951
+       abacus)
 
1952
+               basic_machine=abacus-unknown
 
1953
+               ;;
 
1954
+       adobe68k)
 
1955
+               basic_machine=m68010-adobe
 
1956
+               os=-scout
 
1957
+               ;;
 
1958
+       alliant | fx80)
 
1959
+               basic_machine=fx80-alliant
 
1960
+               ;;
 
1961
+       altos | altos3068)
 
1962
+               basic_machine=m68k-altos
 
1963
+               ;;
 
1964
+       am29k)
 
1965
+               basic_machine=a29k-none
 
1966
+               os=-bsd
 
1967
+               ;;
 
1968
+       amd64)
 
1969
+               basic_machine=x86_64-pc
 
1970
+               ;;
 
1971
+       amd64-*)
 
1972
+               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1973
+               ;;
 
1974
+       amdahl)
 
1975
+               basic_machine=580-amdahl
 
1976
+               os=-sysv
 
1977
+               ;;
 
1978
+       amiga | amiga-*)
 
1979
+               basic_machine=m68k-unknown
 
1980
+               ;;
 
1981
+       amigaos | amigados)
 
1982
+               basic_machine=m68k-unknown
 
1983
+               os=-amigaos
 
1984
+               ;;
 
1985
+       amigaunix | amix)
 
1986
+               basic_machine=m68k-unknown
 
1987
+               os=-sysv4
 
1988
+               ;;
 
1989
+       apollo68)
 
1990
+               basic_machine=m68k-apollo
 
1991
+               os=-sysv
 
1992
+               ;;
 
1993
+       apollo68bsd)
 
1994
+               basic_machine=m68k-apollo
 
1995
+               os=-bsd
 
1996
+               ;;
 
1997
+       aros)
 
1998
+               basic_machine=i386-pc
 
1999
+               os=-aros
 
2000
+               ;;
 
2001
+       aux)
 
2002
+               basic_machine=m68k-apple
 
2003
+               os=-aux
 
2004
+               ;;
 
2005
+       balance)
 
2006
+               basic_machine=ns32k-sequent
 
2007
+               os=-dynix
 
2008
+               ;;
 
2009
+       blackfin)
 
2010
+               basic_machine=bfin-unknown
 
2011
+               os=-linux
 
2012
+               ;;
 
2013
+       blackfin-*)
 
2014
+               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2015
+               os=-linux
 
2016
+               ;;
 
2017
+       bluegene*)
 
2018
+               basic_machine=powerpc-ibm
 
2019
+               os=-cnk
 
2020
+               ;;
 
2021
+       c90)
 
2022
+               basic_machine=c90-cray
 
2023
+               os=-unicos
 
2024
+               ;;
 
2025
+        cegcc)
 
2026
+               basic_machine=arm-unknown
 
2027
+               os=-cegcc
 
2028
+               ;;
 
2029
+       convex-c1)
 
2030
+               basic_machine=c1-convex
 
2031
+               os=-bsd
 
2032
+               ;;
 
2033
+       convex-c2)
 
2034
+               basic_machine=c2-convex
 
2035
+               os=-bsd
 
2036
+               ;;
 
2037
+       convex-c32)
 
2038
+               basic_machine=c32-convex
 
2039
+               os=-bsd
 
2040
+               ;;
 
2041
+       convex-c34)
 
2042
+               basic_machine=c34-convex
 
2043
+               os=-bsd
 
2044
+               ;;
 
2045
+       convex-c38)
 
2046
+               basic_machine=c38-convex
 
2047
+               os=-bsd
 
2048
+               ;;
 
2049
+       cray | j90)
 
2050
+               basic_machine=j90-cray
 
2051
+               os=-unicos
 
2052
+               ;;
 
2053
+       craynv)
 
2054
+               basic_machine=craynv-cray
 
2055
+               os=-unicosmp
 
2056
+               ;;
 
2057
+       cr16)
 
2058
+               basic_machine=cr16-unknown
 
2059
+               os=-elf
 
2060
+               ;;
 
2061
+       crds | unos)
 
2062
+               basic_machine=m68k-crds
 
2063
+               ;;
 
2064
+       crisv32 | crisv32-* | etraxfs*)
 
2065
+               basic_machine=crisv32-axis
 
2066
+               ;;
 
2067
+       cris | cris-* | etrax*)
 
2068
+               basic_machine=cris-axis
 
2069
+               ;;
 
2070
+       crx)
 
2071
+               basic_machine=crx-unknown
 
2072
+               os=-elf
 
2073
+               ;;
 
2074
+       da30 | da30-*)
 
2075
+               basic_machine=m68k-da30
 
2076
+               ;;
 
2077
+       decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
 
2078
+               basic_machine=mips-dec
 
2079
+               ;;
 
2080
+       decsystem10* | dec10*)
 
2081
+               basic_machine=pdp10-dec
 
2082
+               os=-tops10
 
2083
+               ;;
 
2084
+       decsystem20* | dec20*)
 
2085
+               basic_machine=pdp10-dec
 
2086
+               os=-tops20
 
2087
+               ;;
 
2088
+       delta | 3300 | motorola-3300 | motorola-delta \
 
2089
+             | 3300-motorola | delta-motorola)
 
2090
+               basic_machine=m68k-motorola
 
2091
+               ;;
 
2092
+       delta88)
 
2093
+               basic_machine=m88k-motorola
 
2094
+               os=-sysv3
 
2095
+               ;;
 
2096
+       dicos)
 
2097
+               basic_machine=i686-pc
 
2098
+               os=-dicos
 
2099
+               ;;
 
2100
+       djgpp)
 
2101
+               basic_machine=i586-pc
 
2102
+               os=-msdosdjgpp
 
2103
+               ;;
 
2104
+       dpx20 | dpx20-*)
 
2105
+               basic_machine=rs6000-bull
 
2106
+               os=-bosx
 
2107
+               ;;
 
2108
+       dpx2* | dpx2*-bull)
 
2109
+               basic_machine=m68k-bull
 
2110
+               os=-sysv3
 
2111
+               ;;
 
2112
+       ebmon29k)
 
2113
+               basic_machine=a29k-amd
 
2114
+               os=-ebmon
 
2115
+               ;;
 
2116
+       elxsi)
 
2117
+               basic_machine=elxsi-elxsi
 
2118
+               os=-bsd
 
2119
+               ;;
 
2120
+       encore | umax | mmax)
 
2121
+               basic_machine=ns32k-encore
 
2122
+               ;;
 
2123
+       es1800 | OSE68k | ose68k | ose | OSE)
 
2124
+               basic_machine=m68k-ericsson
 
2125
+               os=-ose
 
2126
+               ;;
 
2127
+       fx2800)
 
2128
+               basic_machine=i860-alliant
 
2129
+               ;;
 
2130
+       genix)
 
2131
+               basic_machine=ns32k-ns
 
2132
+               ;;
 
2133
+       gmicro)
 
2134
+               basic_machine=tron-gmicro
 
2135
+               os=-sysv
 
2136
+               ;;
 
2137
+       go32)
 
2138
+               basic_machine=i386-pc
 
2139
+               os=-go32
 
2140
+               ;;
 
2141
+       h3050r* | hiux*)
 
2142
+               basic_machine=hppa1.1-hitachi
 
2143
+               os=-hiuxwe2
 
2144
+               ;;
 
2145
+       h8300hms)
 
2146
+               basic_machine=h8300-hitachi
 
2147
+               os=-hms
 
2148
+               ;;
 
2149
+       h8300xray)
 
2150
+               basic_machine=h8300-hitachi
 
2151
+               os=-xray
 
2152
+               ;;
 
2153
+       h8500hms)
 
2154
+               basic_machine=h8500-hitachi
 
2155
+               os=-hms
 
2156
+               ;;
 
2157
+       harris)
 
2158
+               basic_machine=m88k-harris
 
2159
+               os=-sysv3
 
2160
+               ;;
 
2161
+       hp300-*)
 
2162
+               basic_machine=m68k-hp
 
2163
+               ;;
 
2164
+       hp300bsd)
 
2165
+               basic_machine=m68k-hp
 
2166
+               os=-bsd
 
2167
+               ;;
 
2168
+       hp300hpux)
 
2169
+               basic_machine=m68k-hp
 
2170
+               os=-hpux
 
2171
+               ;;
 
2172
+       hp3k9[0-9][0-9] | hp9[0-9][0-9])
 
2173
+               basic_machine=hppa1.0-hp
 
2174
+               ;;
 
2175
+       hp9k2[0-9][0-9] | hp9k31[0-9])
 
2176
+               basic_machine=m68000-hp
 
2177
+               ;;
 
2178
+       hp9k3[2-9][0-9])
 
2179
+               basic_machine=m68k-hp
 
2180
+               ;;
 
2181
+       hp9k6[0-9][0-9] | hp6[0-9][0-9])
 
2182
+               basic_machine=hppa1.0-hp
 
2183
+               ;;
 
2184
+       hp9k7[0-79][0-9] | hp7[0-79][0-9])
 
2185
+               basic_machine=hppa1.1-hp
 
2186
+               ;;
 
2187
+       hp9k78[0-9] | hp78[0-9])
 
2188
+               # FIXME: really hppa2.0-hp
 
2189
+               basic_machine=hppa1.1-hp
 
2190
+               ;;
 
2191
+       hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
 
2192
+               # FIXME: really hppa2.0-hp
 
2193
+               basic_machine=hppa1.1-hp
 
2194
+               ;;
 
2195
+       hp9k8[0-9][13679] | hp8[0-9][13679])
 
2196
+               basic_machine=hppa1.1-hp
 
2197
+               ;;
 
2198
+       hp9k8[0-9][0-9] | hp8[0-9][0-9])
 
2199
+               basic_machine=hppa1.0-hp
 
2200
+               ;;
 
2201
+       hppa-next)
 
2202
+               os=-nextstep3
 
2203
+               ;;
 
2204
+       hppaosf)
 
2205
+               basic_machine=hppa1.1-hp
 
2206
+               os=-osf
 
2207
+               ;;
 
2208
+       hppro)
 
2209
+               basic_machine=hppa1.1-hp
 
2210
+               os=-proelf
 
2211
+               ;;
 
2212
+       i370-ibm* | ibm*)
 
2213
+               basic_machine=i370-ibm
 
2214
+               ;;
 
2215
+# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
 
2216
+       i*86v32)
 
2217
+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
 
2218
+               os=-sysv32
 
2219
+               ;;
 
2220
+       i*86v4*)
 
2221
+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
 
2222
+               os=-sysv4
 
2223
+               ;;
 
2224
+       i*86v)
 
2225
+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
 
2226
+               os=-sysv
 
2227
+               ;;
 
2228
+       i*86sol2)
 
2229
+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
 
2230
+               os=-solaris2
 
2231
+               ;;
 
2232
+       i386mach)
 
2233
+               basic_machine=i386-mach
 
2234
+               os=-mach
 
2235
+               ;;
 
2236
+       i386-vsta | vsta)
 
2237
+               basic_machine=i386-unknown
 
2238
+               os=-vsta
 
2239
+               ;;
 
2240
+       iris | iris4d)
 
2241
+               basic_machine=mips-sgi
 
2242
+               case $os in
 
2243
+                   -irix*)
 
2244
+                       ;;
 
2245
+                   *)
 
2246
+                       os=-irix4
 
2247
+                       ;;
 
2248
+               esac
 
2249
+               ;;
 
2250
+       isi68 | isi)
 
2251
+               basic_machine=m68k-isi
 
2252
+               os=-sysv
 
2253
+               ;;
 
2254
+       m68knommu)
 
2255
+               basic_machine=m68k-unknown
 
2256
+               os=-linux
 
2257
+               ;;
 
2258
+       m68knommu-*)
 
2259
+               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2260
+               os=-linux
 
2261
+               ;;
 
2262
+       m88k-omron*)
 
2263
+               basic_machine=m88k-omron
 
2264
+               ;;
 
2265
+       magnum | m3230)
 
2266
+               basic_machine=mips-mips
 
2267
+               os=-sysv
 
2268
+               ;;
 
2269
+       merlin)
 
2270
+               basic_machine=ns32k-utek
 
2271
+               os=-sysv
 
2272
+               ;;
 
2273
+        microblaze)
 
2274
+               basic_machine=microblaze-xilinx
 
2275
+               ;;
 
2276
+       mingw32)
 
2277
+               basic_machine=i386-pc
 
2278
+               os=-mingw32
 
2279
+               ;;
 
2280
+       mingw32ce)
 
2281
+               basic_machine=arm-unknown
 
2282
+               os=-mingw32ce
 
2283
+               ;;
 
2284
+       miniframe)
 
2285
+               basic_machine=m68000-convergent
 
2286
+               ;;
 
2287
+       *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
 
2288
+               basic_machine=m68k-atari
 
2289
+               os=-mint
 
2290
+               ;;
 
2291
+       mips3*-*)
 
2292
+               basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
 
2293
+               ;;
 
2294
+       mips3*)
 
2295
+               basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
 
2296
+               ;;
 
2297
+       monitor)
 
2298
+               basic_machine=m68k-rom68k
 
2299
+               os=-coff
 
2300
+               ;;
 
2301
+       morphos)
 
2302
+               basic_machine=powerpc-unknown
 
2303
+               os=-morphos
 
2304
+               ;;
 
2305
+       msdos)
 
2306
+               basic_machine=i386-pc
 
2307
+               os=-msdos
 
2308
+               ;;
 
2309
+       ms1-*)
 
2310
+               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
2311
+               ;;
 
2312
+       mvs)
 
2313
+               basic_machine=i370-ibm
 
2314
+               os=-mvs
 
2315
+               ;;
 
2316
+       ncr3000)
 
2317
+               basic_machine=i486-ncr
 
2318
+               os=-sysv4
 
2319
+               ;;
 
2320
+       netbsd386)
 
2321
+               basic_machine=i386-unknown
 
2322
+               os=-netbsd
 
2323
+               ;;
 
2324
+       netwinder)
 
2325
+               basic_machine=armv4l-rebel
 
2326
+               os=-linux
 
2327
+               ;;
 
2328
+       news | news700 | news800 | news900)
 
2329
+               basic_machine=m68k-sony
 
2330
+               os=-newsos
 
2331
+               ;;
 
2332
+       news1000)
 
2333
+               basic_machine=m68030-sony
 
2334
+               os=-newsos
 
2335
+               ;;
 
2336
+       news-3600 | risc-news)
 
2337
+               basic_machine=mips-sony
 
2338
+               os=-newsos
 
2339
+               ;;
 
2340
+       necv70)
 
2341
+               basic_machine=v70-nec
 
2342
+               os=-sysv
 
2343
+               ;;
 
2344
+       next | m*-next )
 
2345
+               basic_machine=m68k-next
 
2346
+               case $os in
 
2347
+                   -nextstep* )
 
2348
+                       ;;
 
2349
+                   -ns2*)
 
2350
+                     os=-nextstep2
 
2351
+                       ;;
 
2352
+                   *)
 
2353
+                     os=-nextstep3
 
2354
+                       ;;
 
2355
+               esac
 
2356
+               ;;
 
2357
+       nh3000)
 
2358
+               basic_machine=m68k-harris
 
2359
+               os=-cxux
 
2360
+               ;;
 
2361
+       nh[45]000)
 
2362
+               basic_machine=m88k-harris
 
2363
+               os=-cxux
 
2364
+               ;;
 
2365
+       nindy960)
 
2366
+               basic_machine=i960-intel
 
2367
+               os=-nindy
 
2368
+               ;;
 
2369
+       mon960)
 
2370
+               basic_machine=i960-intel
 
2371
+               os=-mon960
 
2372
+               ;;
 
2373
+       nonstopux)
 
2374
+               basic_machine=mips-compaq
 
2375
+               os=-nonstopux
 
2376
+               ;;
 
2377
+       np1)
 
2378
+               basic_machine=np1-gould
 
2379
+               ;;
 
2380
+       nsr-tandem)
 
2381
+               basic_machine=nsr-tandem
 
2382
+               ;;
 
2383
+       op50n-* | op60c-*)
 
2384
+               basic_machine=hppa1.1-oki
 
2385
+               os=-proelf
 
2386
+               ;;
 
2387
+       openrisc | openrisc-*)
 
2388
+               basic_machine=or32-unknown
 
2389
+               ;;
 
2390
+       os400)
 
2391
+               basic_machine=powerpc-ibm
 
2392
+               os=-os400
 
2393
+               ;;
 
2394
+       OSE68000 | ose68000)
 
2395
+               basic_machine=m68000-ericsson
 
2396
+               os=-ose
 
2397
+               ;;
 
2398
+       os68k)
 
2399
+               basic_machine=m68k-none
 
2400
+               os=-os68k
 
2401
+               ;;
 
2402
+       pa-hitachi)
 
2403
+               basic_machine=hppa1.1-hitachi
 
2404
+               os=-hiuxwe2
 
2405
+               ;;
 
2406
+       paragon)
 
2407
+               basic_machine=i860-intel
 
2408
+               os=-osf
 
2409
+               ;;
 
2410
+       parisc)
 
2411
+               basic_machine=hppa-unknown
 
2412
+               os=-linux
 
2413
+               ;;
 
2414
+       parisc-*)
 
2415
+               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2416
+               os=-linux
 
2417
+               ;;
 
2418
+       pbd)
 
2419
+               basic_machine=sparc-tti
 
2420
+               ;;
 
2421
+       pbb)
 
2422
+               basic_machine=m68k-tti
 
2423
+               ;;
 
2424
+       pc532 | pc532-*)
 
2425
+               basic_machine=ns32k-pc532
 
2426
+               ;;
 
2427
+       pc98)
 
2428
+               basic_machine=i386-pc
 
2429
+               ;;
 
2430
+       pc98-*)
 
2431
+               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2432
+               ;;
 
2433
+       pentium | p5 | k5 | k6 | nexgen | viac3)
 
2434
+               basic_machine=i586-pc
 
2435
+               ;;
 
2436
+       pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
2437
+               basic_machine=i686-pc
 
2438
+               ;;
 
2439
+       pentiumii | pentium2 | pentiumiii | pentium3)
 
2440
+               basic_machine=i686-pc
 
2441
+               ;;
 
2442
+       pentium4)
 
2443
+               basic_machine=i786-pc
 
2444
+               ;;
 
2445
+       pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
 
2446
+               basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2447
+               ;;
 
2448
+       pentiumpro-* | p6-* | 6x86-* | athlon-*)
 
2449
+               basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2450
+               ;;
 
2451
+       pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
 
2452
+               basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2453
+               ;;
 
2454
+       pentium4-*)
 
2455
+               basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2456
+               ;;
 
2457
+       pn)
 
2458
+               basic_machine=pn-gould
 
2459
+               ;;
 
2460
+       power)  basic_machine=power-ibm
 
2461
+               ;;
 
2462
+       ppc)    basic_machine=powerpc-unknown
 
2463
+               ;;
 
2464
+       ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2465
+               ;;
 
2466
+       ppcle | powerpclittle | ppc-le | powerpc-little)
 
2467
+               basic_machine=powerpcle-unknown
 
2468
+               ;;
 
2469
+       ppcle-* | powerpclittle-*)
 
2470
+               basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2471
+               ;;
 
2472
+       ppc64)  basic_machine=powerpc64-unknown
 
2473
+               ;;
 
2474
+       ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2475
+               ;;
 
2476
+       ppc64le | powerpc64little | ppc64-le | powerpc64-little)
 
2477
+               basic_machine=powerpc64le-unknown
 
2478
+               ;;
 
2479
+       ppc64le-* | powerpc64little-*)
 
2480
+               basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
 
2481
+               ;;
 
2482
+       ps2)
 
2483
+               basic_machine=i386-ibm
 
2484
+               ;;
 
2485
+       pw32)
 
2486
+               basic_machine=i586-unknown
 
2487
+               os=-pw32
 
2488
+               ;;
 
2489
+       rdos)
 
2490
+               basic_machine=i386-pc
 
2491
+               os=-rdos
 
2492
+               ;;
 
2493
+       rom68k)
 
2494
+               basic_machine=m68k-rom68k
 
2495
+               os=-coff
 
2496
+               ;;
 
2497
+       rm[46]00)
 
2498
+               basic_machine=mips-siemens
 
2499
+               ;;
 
2500
+       rtpc | rtpc-*)
 
2501
+               basic_machine=romp-ibm
 
2502
+               ;;
 
2503
+       s390 | s390-*)
 
2504
+               basic_machine=s390-ibm
 
2505
+               ;;
 
2506
+       s390x | s390x-*)
 
2507
+               basic_machine=s390x-ibm
 
2508
+               ;;
 
2509
+       sa29200)
 
2510
+               basic_machine=a29k-amd
 
2511
+               os=-udi
 
2512
+               ;;
 
2513
+       sb1)
 
2514
+               basic_machine=mipsisa64sb1-unknown
 
2515
+               ;;
 
2516
+       sb1el)
 
2517
+               basic_machine=mipsisa64sb1el-unknown
 
2518
+               ;;
 
2519
+       sde)
 
2520
+               basic_machine=mipsisa32-sde
 
2521
+               os=-elf
 
2522
+               ;;
 
2523
+       sei)
 
2524
+               basic_machine=mips-sei
 
2525
+               os=-seiux
 
2526
+               ;;
 
2527
+       sequent)
 
2528
+               basic_machine=i386-sequent
 
2529
+               ;;
 
2530
+       sh)
 
2531
+               basic_machine=sh-hitachi
 
2532
+               os=-hms
 
2533
+               ;;
 
2534
+       sh5el)
 
2535
+               basic_machine=sh5le-unknown
 
2536
+               ;;
 
2537
+       sh64)
 
2538
+               basic_machine=sh64-unknown
 
2539
+               ;;
 
2540
+       sparclite-wrs | simso-wrs)
 
2541
+               basic_machine=sparclite-wrs
 
2542
+               os=-vxworks
 
2543
+               ;;
 
2544
+       sps7)
 
2545
+               basic_machine=m68k-bull
 
2546
+               os=-sysv2
 
2547
+               ;;
 
2548
+       spur)
 
2549
+               basic_machine=spur-unknown
 
2550
+               ;;
 
2551
+       st2000)
 
2552
+               basic_machine=m68k-tandem
 
2553
+               ;;
 
2554
+       stratus)
 
2555
+               basic_machine=i860-stratus
 
2556
+               os=-sysv4
 
2557
+               ;;
 
2558
+       sun2)
 
2559
+               basic_machine=m68000-sun
 
2560
+               ;;
 
2561
+       sun2os3)
 
2562
+               basic_machine=m68000-sun
 
2563
+               os=-sunos3
 
2564
+               ;;
 
2565
+       sun2os4)
 
2566
+               basic_machine=m68000-sun
 
2567
+               os=-sunos4
 
2568
+               ;;
 
2569
+       sun3os3)
 
2570
+               basic_machine=m68k-sun
 
2571
+               os=-sunos3
 
2572
+               ;;
 
2573
+       sun3os4)
 
2574
+               basic_machine=m68k-sun
 
2575
+               os=-sunos4
 
2576
+               ;;
 
2577
+       sun4os3)
 
2578
+               basic_machine=sparc-sun
 
2579
+               os=-sunos3
 
2580
+               ;;
 
2581
+       sun4os4)
 
2582
+               basic_machine=sparc-sun
 
2583
+               os=-sunos4
 
2584
+               ;;
 
2585
+       sun4sol2)
 
2586
+               basic_machine=sparc-sun
 
2587
+               os=-solaris2
 
2588
+               ;;
 
2589
+       sun3 | sun3-*)
 
2590
+               basic_machine=m68k-sun
 
2591
+               ;;
 
2592
+       sun4)
 
2593
+               basic_machine=sparc-sun
 
2594
+               ;;
 
2595
+       sun386 | sun386i | roadrunner)
 
2596
+               basic_machine=i386-sun
 
2597
+               ;;
 
2598
+       sv1)
 
2599
+               basic_machine=sv1-cray
 
2600
+               os=-unicos
 
2601
+               ;;
 
2602
+       symmetry)
 
2603
+               basic_machine=i386-sequent
 
2604
+               os=-dynix
 
2605
+               ;;
 
2606
+       t3e)
 
2607
+               basic_machine=alphaev5-cray
 
2608
+               os=-unicos
 
2609
+               ;;
 
2610
+       t90)
 
2611
+               basic_machine=t90-cray
 
2612
+               os=-unicos
 
2613
+               ;;
 
2614
+       tic54x | c54x*)
 
2615
+               basic_machine=tic54x-unknown
 
2616
+               os=-coff
 
2617
+               ;;
 
2618
+       tic55x | c55x*)
 
2619
+               basic_machine=tic55x-unknown
 
2620
+               os=-coff
 
2621
+               ;;
 
2622
+       tic6x | c6x*)
 
2623
+               basic_machine=tic6x-unknown
 
2624
+               os=-coff
 
2625
+               ;;
 
2626
+        # This must be matched before tile*.
 
2627
+        tilegx*)
 
2628
+               basic_machine=tilegx-unknown
 
2629
+               os=-linux-gnu
 
2630
+               ;;
 
2631
+       tile*)
 
2632
+               basic_machine=tile-unknown
 
2633
+               os=-linux-gnu
 
2634
+               ;;
 
2635
+       tx39)
 
2636
+               basic_machine=mipstx39-unknown
 
2637
+               ;;
 
2638
+       tx39el)
 
2639
+               basic_machine=mipstx39el-unknown
 
2640
+               ;;
 
2641
+       toad1)
 
2642
+               basic_machine=pdp10-xkl
 
2643
+               os=-tops20
 
2644
+               ;;
 
2645
+       tower | tower-32)
 
2646
+               basic_machine=m68k-ncr
 
2647
+               ;;
 
2648
+       tpf)
 
2649
+               basic_machine=s390x-ibm
 
2650
+               os=-tpf
 
2651
+               ;;
 
2652
+       udi29k)
 
2653
+               basic_machine=a29k-amd
 
2654
+               os=-udi
 
2655
+               ;;
 
2656
+       ultra3)
 
2657
+               basic_machine=a29k-nyu
 
2658
+               os=-sym1
 
2659
+               ;;
 
2660
+       v810 | necv810)
 
2661
+               basic_machine=v810-nec
 
2662
+               os=-none
 
2663
+               ;;
 
2664
+       vaxv)
 
2665
+               basic_machine=vax-dec
 
2666
+               os=-sysv
 
2667
+               ;;
 
2668
+       vms)
 
2669
+               basic_machine=vax-dec
 
2670
+               os=-vms
 
2671
+               ;;
 
2672
+       vpp*|vx|vx-*)
 
2673
+               basic_machine=f301-fujitsu
 
2674
+               ;;
 
2675
+       vxworks960)
 
2676
+               basic_machine=i960-wrs
 
2677
+               os=-vxworks
 
2678
+               ;;
 
2679
+       vxworks68)
 
2680
+               basic_machine=m68k-wrs
 
2681
+               os=-vxworks
 
2682
+               ;;
 
2683
+       vxworks29k)
 
2684
+               basic_machine=a29k-wrs
 
2685
+               os=-vxworks
 
2686
+               ;;
 
2687
+       w65*)
 
2688
+               basic_machine=w65-wdc
 
2689
+               os=-none
 
2690
+               ;;
 
2691
+       w89k-*)
 
2692
+               basic_machine=hppa1.1-winbond
 
2693
+               os=-proelf
 
2694
+               ;;
 
2695
+       xbox)
 
2696
+               basic_machine=i686-pc
 
2697
+               os=-mingw32
 
2698
+               ;;
 
2699
+       xps | xps100)
 
2700
+               basic_machine=xps100-honeywell
 
2701
+               ;;
 
2702
+       ymp)
 
2703
+               basic_machine=ymp-cray
 
2704
+               os=-unicos
 
2705
+               ;;
 
2706
+       z8k-*-coff)
 
2707
+               basic_machine=z8k-unknown
 
2708
+               os=-sim
 
2709
+               ;;
 
2710
+       z80-*-coff)
 
2711
+               basic_machine=z80-unknown
 
2712
+               os=-sim
 
2713
+               ;;
 
2714
+       none)
 
2715
+               basic_machine=none-none
 
2716
+               os=-none
 
2717
+               ;;
 
2718
+
 
2719
+# Here we handle the default manufacturer of certain CPU types.  It is in
 
2720
+# some cases the only manufacturer, in others, it is the most popular.
 
2721
+       w89k)
 
2722
+               basic_machine=hppa1.1-winbond
 
2723
+               ;;
 
2724
+       op50n)
 
2725
+               basic_machine=hppa1.1-oki
 
2726
+               ;;
 
2727
+       op60c)
 
2728
+               basic_machine=hppa1.1-oki
 
2729
+               ;;
 
2730
+       romp)
 
2731
+               basic_machine=romp-ibm
 
2732
+               ;;
 
2733
+       mmix)
 
2734
+               basic_machine=mmix-knuth
 
2735
+               ;;
 
2736
+       rs6000)
 
2737
+               basic_machine=rs6000-ibm
 
2738
+               ;;
 
2739
+       vax)
 
2740
+               basic_machine=vax-dec
 
2741
+               ;;
 
2742
+       pdp10)
 
2743
+               # there are many clones, so DEC is not a safe bet
 
2744
+               basic_machine=pdp10-unknown
 
2745
+               ;;
 
2746
+       pdp11)
 
2747
+               basic_machine=pdp11-dec
 
2748
+               ;;
 
2749
+       we32k)
 
2750
+               basic_machine=we32k-att
 
2751
+               ;;
 
2752
+       sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
 
2753
+               basic_machine=sh-unknown
 
2754
+               ;;
 
2755
+       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
 
2756
+               basic_machine=sparc-sun
 
2757
+               ;;
 
2758
+       cydra)
 
2759
+               basic_machine=cydra-cydrome
 
2760
+               ;;
 
2761
+       orion)
 
2762
+               basic_machine=orion-highlevel
 
2763
+               ;;
 
2764
+       orion105)
 
2765
+               basic_machine=clipper-highlevel
 
2766
+               ;;
 
2767
+       mac | mpw | mac-mpw)
 
2768
+               basic_machine=m68k-apple
 
2769
+               ;;
 
2770
+       pmac | pmac-mpw)
 
2771
+               basic_machine=powerpc-apple
 
2772
+               ;;
 
2773
+       *-unknown)
 
2774
+               # Make sure to match an already-canonicalized machine name.
 
2775
+               ;;
 
2776
+       *)
 
2777
+               echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
 
2778
+               exit 1
 
2779
+               ;;
 
2780
+esac
 
2781
+
 
2782
+# Here we canonicalize certain aliases for manufacturers.
 
2783
+case $basic_machine in
 
2784
+       *-digital*)
 
2785
+               basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
 
2786
+               ;;
 
2787
+       *-commodore*)
 
2788
+               basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
 
2789
+               ;;
 
2790
+       *)
 
2791
+               ;;
 
2792
+esac
 
2793
+
 
2794
+# Decode manufacturer-specific aliases for certain operating systems.
 
2795
+
 
2796
+if [ x"$os" != x"" ]
 
2797
+then
 
2798
+case $os in
 
2799
+        # First match some system type aliases
 
2800
+        # that might get confused with valid system types.
 
2801
+       # -solaris* is a basic system type, with this one exception.
 
2802
+        -auroraux)
 
2803
+               os=-auroraux
 
2804
+               ;;
 
2805
+       -solaris1 | -solaris1.*)
 
2806
+               os=`echo $os | sed -e 's|solaris1|sunos4|'`
 
2807
+               ;;
 
2808
+       -solaris)
 
2809
+               os=-solaris2
 
2810
+               ;;
 
2811
+       -svr4*)
 
2812
+               os=-sysv4
 
2813
+               ;;
 
2814
+       -unixware*)
 
2815
+               os=-sysv4.2uw
 
2816
+               ;;
 
2817
+       -gnu/linux*)
 
2818
+               os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
 
2819
+               ;;
 
2820
+       # First accept the basic system types.
 
2821
+       # The portable systems comes first.
 
2822
+       # Each alternative MUST END IN A *, to match a version number.
 
2823
+       # -sysv* is not here because it comes later, after sysvr4.
 
2824
+       -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
 
2825
+             | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
2826
+             | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
2827
+             | -sym* | -kopensolaris* \
 
2828
+             | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
 
2829
+             | -aos* | -aros* \
 
2830
+             | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
 
2831
+             | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
 
2832
+             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
2833
+             | -openbsd* | -solidbsd* \
 
2834
+             | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
2835
+             | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
2836
+             | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
 
2837
+             | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 
2838
+             | -chorusos* | -chorusrdb* | -cegcc* \
 
2839
+             | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
2840
+             | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
2841
+             | -uxpv* | -beos* | -mpeix* | -udk* \
 
2842
+             | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
 
2843
+             | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
 
2844
+             | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 
2845
+             | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 
2846
+             | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
2847
+             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
2848
+             | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
2849
+       # Remember, each alternative MUST END IN *, to match a version number.
 
2850
+               ;;
 
2851
+       -qnx*)
 
2852
+               case $basic_machine in
 
2853
+                   x86-* | i*86-*)
 
2854
+                       ;;
 
2855
+                   *)
 
2856
+                       os=-nto$os
 
2857
+                       ;;
 
2858
+               esac
 
2859
+               ;;
 
2860
+       -nto-qnx*)
 
2861
+               ;;
 
2862
+       -nto*)
 
2863
+               os=`echo $os | sed -e 's|nto|nto-qnx|'`
 
2864
+               ;;
 
2865
+       -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
 
2866
+             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
 
2867
+             | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
 
2868
+               ;;
 
2869
+       -mac*)
 
2870
+               os=`echo $os | sed -e 's|mac|macos|'`
 
2871
+               ;;
 
2872
+       -linux-dietlibc)
 
2873
+               os=-linux-dietlibc
 
2874
+               ;;
 
2875
+       -linux*)
 
2876
+               os=`echo $os | sed -e 's|linux|linux-gnu|'`
 
2877
+               ;;
 
2878
+       -sunos5*)
 
2879
+               os=`echo $os | sed -e 's|sunos5|solaris2|'`
 
2880
+               ;;
 
2881
+       -sunos6*)
 
2882
+               os=`echo $os | sed -e 's|sunos6|solaris3|'`
 
2883
+               ;;
 
2884
+       -opened*)
 
2885
+               os=-openedition
 
2886
+               ;;
 
2887
+        -os400*)
 
2888
+               os=-os400
 
2889
+               ;;
 
2890
+       -wince*)
 
2891
+               os=-wince
 
2892
+               ;;
 
2893
+       -osfrose*)
 
2894
+               os=-osfrose
 
2895
+               ;;
 
2896
+       -osf*)
 
2897
+               os=-osf
 
2898
+               ;;
 
2899
+       -utek*)
 
2900
+               os=-bsd
 
2901
+               ;;
 
2902
+       -dynix*)
 
2903
+               os=-bsd
 
2904
+               ;;
 
2905
+       -acis*)
 
2906
+               os=-aos
 
2907
+               ;;
 
2908
+       -atheos*)
 
2909
+               os=-atheos
 
2910
+               ;;
 
2911
+       -syllable*)
 
2912
+               os=-syllable
 
2913
+               ;;
 
2914
+       -386bsd)
 
2915
+               os=-bsd
 
2916
+               ;;
 
2917
+       -ctix* | -uts*)
 
2918
+               os=-sysv
 
2919
+               ;;
 
2920
+       -nova*)
 
2921
+               os=-rtmk-nova
 
2922
+               ;;
 
2923
+       -ns2 )
 
2924
+               os=-nextstep2
 
2925
+               ;;
 
2926
+       -nsk*)
 
2927
+               os=-nsk
 
2928
+               ;;
 
2929
+       # Preserve the version number of sinix5.
 
2930
+       -sinix5.*)
 
2931
+               os=`echo $os | sed -e 's|sinix|sysv|'`
 
2932
+               ;;
 
2933
+       -sinix*)
 
2934
+               os=-sysv4
 
2935
+               ;;
 
2936
+        -tpf*)
 
2937
+               os=-tpf
 
2938
+               ;;
 
2939
+       -triton*)
 
2940
+               os=-sysv3
 
2941
+               ;;
 
2942
+       -oss*)
 
2943
+               os=-sysv3
 
2944
+               ;;
 
2945
+       -svr4)
 
2946
+               os=-sysv4
 
2947
+               ;;
 
2948
+       -svr3)
 
2949
+               os=-sysv3
 
2950
+               ;;
 
2951
+       -sysvr4)
 
2952
+               os=-sysv4
 
2953
+               ;;
 
2954
+       # This must come after -sysvr4.
 
2955
+       -sysv*)
 
2956
+               ;;
 
2957
+       -ose*)
 
2958
+               os=-ose
 
2959
+               ;;
 
2960
+       -es1800*)
 
2961
+               os=-ose
 
2962
+               ;;
 
2963
+       -xenix)
 
2964
+               os=-xenix
 
2965
+               ;;
 
2966
+       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
2967
+               os=-mint
 
2968
+               ;;
 
2969
+       -aros*)
 
2970
+               os=-aros
 
2971
+               ;;
 
2972
+       -kaos*)
 
2973
+               os=-kaos
 
2974
+               ;;
 
2975
+       -zvmoe)
 
2976
+               os=-zvmoe
 
2977
+               ;;
 
2978
+       -dicos*)
 
2979
+               os=-dicos
 
2980
+               ;;
 
2981
+        -nacl*)
 
2982
+               ;;
 
2983
+       -none)
 
2984
+               ;;
 
2985
+       *)
 
2986
+               # Get rid of the `-' at the beginning of $os.
 
2987
+               os=`echo $os | sed 's/[^-]*-//'`
 
2988
+               echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
 
2989
+               exit 1
 
2990
+               ;;
 
2991
+esac
 
2992
+else
 
2993
+
 
2994
+# Here we handle the default operating systems that come with various machines.
 
2995
+# The value should be what the vendor currently ships out the door with their
 
2996
+# machine or put another way, the most popular os provided with the machine.
 
2997
+
 
2998
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
 
2999
+# "-sun"), then you have to tell the case statement up towards the top
 
3000
+# that MANUFACTURER isn't an operating system.  Otherwise, code above
 
3001
+# will signal an error saying that MANUFACTURER isn't an operating
 
3002
+# system, and we'll never get to this point.
 
3003
+
 
3004
+case $basic_machine in
 
3005
+        score-*)
 
3006
+               os=-elf
 
3007
+               ;;
 
3008
+        spu-*)
 
3009
+               os=-elf
 
3010
+               ;;
 
3011
+       *-acorn)
 
3012
+               os=-riscix1.2
 
3013
+               ;;
 
3014
+       arm*-rebel)
 
3015
+               os=-linux
 
3016
+               ;;
 
3017
+       arm*-semi)
 
3018
+               os=-aout
 
3019
+               ;;
 
3020
+        c4x-* | tic4x-*)
 
3021
+               os=-coff
 
3022
+               ;;
 
3023
+       # This must come before the *-dec entry.
 
3024
+       pdp10-*)
 
3025
+               os=-tops20
 
3026
+               ;;
 
3027
+       pdp11-*)
 
3028
+               os=-none
 
3029
+               ;;
 
3030
+       *-dec | vax-*)
 
3031
+               os=-ultrix4.2
 
3032
+               ;;
 
3033
+       m68*-apollo)
 
3034
+               os=-domain
 
3035
+               ;;
 
3036
+       i386-sun)
 
3037
+               os=-sunos4.0.2
 
3038
+               ;;
 
3039
+       m68000-sun)
 
3040
+               os=-sunos3
 
3041
+               # This also exists in the configure program, but was not the
 
3042
+               # default.
 
3043
+               # os=-sunos4
 
3044
+               ;;
 
3045
+       m68*-cisco)
 
3046
+               os=-aout
 
3047
+               ;;
 
3048
+        mep-*)
 
3049
+               os=-elf
 
3050
+               ;;
 
3051
+       mips*-cisco)
 
3052
+               os=-elf
 
3053
+               ;;
 
3054
+       mips*-*)
 
3055
+               os=-elf
 
3056
+               ;;
 
3057
+       or32-*)
 
3058
+               os=-coff
 
3059
+               ;;
 
3060
+       *-tti)  # must be before sparc entry or we get the wrong os.
 
3061
+               os=-sysv3
 
3062
+               ;;
 
3063
+       sparc-* | *-sun)
 
3064
+               os=-sunos4.1.1
 
3065
+               ;;
 
3066
+       *-be)
 
3067
+               os=-beos
 
3068
+               ;;
 
3069
+       *-haiku)
 
3070
+               os=-haiku
 
3071
+               ;;
 
3072
+       *-ibm)
 
3073
+               os=-aix
 
3074
+               ;;
 
3075
+       *-knuth)
 
3076
+               os=-mmixware
 
3077
+               ;;
 
3078
+       *-wec)
 
3079
+               os=-proelf
 
3080
+               ;;
 
3081
+       *-winbond)
 
3082
+               os=-proelf
 
3083
+               ;;
 
3084
+       *-oki)
 
3085
+               os=-proelf
 
3086
+               ;;
 
3087
+       *-hp)
 
3088
+               os=-hpux
 
3089
+               ;;
 
3090
+       *-hitachi)
 
3091
+               os=-hiux
 
3092
+               ;;
 
3093
+       i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
 
3094
+               os=-sysv
 
3095
+               ;;
 
3096
+       *-cbm)
 
3097
+               os=-amigaos
 
3098
+               ;;
 
3099
+       *-dg)
 
3100
+               os=-dgux
 
3101
+               ;;
 
3102
+       *-dolphin)
 
3103
+               os=-sysv3
 
3104
+               ;;
 
3105
+       m68k-ccur)
 
3106
+               os=-rtu
 
3107
+               ;;
 
3108
+       m88k-omron*)
 
3109
+               os=-luna
 
3110
+               ;;
 
3111
+       *-next )
 
3112
+               os=-nextstep
 
3113
+               ;;
 
3114
+       *-sequent)
 
3115
+               os=-ptx
 
3116
+               ;;
 
3117
+       *-crds)
 
3118
+               os=-unos
 
3119
+               ;;
 
3120
+       *-ns)
 
3121
+               os=-genix
 
3122
+               ;;
 
3123
+       i370-*)
 
3124
+               os=-mvs
 
3125
+               ;;
 
3126
+       *-next)
 
3127
+               os=-nextstep3
 
3128
+               ;;
 
3129
+       *-gould)
 
3130
+               os=-sysv
 
3131
+               ;;
 
3132
+       *-highlevel)
 
3133
+               os=-bsd
 
3134
+               ;;
 
3135
+       *-encore)
 
3136
+               os=-bsd
 
3137
+               ;;
 
3138
+       *-sgi)
 
3139
+               os=-irix
 
3140
+               ;;
 
3141
+       *-siemens)
 
3142
+               os=-sysv4
 
3143
+               ;;
 
3144
+       *-masscomp)
 
3145
+               os=-rtu
 
3146
+               ;;
 
3147
+       f30[01]-fujitsu | f700-fujitsu)
 
3148
+               os=-uxpv
 
3149
+               ;;
 
3150
+       *-rom68k)
 
3151
+               os=-coff
 
3152
+               ;;
 
3153
+       *-*bug)
 
3154
+               os=-coff
 
3155
+               ;;
 
3156
+       *-apple)
 
3157
+               os=-macos
 
3158
+               ;;
 
3159
+       *-atari*)
 
3160
+               os=-mint
 
3161
+               ;;
 
3162
+       *)
 
3163
+               os=-none
 
3164
+               ;;
 
3165
+esac
 
3166
+fi
 
3167
+
 
3168
+# Here we handle the case where we know the os, and the CPU type, but not the
 
3169
+# manufacturer.  We pick the logical manufacturer.
 
3170
+vendor=unknown
 
3171
+case $basic_machine in
 
3172
+       *-unknown)
 
3173
+               case $os in
 
3174
+                       -riscix*)
 
3175
+                               vendor=acorn
 
3176
+                               ;;
 
3177
+                       -sunos*)
 
3178
+                               vendor=sun
 
3179
+                               ;;
 
3180
+                       -cnk*|-aix*)
 
3181
+                               vendor=ibm
 
3182
+                               ;;
 
3183
+                       -beos*)
 
3184
+                               vendor=be
 
3185
+                               ;;
 
3186
+                       -hpux*)
 
3187
+                               vendor=hp
 
3188
+                               ;;
 
3189
+                       -mpeix*)
 
3190
+                               vendor=hp
 
3191
+                               ;;
 
3192
+                       -hiux*)
 
3193
+                               vendor=hitachi
 
3194
+                               ;;
 
3195
+                       -unos*)
 
3196
+                               vendor=crds
 
3197
+                               ;;
 
3198
+                       -dgux*)
 
3199
+                               vendor=dg
 
3200
+                               ;;
 
3201
+                       -luna*)
 
3202
+                               vendor=omron
 
3203
+                               ;;
 
3204
+                       -genix*)
 
3205
+                               vendor=ns
 
3206
+                               ;;
 
3207
+                       -mvs* | -opened*)
 
3208
+                               vendor=ibm
 
3209
+                               ;;
 
3210
+                       -os400*)
 
3211
+                               vendor=ibm
 
3212
+                               ;;
 
3213
+                       -ptx*)
 
3214
+                               vendor=sequent
 
3215
+                               ;;
 
3216
+                       -tpf*)
 
3217
+                               vendor=ibm
 
3218
+                               ;;
 
3219
+                       -vxsim* | -vxworks* | -windiss*)
 
3220
+                               vendor=wrs
 
3221
+                               ;;
 
3222
+                       -aux*)
 
3223
+                               vendor=apple
 
3224
+                               ;;
 
3225
+                       -hms*)
 
3226
+                               vendor=hitachi
 
3227
+                               ;;
 
3228
+                       -mpw* | -macos*)
 
3229
+                               vendor=apple
 
3230
+                               ;;
 
3231
+                       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
3232
+                               vendor=atari
 
3233
+                               ;;
 
3234
+                       -vos*)
 
3235
+                               vendor=stratus
 
3236
+                               ;;
 
3237
+               esac
 
3238
+               basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
 
3239
+               ;;
 
3240
+esac
 
3241
+
 
3242
+echo $basic_machine$os
 
3243
+exit
 
3244
+
 
3245
+# Local variables:
 
3246
+# eval: (add-hook 'write-file-hooks 'time-stamp)
 
3247
+# time-stamp-start: "timestamp='"
 
3248
+# time-stamp-format: "%:y-%02m-%02d"
 
3249
+# time-stamp-end: "'"
 
3250
+# End: