~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to debian/patches/099_config_guess_sub_update.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

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