~ubuntu-branches/ubuntu/maverick/vala/maverick

« back to all changes in this revision

Viewing changes to debian/patches/debian-changes-0.8.0-0ubuntu1

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-04-02 10:10:55 UTC
  • mfrom: (1.4.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100402101055-qbx3okzv0tnp3wpp
Tags: 0.8.0-0ubuntu1
* New upstream release:
  - Infer type arguments when calling generic methods.
  - Support `in' operator for arrays.
  - Add experimental support for regular expression literals.
  - Add experimental support for chained relational expressions.
  - Add va_list support.
  - Add clutter-gtk-0.10 bindings (Gordon Allott).
  - Add gdl-1.0 bindings (Nicolas Joseph).
  - Add gstreamer-app-0.10 bindings (Sebastian Dröge).
  - Add gstreamer-cdda-0.10 bindings (Sebastian Dröge).
  - Add gudev-1.0 bindings (Jim Nelson).
  - Add libgda-report-4.0 bindings (Shawn Ferris).
  - Add libgvc (graphviz) bindings (Martin Olsson).
  - Add purple bindings (Adrien Bustany).
  - Many bug fixes and binding updates.
* debian/patches/99_ltmain_as-needed.patch: refreshed

Show diffs side-by-side

added added

removed removed

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