~ubuntu-branches/ubuntu/utopic/moonshot-gss-eap/utopic-backports

« back to all changes in this revision

Viewing changes to debian/patches/debian-changes

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2014-09-16 08:38:39 UTC
  • Revision ID: package-import@ubuntu.com-20140916083839-8yhsewnuv7z828j2
Tags: 0.9.2-1
* New version
* This is ready for Debian unstable, although there are remaining issues
  before I'd want to see it in a release.  I'll hold a serious bug on
  the package until these are resolved; see debian/TODO.
* Upload to Debian, Closes: #761868

Show diffs side-by-side

added added

removed removed

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