~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject/config.guess

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-19 21:46:37 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120519214637-la8rbrford5kj6m3
Tags: 1.1.0-1
* New upstream release 
  - Fixes "FTBFS with libccrtp-dev/2.0.2 from experimental" (Closes: #663282)
* NEW Maintainer: Debian VoIP Team - Thanks Francois for your work.
  - (Closes: #665789: O: sflphone -- SIP and IAX2 compatible VoIP phone)
* Added Build-Depends: libdbus-c++-bin
* Add gcc47-fixes.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Attempt to guess a canonical system name.
3
 
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
 
#   Free Software Foundation, Inc.
 
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011, 2012 Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2001-09-04'
 
7
timestamp='2012-02-10'
7
8
 
8
9
# This file is free software; you can redistribute it and/or modify it
9
10
# under the terms of the GNU General Public License as published by
16
17
# General Public License for more details.
17
18
#
18
19
# You should have received a copy of the GNU General Public License
19
 
# along with this program; if not, write to the Free Software
20
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
# along with this program; if not, see <http://www.gnu.org/licenses/>.
21
21
#
22
22
# As a special exception to the GNU General Public License, if you
23
23
# distribute this file as part of a program that contains a
24
24
# configuration script generated by Autoconf, you may include it under
25
25
# the same distribution terms that you use for the rest of that program.
26
26
 
27
 
# Written by Per Bothner <bothner@cygnus.com>.
28
 
# Please send patches to <config-patches@gnu.org>.
 
27
 
 
28
# Originally written by Per Bothner.  Please send patches (context
 
29
# diff format) to <config-patches@gnu.org> and include a ChangeLog
 
30
# entry.
29
31
#
30
32
# This script attempts to guess a canonical system name similar to
31
33
# config.sub.  If it succeeds, it prints the system name on stdout, and
32
34
# exits with 0.  Otherwise, it exits with 1.
33
35
#
34
 
# The plan is that this can be called by configure scripts if you
35
 
# don't specify an explicit build system type.
 
36
# You can get the latest version of this script from:
 
37
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
36
38
 
37
39
me=`echo "$0" | sed -e 's,.*/,,'`
38
40
 
52
54
GNU config.guess ($timestamp)
53
55
 
54
56
Originally written by Per Bothner.
55
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 
57
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
58
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
56
59
Free Software Foundation, Inc.
57
60
 
58
61
This is free software; see the source for copying conditions.  There is NO
65
68
while test $# -gt 0 ; do
66
69
  case $1 in
67
70
    --time-stamp | --time* | -t )
68
 
       echo "$timestamp" ; exit 0 ;;
 
71
       echo "$timestamp" ; exit ;;
69
72
    --version | -v )
70
 
       echo "$version" ; exit 0 ;;
 
73
       echo "$version" ; exit ;;
71
74
    --help | --h* | -h )
72
 
       echo "$usage"; exit 0 ;;
 
75
       echo "$usage"; exit ;;
73
76
    -- )     # Stop option processing
74
77
       shift; break ;;
75
78
    - ) # Use stdin as input.
87
90
  exit 1
88
91
fi
89
92
 
90
 
 
91
 
dummy=dummy-$$
92
 
trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
93
 
 
94
 
# CC_FOR_BUILD -- compiler used by this script.
 
93
trap 'exit 1' 1 2 15
 
94
 
 
95
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
 
96
# compiler to aid in system detection is discouraged as it requires
 
97
# temporary files to be created and, as you can see below, it is a
 
98
# headache to deal with in a portable fashion.
 
99
 
95
100
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
96
101
# use `HOST_CC' if defined, but it is deprecated.
97
102
 
98
 
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
99
 
 ,,)    echo "int dummy(){}" > $dummy.c ;
100
 
        for c in cc gcc c89 ; do
101
 
          ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
102
 
          if test $? = 0 ; then
 
103
# Portable tmp directory creation inspired by the Autoconf team.
 
104
 
 
105
set_cc_for_build='
 
106
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
 
107
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
 
108
: ${TMPDIR=/tmp} ;
 
109
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
110
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 
111
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 
112
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
 
113
dummy=$tmp/dummy ;
 
114
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
 
115
case $CC_FOR_BUILD,$HOST_CC,$CC in
 
116
 ,,)    echo "int x;" > $dummy.c ;
 
117
        for c in cc gcc c89 c99 ; do
 
118
          if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
103
119
             CC_FOR_BUILD="$c"; break ;
104
120
          fi ;
105
121
        done ;
106
 
        rm -f $dummy.c $dummy.o $dummy.rel ;
107
122
        if test x"$CC_FOR_BUILD" = x ; then
108
123
          CC_FOR_BUILD=no_compiler_found ;
109
124
        fi
110
125
        ;;
111
126
 ,,*)   CC_FOR_BUILD=$CC ;;
112
127
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
113
 
esac'
 
128
esac ; set_cc_for_build= ;'
114
129
 
115
130
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
116
131
# (ghazi@noc.rutgers.edu 1994-08-24)
127
142
 
128
143
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
129
144
    *:NetBSD:*:*)
130
 
        # Netbsd (nbsd) targets should (where applicable) match one or
131
 
        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
 
145
        # NetBSD (nbsd) targets should (where applicable) match one or
 
146
        # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
132
147
        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
133
148
        # switched to ELF, *-*-netbsd* would select the old
134
149
        # object file format.  This provides both forward
135
150
        # compatibility and a consistent mechanism for selecting the
136
151
        # object file format.
137
 
        # Determine the machine/vendor (is the vendor relevant).
138
 
        case "${UNAME_MACHINE}" in
139
 
            amiga) machine=m68k-unknown ;;
140
 
            arm32) machine=arm-unknown ;;
141
 
            atari*) machine=m68k-atari ;;
142
 
            sun3*) machine=m68k-sun ;;
143
 
            mac68k) machine=m68k-apple ;;
144
 
            macppc) machine=powerpc-apple ;;
145
 
            hp3[0-9][05]) machine=m68k-hp ;;
146
 
            ibmrt|romp-ibm) machine=romp-ibm ;;
147
 
            *) machine=${UNAME_MACHINE}-unknown ;;
 
152
        #
 
153
        # Note: NetBSD doesn't particularly care about the vendor
 
154
        # portion of the name.  We always set it to "unknown".
 
155
        sysctl="sysctl -n hw.machine_arch"
 
156
        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
 
157
            /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
 
158
        case "${UNAME_MACHINE_ARCH}" in
 
159
            armeb) machine=armeb-unknown ;;
 
160
            arm*) machine=arm-unknown ;;
 
161
            sh3el) machine=shl-unknown ;;
 
162
            sh3eb) machine=sh-unknown ;;
 
163
            sh5el) machine=sh5le-unknown ;;
 
164
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
148
165
        esac
149
166
        # The Operating System including object format, if it has switched
150
167
        # to ELF recently, or will in the future.
151
 
        case "${UNAME_MACHINE}" in
152
 
            i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
 
168
        case "${UNAME_MACHINE_ARCH}" in
 
169
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
153
170
                eval $set_cc_for_build
154
171
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
155
 
                        | grep __ELF__ >/dev/null
 
172
                        | grep -q __ELF__
156
173
                then
157
174
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
158
175
                    # Return netbsd for either.  FIX?
162
179
                fi
163
180
                ;;
164
181
            *)
165
 
                os=netbsd
 
182
                os=netbsd
166
183
                ;;
167
184
        esac
168
185
        # The OS release
169
 
        release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
 
186
        # Debian GNU/NetBSD machines have a different userland, and
 
187
        # thus, need a distinct triplet. However, they do not need
 
188
        # kernel version information, so it can be replaced with a
 
189
        # suitable tag, in the style of linux-gnu.
 
190
        case "${UNAME_VERSION}" in
 
191
            Debian*)
 
192
                release='-gnu'
 
193
                ;;
 
194
            *)
 
195
                release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
 
196
                ;;
 
197
        esac
170
198
        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
171
199
        # contains redundant information, the shorter form:
172
200
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
173
201
        echo "${machine}-${os}${release}"
174
 
        exit 0 ;;
 
202
        exit ;;
 
203
    *:OpenBSD:*:*)
 
204
        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
 
205
        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
 
206
        exit ;;
 
207
    *:ekkoBSD:*:*)
 
208
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
 
209
        exit ;;
 
210
    *:SolidBSD:*:*)
 
211
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
212
        exit ;;
 
213
    macppc:MirBSD:*:*)
 
214
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
 
215
        exit ;;
 
216
    *:MirBSD:*:*)
 
217
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
 
218
        exit ;;
175
219
    alpha:OSF1:*:*)
176
 
        if test $UNAME_RELEASE = "V4.0"; then
 
220
        case $UNAME_RELEASE in
 
221
        *4.0)
177
222
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
178
 
        fi
 
223
                ;;
 
224
        *5.*)
 
225
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
226
                ;;
 
227
        esac
 
228
        # According to Compaq, /usr/sbin/psrinfo has been available on
 
229
        # OSF/1 and Tru64 systems produced since 1995.  I hope that
 
230
        # covers most systems running today.  This code pipes the CPU
 
231
        # types through head -n 1, so we only detect the type of CPU 0.
 
232
        ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
 
233
        case "$ALPHA_CPU_TYPE" in
 
234
            "EV4 (21064)")
 
235
                UNAME_MACHINE="alpha" ;;
 
236
            "EV4.5 (21064)")
 
237
                UNAME_MACHINE="alpha" ;;
 
238
            "LCA4 (21066/21068)")
 
239
                UNAME_MACHINE="alpha" ;;
 
240
            "EV5 (21164)")
 
241
                UNAME_MACHINE="alphaev5" ;;
 
242
            "EV5.6 (21164A)")
 
243
                UNAME_MACHINE="alphaev56" ;;
 
244
            "EV5.6 (21164PC)")
 
245
                UNAME_MACHINE="alphapca56" ;;
 
246
            "EV5.7 (21164PC)")
 
247
                UNAME_MACHINE="alphapca57" ;;
 
248
            "EV6 (21264)")
 
249
                UNAME_MACHINE="alphaev6" ;;
 
250
            "EV6.7 (21264A)")
 
251
                UNAME_MACHINE="alphaev67" ;;
 
252
            "EV6.8CB (21264C)")
 
253
                UNAME_MACHINE="alphaev68" ;;
 
254
            "EV6.8AL (21264B)")
 
255
                UNAME_MACHINE="alphaev68" ;;
 
256
            "EV6.8CX (21264D)")
 
257
                UNAME_MACHINE="alphaev68" ;;
 
258
            "EV6.9A (21264/EV69A)")
 
259
                UNAME_MACHINE="alphaev69" ;;
 
260
            "EV7 (21364)")
 
261
                UNAME_MACHINE="alphaev7" ;;
 
262
            "EV7.9 (21364A)")
 
263
                UNAME_MACHINE="alphaev79" ;;
 
264
        esac
 
265
        # A Pn.n version is a patched version.
179
266
        # A Vn.n version is a released version.
180
267
        # A Tn.n version is a released field test version.
181
268
        # A Xn.n version is an unreleased experimental baselevel.
182
269
        # 1.2 uses "1.2" for uname -r.
183
 
        cat <<EOF >$dummy.s
184
 
        .data
185
 
\$Lformat:
186
 
        .byte 37,100,45,37,120,10,0     # "%d-%x\n"
187
 
 
188
 
        .text
189
 
        .globl main
190
 
        .align 4
191
 
        .ent main
192
 
main:
193
 
        .frame \$30,16,\$26,0
194
 
        ldgp \$29,0(\$27)
195
 
        .prologue 1
196
 
        .long 0x47e03d80 # implver \$0
197
 
        lda \$2,-1
198
 
        .long 0x47e20c21 # amask \$2,\$1
199
 
        lda \$16,\$Lformat
200
 
        mov \$0,\$17
201
 
        not \$1,\$18
202
 
        jsr \$26,printf
203
 
        ldgp \$29,0(\$26)
204
 
        mov 0,\$16
205
 
        jsr \$26,exit
206
 
        .end main
207
 
EOF
208
 
        eval $set_cc_for_build
209
 
        $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
210
 
        if test "$?" = 0 ; then
211
 
                case `./$dummy` in
212
 
                        0-0)
213
 
                                UNAME_MACHINE="alpha"
214
 
                                ;;
215
 
                        1-0)
216
 
                                UNAME_MACHINE="alphaev5"
217
 
                                ;;
218
 
                        1-1)
219
 
                                UNAME_MACHINE="alphaev56"
220
 
                                ;;
221
 
                        1-101)
222
 
                                UNAME_MACHINE="alphapca56"
223
 
                                ;;
224
 
                        2-303)
225
 
                                UNAME_MACHINE="alphaev6"
226
 
                                ;;
227
 
                        2-307)
228
 
                                UNAME_MACHINE="alphaev67"
229
 
                                ;;
230
 
                        2-1307)
231
 
                                UNAME_MACHINE="alphaev68"
232
 
                                ;;
233
 
                esac
234
 
        fi
235
 
        rm -f $dummy.s $dummy
236
 
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
237
 
        exit 0 ;;
 
270
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
 
271
        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
 
272
        exitcode=$?
 
273
        trap '' 0
 
274
        exit $exitcode ;;
238
275
    Alpha\ *:Windows_NT*:*)
239
276
        # How do we know it's Interix rather than the generic POSIX subsystem?
240
277
        # Should we change UNAME_MACHINE based on the output of uname instead
241
278
        # of the specific Alpha model?
242
279
        echo alpha-pc-interix
243
 
        exit 0 ;;
 
280
        exit ;;
244
281
    21064:Windows_NT:50:3)
245
282
        echo alpha-dec-winnt3.5
246
 
        exit 0 ;;
 
283
        exit ;;
247
284
    Amiga*:UNIX_System_V:4.0:*)
248
285
        echo m68k-unknown-sysv4
249
 
        exit 0;;
250
 
    amiga:OpenBSD:*:*)
251
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
252
 
        exit 0 ;;
 
286
        exit ;;
253
287
    *:[Aa]miga[Oo][Ss]:*:*)
254
288
        echo ${UNAME_MACHINE}-unknown-amigaos
255
 
        exit 0 ;;
256
 
    arc64:OpenBSD:*:*)
257
 
        echo mips64el-unknown-openbsd${UNAME_RELEASE}
258
 
        exit 0 ;;
259
 
    arc:OpenBSD:*:*)
260
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
261
 
        exit 0 ;;
262
 
    hkmips:OpenBSD:*:*)
263
 
        echo mips-unknown-openbsd${UNAME_RELEASE}
264
 
        exit 0 ;;
265
 
    pmax:OpenBSD:*:*)
266
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
267
 
        exit 0 ;;
268
 
    sgi:OpenBSD:*:*)
269
 
        echo mips-unknown-openbsd${UNAME_RELEASE}
270
 
        exit 0 ;;
271
 
    wgrisc:OpenBSD:*:*)
272
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
273
 
        exit 0 ;;
 
289
        exit ;;
 
290
    *:[Mm]orph[Oo][Ss]:*:*)
 
291
        echo ${UNAME_MACHINE}-unknown-morphos
 
292
        exit ;;
274
293
    *:OS/390:*:*)
275
294
        echo i370-ibm-openedition
276
 
        exit 0 ;;
 
295
        exit ;;
 
296
    *:z/VM:*:*)
 
297
        echo s390-ibm-zvmoe
 
298
        exit ;;
 
299
    *:OS400:*:*)
 
300
        echo powerpc-ibm-os400
 
301
        exit ;;
277
302
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
278
303
        echo arm-acorn-riscix${UNAME_RELEASE}
279
 
        exit 0;;
 
304
        exit ;;
 
305
    arm:riscos:*:*|arm:RISCOS:*:*)
 
306
        echo arm-unknown-riscos
 
307
        exit ;;
280
308
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
281
309
        echo hppa1.1-hitachi-hiuxmpp
282
 
        exit 0;;
 
310
        exit ;;
283
311
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
284
312
        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
285
313
        if test "`(/bin/universe) 2>/dev/null`" = att ; then
287
315
        else
288
316
                echo pyramid-pyramid-bsd
289
317
        fi
290
 
        exit 0 ;;
 
318
        exit ;;
291
319
    NILE*:*:*:dcosx)
292
320
        echo pyramid-pyramid-svr4
293
 
        exit 0 ;;
 
321
        exit ;;
 
322
    DRS?6000:unix:4.0:6*)
 
323
        echo sparc-icl-nx6
 
324
        exit ;;
 
325
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
 
326
        case `/usr/bin/uname -p` in
 
327
            sparc) echo sparc-icl-nx7; exit ;;
 
328
        esac ;;
 
329
    s390x:SunOS:*:*)
 
330
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
331
        exit ;;
294
332
    sun4H:SunOS:5.*:*)
295
333
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
296
 
        exit 0 ;;
 
334
        exit ;;
297
335
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
298
336
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
299
 
        exit 0 ;;
300
 
    i86pc:SunOS:5.*:*)
301
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
302
 
        exit 0 ;;
 
337
        exit ;;
 
338
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
 
339
        echo i386-pc-auroraux${UNAME_RELEASE}
 
340
        exit ;;
 
341
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
342
        eval $set_cc_for_build
 
343
        SUN_ARCH="i386"
 
344
        # If there is a compiler, see if it is configured for 64-bit objects.
 
345
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
346
        # This test works for both compilers.
 
347
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
348
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
349
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
350
                grep IS_64BIT_ARCH >/dev/null
 
351
            then
 
352
                SUN_ARCH="x86_64"
 
353
            fi
 
354
        fi
 
355
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
356
        exit ;;
303
357
    sun4*:SunOS:6*:*)
304
358
        # According to config.sub, this is the proper way to canonicalize
305
359
        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
306
360
        # it's likely to be more like Solaris than SunOS4.
307
361
        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
308
 
        exit 0 ;;
 
362
        exit ;;
309
363
    sun4*:SunOS:*:*)
310
364
        case "`/usr/bin/arch -k`" in
311
365
            Series*|S4*)
314
368
        esac
315
369
        # Japanese Language versions have a version number like `4.1.3-JL'.
316
370
        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
317
 
        exit 0 ;;
 
371
        exit ;;
318
372
    sun3*:SunOS:*:*)
319
373
        echo m68k-sun-sunos${UNAME_RELEASE}
320
 
        exit 0 ;;
 
374
        exit ;;
321
375
    sun*:*:4.2BSD:*)
322
 
        UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
 
376
        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
323
377
        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
324
378
        case "`/bin/arch`" in
325
379
            sun3)
329
383
                echo sparc-sun-sunos${UNAME_RELEASE}
330
384
                ;;
331
385
        esac
332
 
        exit 0 ;;
 
386
        exit ;;
333
387
    aushp:SunOS:*:*)
334
388
        echo sparc-auspex-sunos${UNAME_RELEASE}
335
 
        exit 0 ;;
336
 
    sparc*:NetBSD:*)
337
 
        echo `uname -p`-unknown-netbsd${UNAME_RELEASE}
338
 
        exit 0 ;;
339
 
    atari*:OpenBSD:*:*)
340
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
341
 
        exit 0 ;;
 
389
        exit ;;
342
390
    # The situation for MiNT is a little confusing.  The machine name
343
391
    # can be virtually everything (everything which is not
344
392
    # "atarist" or "atariste" at least should have a processor
348
396
    # MiNT.  But MiNT is downward compatible to TOS, so this should
349
397
    # be no problem.
350
398
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
351
 
        echo m68k-atari-mint${UNAME_RELEASE}
352
 
        exit 0 ;;
 
399
        echo m68k-atari-mint${UNAME_RELEASE}
 
400
        exit ;;
353
401
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
354
402
        echo m68k-atari-mint${UNAME_RELEASE}
355
 
        exit 0 ;;
 
403
        exit ;;
356
404
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
357
 
        echo m68k-atari-mint${UNAME_RELEASE}
358
 
        exit 0 ;;
 
405
        echo m68k-atari-mint${UNAME_RELEASE}
 
406
        exit ;;
359
407
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
360
 
        echo m68k-milan-mint${UNAME_RELEASE}
361
 
        exit 0 ;;
 
408
        echo m68k-milan-mint${UNAME_RELEASE}
 
409
        exit ;;
362
410
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
363
 
        echo m68k-hades-mint${UNAME_RELEASE}
364
 
        exit 0 ;;
 
411
        echo m68k-hades-mint${UNAME_RELEASE}
 
412
        exit ;;
365
413
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
366
 
        echo m68k-unknown-mint${UNAME_RELEASE}
367
 
        exit 0 ;;
368
 
    sun3*:OpenBSD:*:*)
369
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
370
 
        exit 0 ;;
371
 
    mac68k:OpenBSD:*:*)
372
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
373
 
        exit 0 ;;
374
 
    mvme68k:OpenBSD:*:*)
375
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
376
 
        exit 0 ;;
377
 
    mvme88k:OpenBSD:*:*)
378
 
        echo m88k-unknown-openbsd${UNAME_RELEASE}
379
 
        exit 0 ;;
 
414
        echo m68k-unknown-mint${UNAME_RELEASE}
 
415
        exit ;;
 
416
    m68k:machten:*:*)
 
417
        echo m68k-apple-machten${UNAME_RELEASE}
 
418
        exit ;;
380
419
    powerpc:machten:*:*)
381
420
        echo powerpc-apple-machten${UNAME_RELEASE}
382
 
        exit 0 ;;
 
421
        exit ;;
383
422
    RISC*:Mach:*:*)
384
423
        echo mips-dec-mach_bsd4.3
385
 
        exit 0 ;;
 
424
        exit ;;
386
425
    RISC*:ULTRIX:*:*)
387
426
        echo mips-dec-ultrix${UNAME_RELEASE}
388
 
        exit 0 ;;
 
427
        exit ;;
389
428
    VAX*:ULTRIX*:*:*)
390
429
        echo vax-dec-ultrix${UNAME_RELEASE}
391
 
        exit 0 ;;
 
430
        exit ;;
392
431
    2020:CLIX:*:* | 2430:CLIX:*:*)
393
432
        echo clipper-intergraph-clix${UNAME_RELEASE}
394
 
        exit 0 ;;
 
433
        exit ;;
395
434
    mips:*:*:UMIPS | mips:*:*:RISCos)
396
435
        eval $set_cc_for_build
397
436
        sed 's/^        //' << EOF >$dummy.c
415
454
          exit (-1);
416
455
        }
417
456
EOF
418
 
        $CC_FOR_BUILD $dummy.c -o $dummy \
419
 
          && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
420
 
          && rm -f $dummy.c $dummy && exit 0
421
 
        rm -f $dummy.c $dummy
 
457
        $CC_FOR_BUILD -o $dummy $dummy.c &&
 
458
          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
 
459
          SYSTEM_NAME=`$dummy $dummyarg` &&
 
460
            { echo "$SYSTEM_NAME"; exit; }
422
461
        echo mips-mips-riscos${UNAME_RELEASE}
423
 
        exit 0 ;;
 
462
        exit ;;
424
463
    Motorola:PowerMAX_OS:*:*)
425
464
        echo powerpc-motorola-powermax
426
 
        exit 0 ;;
 
465
        exit ;;
 
466
    Motorola:*:4.3:PL8-*)
 
467
        echo powerpc-harris-powermax
 
468
        exit ;;
 
469
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
 
470
        echo powerpc-harris-powermax
 
471
        exit ;;
427
472
    Night_Hawk:Power_UNIX:*:*)
428
473
        echo powerpc-harris-powerunix
429
 
        exit 0 ;;
 
474
        exit ;;
430
475
    m88k:CX/UX:7*:*)
431
476
        echo m88k-harris-cxux7
432
 
        exit 0 ;;
 
477
        exit ;;
433
478
    m88k:*:4*:R4*)
434
479
        echo m88k-motorola-sysv4
435
 
        exit 0 ;;
 
480
        exit ;;
436
481
    m88k:*:3*:R3*)
437
482
        echo m88k-motorola-sysv3
438
 
        exit 0 ;;
 
483
        exit ;;
439
484
    AViiON:dgux:*:*)
440
 
        # DG/UX returns AViiON for all architectures
441
 
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
485
        # DG/UX returns AViiON for all architectures
 
486
        UNAME_PROCESSOR=`/usr/bin/uname -p`
442
487
        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
443
488
        then
444
489
            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
451
496
        else
452
497
            echo i586-dg-dgux${UNAME_RELEASE}
453
498
        fi
454
 
        exit 0 ;;
 
499
        exit ;;
455
500
    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
456
501
        echo m88k-dolphin-sysv3
457
 
        exit 0 ;;
 
502
        exit ;;
458
503
    M88*:*:R3*:*)
459
504
        # Delta 88k system running SVR3
460
505
        echo m88k-motorola-sysv3
461
 
        exit 0 ;;
 
506
        exit ;;
462
507
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
463
508
        echo m88k-tektronix-sysv3
464
 
        exit 0 ;;
 
509
        exit ;;
465
510
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
466
511
        echo m68k-tektronix-bsd
467
 
        exit 0 ;;
 
512
        exit ;;
468
513
    *:IRIX*:*:*)
469
514
        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
470
 
        exit 0 ;;
 
515
        exit ;;
471
516
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
472
 
        echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
473
 
        exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
 
517
        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
 
518
        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
474
519
    i*86:AIX:*:*)
475
520
        echo i386-ibm-aix
476
 
        exit 0 ;;
 
521
        exit ;;
477
522
    ia64:AIX:*:*)
478
523
        if [ -x /usr/bin/oslevel ] ; then
479
524
                IBM_REV=`/usr/bin/oslevel`
481
526
                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
482
527
        fi
483
528
        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
484
 
        exit 0 ;;
 
529
        exit ;;
485
530
    *:AIX:2:3)
486
531
        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
487
532
                eval $set_cc_for_build
496
541
                        exit(0);
497
542
                        }
498
543
EOF
499
 
                $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
500
 
                rm -f $dummy.c $dummy
501
 
                echo rs6000-ibm-aix3.2.5
 
544
                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
 
545
                then
 
546
                        echo "$SYSTEM_NAME"
 
547
                else
 
548
                        echo rs6000-ibm-aix3.2.5
 
549
                fi
502
550
        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
503
551
                echo rs6000-ibm-aix3.2.4
504
552
        else
505
553
                echo rs6000-ibm-aix3.2
506
554
        fi
507
 
        exit 0 ;;
508
 
    *:AIX:*:[45])
509
 
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
 
555
        exit ;;
 
556
    *:AIX:*:[4567])
 
557
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
510
558
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
511
559
                IBM_ARCH=rs6000
512
560
        else
518
566
                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
519
567
        fi
520
568
        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
521
 
        exit 0 ;;
 
569
        exit ;;
522
570
    *:AIX:*:*)
523
571
        echo rs6000-ibm-aix
524
 
        exit 0 ;;
 
572
        exit ;;
525
573
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
526
574
        echo romp-ibm-bsd4.4
527
 
        exit 0 ;;
 
575
        exit ;;
528
576
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
529
577
        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
530
 
        exit 0 ;;                           # report: romp-ibm BSD 4.3
 
578
        exit ;;                             # report: romp-ibm BSD 4.3
531
579
    *:BOSX:*:*)
532
580
        echo rs6000-bull-bosx
533
 
        exit 0 ;;
 
581
        exit ;;
534
582
    DPX/2?00:B.O.S.:*:*)
535
583
        echo m68k-bull-sysv3
536
 
        exit 0 ;;
 
584
        exit ;;
537
585
    9000/[34]??:4.3bsd:1.*:*)
538
586
        echo m68k-hp-bsd
539
 
        exit 0 ;;
 
587
        exit ;;
540
588
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
541
589
        echo m68k-hp-bsd4.4
542
 
        exit 0 ;;
 
590
        exit ;;
543
591
    9000/[34678]??:HP-UX:*:*)
544
592
        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
545
593
        case "${UNAME_MACHINE}" in
546
594
            9000/31? )            HP_ARCH=m68000 ;;
547
595
            9000/[34]?? )         HP_ARCH=m68k ;;
548
596
            9000/[678][0-9][0-9])
549
 
              case "${HPUX_REV}" in
550
 
                11.[0-9][0-9])
551
 
                  if [ -x /usr/bin/getconf ]; then
552
 
                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
553
 
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
554
 
                    case "${sc_cpu_version}" in
555
 
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
556
 
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
557
 
                      532)                      # CPU_PA_RISC2_0
558
 
                        case "${sc_kernel_bits}" in
559
 
                          32) HP_ARCH="hppa2.0n" ;;
560
 
                          64) HP_ARCH="hppa2.0w" ;;
561
 
                        esac ;;
562
 
                    esac
563
 
                  fi ;;
564
 
              esac
565
 
              if [ "${HP_ARCH}" = "" ]; then
566
 
              eval $set_cc_for_build
567
 
              sed 's/^              //' << EOF >$dummy.c
568
 
 
569
 
              #define _HPUX_SOURCE
570
 
              #include <stdlib.h>
571
 
              #include <unistd.h>
572
 
 
573
 
              int main ()
574
 
              {
575
 
              #if defined(_SC_KERNEL_BITS)
576
 
                  long bits = sysconf(_SC_KERNEL_BITS);
577
 
              #endif
578
 
                  long cpu  = sysconf (_SC_CPU_VERSION);
579
 
 
580
 
                  switch (cpu)
581
 
                {
582
 
                case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
583
 
                case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
584
 
                case CPU_PA_RISC2_0:
585
 
              #if defined(_SC_KERNEL_BITS)
586
 
                    switch (bits)
587
 
                        {
588
 
                        case 64: puts ("hppa2.0w"); break;
589
 
                        case 32: puts ("hppa2.0n"); break;
590
 
                        default: puts ("hppa2.0"); break;
591
 
                        } break;
592
 
              #else  /* !defined(_SC_KERNEL_BITS) */
593
 
                    puts ("hppa2.0"); break;
594
 
              #endif
595
 
                default: puts ("hppa1.0"); break;
596
 
                }
597
 
                  exit (0);
598
 
              }
 
597
                if [ -x /usr/bin/getconf ]; then
 
598
                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
 
599
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
 
600
                    case "${sc_cpu_version}" in
 
601
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
 
602
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
 
603
                      532)                      # CPU_PA_RISC2_0
 
604
                        case "${sc_kernel_bits}" in
 
605
                          32) HP_ARCH="hppa2.0n" ;;
 
606
                          64) HP_ARCH="hppa2.0w" ;;
 
607
                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
 
608
                        esac ;;
 
609
                    esac
 
610
                fi
 
611
                if [ "${HP_ARCH}" = "" ]; then
 
612
                    eval $set_cc_for_build
 
613
                    sed 's/^            //' << EOF >$dummy.c
 
614
 
 
615
                #define _HPUX_SOURCE
 
616
                #include <stdlib.h>
 
617
                #include <unistd.h>
 
618
 
 
619
                int main ()
 
620
                {
 
621
                #if defined(_SC_KERNEL_BITS)
 
622
                    long bits = sysconf(_SC_KERNEL_BITS);
 
623
                #endif
 
624
                    long cpu  = sysconf (_SC_CPU_VERSION);
 
625
 
 
626
                    switch (cpu)
 
627
                        {
 
628
                        case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
 
629
                        case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
 
630
                        case CPU_PA_RISC2_0:
 
631
                #if defined(_SC_KERNEL_BITS)
 
632
                            switch (bits)
 
633
                                {
 
634
                                case 64: puts ("hppa2.0w"); break;
 
635
                                case 32: puts ("hppa2.0n"); break;
 
636
                                default: puts ("hppa2.0"); break;
 
637
                                } break;
 
638
                #else  /* !defined(_SC_KERNEL_BITS) */
 
639
                            puts ("hppa2.0"); break;
 
640
                #endif
 
641
                        default: puts ("hppa1.0"); break;
 
642
                        }
 
643
                    exit (0);
 
644
                }
599
645
EOF
600
 
            (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
601
 
            if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
602
 
            rm -f $dummy.c $dummy
603
 
        fi ;;
 
646
                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
 
647
                    test -z "$HP_ARCH" && HP_ARCH=hppa
 
648
                fi ;;
604
649
        esac
 
650
        if [ ${HP_ARCH} = "hppa2.0w" ]
 
651
        then
 
652
            eval $set_cc_for_build
 
653
 
 
654
            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
 
655
            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
 
656
            # generating 64-bit code.  GNU and HP use different nomenclature:
 
657
            #
 
658
            # $ CC_FOR_BUILD=cc ./config.guess
 
659
            # => hppa2.0w-hp-hpux11.23
 
660
            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
 
661
            # => hppa64-hp-hpux11.23
 
662
 
 
663
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
 
664
                grep -q __LP64__
 
665
            then
 
666
                HP_ARCH="hppa2.0w"
 
667
            else
 
668
                HP_ARCH="hppa64"
 
669
            fi
 
670
        fi
605
671
        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
606
 
        exit 0 ;;
 
672
        exit ;;
607
673
    ia64:HP-UX:*:*)
608
674
        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
609
675
        echo ia64-hp-hpux${HPUX_REV}
610
 
        exit 0 ;;
 
676
        exit ;;
611
677
    3050*:HI-UX:*:*)
612
678
        eval $set_cc_for_build
613
679
        sed 's/^        //' << EOF >$dummy.c
635
701
          exit (0);
636
702
        }
637
703
EOF
638
 
        $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
639
 
        rm -f $dummy.c $dummy
 
704
        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
 
705
                { echo "$SYSTEM_NAME"; exit; }
640
706
        echo unknown-hitachi-hiuxwe2
641
 
        exit 0 ;;
 
707
        exit ;;
642
708
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
643
709
        echo hppa1.1-hp-bsd
644
 
        exit 0 ;;
 
710
        exit ;;
645
711
    9000/8??:4.3bsd:*:*)
646
712
        echo hppa1.0-hp-bsd
647
 
        exit 0 ;;
 
713
        exit ;;
648
714
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
649
715
        echo hppa1.0-hp-mpeix
650
 
        exit 0 ;;
 
716
        exit ;;
651
717
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
652
718
        echo hppa1.1-hp-osf
653
 
        exit 0 ;;
 
719
        exit ;;
654
720
    hp8??:OSF1:*:*)
655
721
        echo hppa1.0-hp-osf
656
 
        exit 0 ;;
 
722
        exit ;;
657
723
    i*86:OSF1:*:*)
658
724
        if [ -x /usr/sbin/sysversion ] ; then
659
725
            echo ${UNAME_MACHINE}-unknown-osf1mk
660
726
        else
661
727
            echo ${UNAME_MACHINE}-unknown-osf1
662
728
        fi
663
 
        exit 0 ;;
 
729
        exit ;;
664
730
    parisc*:Lites*:*:*)
665
731
        echo hppa1.1-hp-lites
666
 
        exit 0 ;;
667
 
    hppa*:OpenBSD:*:*)
668
 
        echo hppa-unknown-openbsd
669
 
        exit 0 ;;
 
732
        exit ;;
670
733
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
671
734
        echo c1-convex-bsd
672
 
        exit 0 ;;
 
735
        exit ;;
673
736
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
674
737
        if getsysinfo -f scalar_acc
675
738
        then echo c32-convex-bsd
676
739
        else echo c2-convex-bsd
677
740
        fi
678
 
        exit 0 ;;
 
741
        exit ;;
679
742
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
680
743
        echo c34-convex-bsd
681
 
        exit 0 ;;
 
744
        exit ;;
682
745
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
683
746
        echo c38-convex-bsd
684
 
        exit 0 ;;
 
747
        exit ;;
685
748
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
686
749
        echo c4-convex-bsd
687
 
        exit 0 ;;
688
 
    CRAY*X-MP:*:*:*)
689
 
        echo xmp-cray-unicos
690
 
        exit 0 ;;
 
750
        exit ;;
691
751
    CRAY*Y-MP:*:*:*)
692
752
        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
693
 
        exit 0 ;;
 
753
        exit ;;
694
754
    CRAY*[A-Z]90:*:*:*)
695
755
        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
696
756
        | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
697
757
              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
698
758
              -e 's/\.[^.]*$/.X/'
699
 
        exit 0 ;;
 
759
        exit ;;
700
760
    CRAY*TS:*:*:*)
701
761
        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
702
 
        exit 0 ;;
703
 
    CRAY*T3D:*:*:*)
704
 
        echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
705
 
        exit 0 ;;
 
762
        exit ;;
706
763
    CRAY*T3E:*:*:*)
707
764
        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
708
 
        exit 0 ;;
 
765
        exit ;;
709
766
    CRAY*SV1:*:*:*)
710
767
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
711
 
        exit 0 ;;
712
 
    CRAY-2:*:*:*)
713
 
        echo cray2-cray-unicos
714
 
        exit 0 ;;
 
768
        exit ;;
 
769
    *:UNICOS/mp:*:*)
 
770
        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
771
        exit ;;
715
772
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
716
773
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
717
 
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
718
 
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
719
 
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
720
 
        exit 0 ;;
721
 
    hp300:OpenBSD:*:*)
722
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
723
 
        exit 0 ;;
 
774
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
775
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
 
776
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
777
        exit ;;
 
778
    5000:UNIX_System_V:4.*:*)
 
779
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
780
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
781
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
782
        exit ;;
724
783
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
725
784
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
726
 
        exit 0 ;;
 
785
        exit ;;
727
786
    sparc*:BSD/OS:*:*)
728
787
        echo sparc-unknown-bsdi${UNAME_RELEASE}
729
 
        exit 0 ;;
 
788
        exit ;;
730
789
    *:BSD/OS:*:*)
731
790
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
732
 
        exit 0 ;;
 
791
        exit ;;
733
792
    *:FreeBSD:*:*)
734
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
735
 
        exit 0 ;;
736
 
    *:OpenBSD:*:*)
737
 
        echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
738
 
        exit 0 ;;
 
793
        UNAME_PROCESSOR=`/usr/bin/uname -p`
 
794
        case ${UNAME_PROCESSOR} in
 
795
            amd64)
 
796
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
797
            *)
 
798
                echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
799
        esac
 
800
        exit ;;
739
801
    i*:CYGWIN*:*)
740
802
        echo ${UNAME_MACHINE}-pc-cygwin
741
 
        exit 0 ;;
742
 
    i*:MINGW*:*)
 
803
        exit ;;
 
804
    *:MINGW*:*)
743
805
        echo ${UNAME_MACHINE}-pc-mingw32
744
 
        exit 0 ;;
 
806
        exit ;;
 
807
    i*:MSYS*:*)
 
808
        echo ${UNAME_MACHINE}-pc-msys
 
809
        exit ;;
 
810
    i*:windows32*:*)
 
811
        # uname -m includes "-pc" on this system.
 
812
        echo ${UNAME_MACHINE}-mingw32
 
813
        exit ;;
745
814
    i*:PW*:*)
746
815
        echo ${UNAME_MACHINE}-pc-pw32
747
 
        exit 0 ;;
 
816
        exit ;;
 
817
    *:Interix*:*)
 
818
        case ${UNAME_MACHINE} in
 
819
            x86)
 
820
                echo i586-pc-interix${UNAME_RELEASE}
 
821
                exit ;;
 
822
            authenticamd | genuineintel | EM64T)
 
823
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
824
                exit ;;
 
825
            IA64)
 
826
                echo ia64-unknown-interix${UNAME_RELEASE}
 
827
                exit ;;
 
828
        esac ;;
 
829
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
 
830
        echo i${UNAME_MACHINE}-pc-mks
 
831
        exit ;;
 
832
    8664:Windows_NT:*)
 
833
        echo x86_64-pc-mks
 
834
        exit ;;
748
835
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
749
836
        # How do we know it's Interix rather than the generic POSIX subsystem?
750
837
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
751
838
        # UNAME_MACHINE based on the output of uname instead of i386?
752
 
        echo i386-pc-interix
753
 
        exit 0 ;;
 
839
        echo i586-pc-interix
 
840
        exit ;;
754
841
    i*:UWIN*:*)
755
842
        echo ${UNAME_MACHINE}-pc-uwin
756
 
        exit 0 ;;
 
843
        exit ;;
 
844
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
 
845
        echo x86_64-unknown-cygwin
 
846
        exit ;;
757
847
    p*:CYGWIN*:*)
758
848
        echo powerpcle-unknown-cygwin
759
 
        exit 0 ;;
 
849
        exit ;;
760
850
    prep*:SunOS:5.*:*)
761
851
        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
762
 
        exit 0 ;;
 
852
        exit ;;
763
853
    *:GNU:*:*)
 
854
        # the GNU system
764
855
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
765
 
        exit 0 ;;
 
856
        exit ;;
 
857
    *:GNU/*:*:*)
 
858
        # other systems with GNU libc and userland
 
859
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
 
860
        exit ;;
766
861
    i*86:Minix:*:*)
767
862
        echo ${UNAME_MACHINE}-pc-minix
768
 
        exit 0 ;;
769
 
    arm*:Linux:*:*)
770
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
771
 
        exit 0 ;;
772
 
    ia64:Linux:*:*)
773
 
        echo ${UNAME_MACHINE}-unknown-linux
774
 
        exit 0 ;;
775
 
    m68*:Linux:*:*)
776
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
777
 
        exit 0 ;;
778
 
    mips:Linux:*:*)
779
 
        case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
780
 
          big)    echo mips-unknown-linux-gnu && exit 0 ;;
781
 
          little) echo mipsel-unknown-linux-gnu && exit 0 ;;
782
 
        esac
783
 
        ;;
784
 
    ppc:Linux:*:*)
785
 
        echo powerpc-unknown-linux-gnu
786
 
        exit 0 ;;
787
 
    ppc64:Linux:*:*)
788
 
        echo powerpc64-unknown-linux-gnu
789
 
        exit 0 ;;
 
863
        exit ;;
 
864
    aarch64:Linux:*:*)
 
865
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
866
        exit ;;
 
867
    aarch64_be:Linux:*:*)
 
868
        UNAME_MACHINE=aarch64_be
 
869
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
870
        exit ;;
790
871
    alpha:Linux:*:*)
791
872
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
792
873
          EV5)   UNAME_MACHINE=alphaev5 ;;
796
877
          EV6)   UNAME_MACHINE=alphaev6 ;;
797
878
          EV67)  UNAME_MACHINE=alphaev67 ;;
798
879
          EV68*) UNAME_MACHINE=alphaev68 ;;
799
 
        esac
800
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
 
880
        esac
 
881
        objdump --private-headers /bin/sh | grep -q ld.so.1
801
882
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
802
883
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
803
 
        exit 0 ;;
 
884
        exit ;;
 
885
    arm*:Linux:*:*)
 
886
        eval $set_cc_for_build
 
887
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
888
            | grep -q __ARM_EABI__
 
889
        then
 
890
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
891
        else
 
892
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
 
893
                | grep -q __ARM_PCS_VFP
 
894
            then
 
895
                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
896
            else
 
897
                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
 
898
            fi
 
899
        fi
 
900
        exit ;;
 
901
    avr32*:Linux:*:*)
 
902
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
903
        exit ;;
 
904
    cris:Linux:*:*)
 
905
        echo ${UNAME_MACHINE}-axis-linux-gnu
 
906
        exit ;;
 
907
    crisv32:Linux:*:*)
 
908
        echo ${UNAME_MACHINE}-axis-linux-gnu
 
909
        exit ;;
 
910
    frv:Linux:*:*)
 
911
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
912
        exit ;;
 
913
    hexagon:Linux:*:*)
 
914
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
915
        exit ;;
 
916
    i*86:Linux:*:*)
 
917
        LIBC=gnu
 
918
        eval $set_cc_for_build
 
919
        sed 's/^        //' << EOF >$dummy.c
 
920
        #ifdef __dietlibc__
 
921
        LIBC=dietlibc
 
922
        #endif
 
923
EOF
 
924
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
925
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
 
926
        exit ;;
 
927
    ia64:Linux:*:*)
 
928
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
929
        exit ;;
 
930
    m32r*:Linux:*:*)
 
931
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
932
        exit ;;
 
933
    m68*:Linux:*:*)
 
934
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
935
        exit ;;
 
936
    mips:Linux:*:* | mips64:Linux:*:*)
 
937
        eval $set_cc_for_build
 
938
        sed 's/^        //' << EOF >$dummy.c
 
939
        #undef CPU
 
940
        #undef ${UNAME_MACHINE}
 
941
        #undef ${UNAME_MACHINE}el
 
942
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
943
        CPU=${UNAME_MACHINE}el
 
944
        #else
 
945
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
946
        CPU=${UNAME_MACHINE}
 
947
        #else
 
948
        CPU=
 
949
        #endif
 
950
        #endif
 
951
EOF
 
952
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
 
953
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
954
        ;;
 
955
    or32:Linux:*:*)
 
956
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
957
        exit ;;
 
958
    padre:Linux:*:*)
 
959
        echo sparc-unknown-linux-gnu
 
960
        exit ;;
 
961
    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
962
        echo hppa64-unknown-linux-gnu
 
963
        exit ;;
804
964
    parisc:Linux:*:* | hppa:Linux:*:*)
805
965
        # Look for CPU level
806
966
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
808
968
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
809
969
          *)    echo hppa-unknown-linux-gnu ;;
810
970
        esac
811
 
        exit 0 ;;
812
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
813
 
        echo hppa64-unknown-linux-gnu
814
 
        exit 0 ;;
 
971
        exit ;;
 
972
    ppc64:Linux:*:*)
 
973
        echo powerpc64-unknown-linux-gnu
 
974
        exit ;;
 
975
    ppc:Linux:*:*)
 
976
        echo powerpc-unknown-linux-gnu
 
977
        exit ;;
815
978
    s390:Linux:*:* | s390x:Linux:*:*)
816
979
        echo ${UNAME_MACHINE}-ibm-linux
817
 
        exit 0 ;;
 
980
        exit ;;
 
981
    sh64*:Linux:*:*)
 
982
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
983
        exit ;;
818
984
    sh*:Linux:*:*)
819
985
        echo ${UNAME_MACHINE}-unknown-linux-gnu
820
 
        exit 0 ;;
 
986
        exit ;;
821
987
    sparc:Linux:*:* | sparc64:Linux:*:*)
822
988
        echo ${UNAME_MACHINE}-unknown-linux-gnu
823
 
        exit 0 ;;
 
989
        exit ;;
 
990
    tile*:Linux:*:*)
 
991
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
992
        exit ;;
 
993
    vax:Linux:*:*)
 
994
        echo ${UNAME_MACHINE}-dec-linux-gnu
 
995
        exit ;;
824
996
    x86_64:Linux:*:*)
825
 
        echo x86_64-unknown-linux-gnu
826
 
        exit 0 ;;
827
 
    i*86:Linux:*:*)
828
 
        # The BFD linker knows what the default object file format is, so
829
 
        # first see if it will tell us. cd to the root directory to prevent
830
 
        # problems with other programs or directories called `ld' in the path.
831
 
        ld_supported_targets=`cd /; ld --help 2>&1 \
832
 
                         | sed -ne '/supported targets:/!d
833
 
                                    s/[         ][      ]*/ /g
834
 
                                    s/.*supported targets: *//
835
 
                                    s/ .*//
836
 
                                    p'`
837
 
        case "$ld_supported_targets" in
838
 
          elf32-i386)
839
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
840
 
                ;;
841
 
          a.out-i386-linux)
842
 
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
843
 
                exit 0 ;;               
844
 
          coff-i386)
845
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
846
 
                exit 0 ;;
847
 
          "")
848
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
849
 
                # one that does not give us useful --help.
850
 
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
851
 
                exit 0 ;;
852
 
        esac
853
 
        # Determine whether the default compiler is a.out or elf
854
 
        eval $set_cc_for_build
855
 
        cat >$dummy.c <<EOF
856
 
#include <features.h>
857
 
#ifdef __cplusplus
858
 
#include <stdio.h>  /* for printf() prototype */
859
 
        int main (int argc, char *argv[]) {
860
 
#else
861
 
        int main (argc, argv) int argc; char *argv[]; {
862
 
#endif
863
 
#ifdef __ELF__
864
 
# ifdef __GLIBC__
865
 
#  if __GLIBC__ >= 2
866
 
    printf ("%s-pc-linux-gnu\n", argv[1]);
867
 
#  else
868
 
    printf ("%s-pc-linux-gnulibc1\n", argv[1]);
869
 
#  endif
870
 
# else
871
 
   printf ("%s-pc-linux-gnulibc1\n", argv[1]);
872
 
# endif
873
 
#else
874
 
  printf ("%s-pc-linux-gnuaout\n", argv[1]);
875
 
#endif
876
 
  return 0;
877
 
}
878
 
EOF
879
 
        $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
880
 
        rm -f $dummy.c $dummy
881
 
        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
882
 
        ;;
 
997
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
998
        exit ;;
 
999
    xtensa*:Linux:*:*)
 
1000
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
1001
        exit ;;
883
1002
    i*86:DYNIX/ptx:4*:*)
884
1003
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
885
1004
        # earlier versions are messed up and put the nodename in both
886
1005
        # sysname and nodename.
887
1006
        echo i386-sequent-sysv4
888
 
        exit 0 ;;
 
1007
        exit ;;
889
1008
    i*86:UNIX_SV:4.2MP:2.*)
890
 
        # Unixware is an offshoot of SVR4, but it has its own version
891
 
        # number series starting with 2...
892
 
        # I am not positive that other SVR4 systems won't match this,
 
1009
        # Unixware is an offshoot of SVR4, but it has its own version
 
1010
        # number series starting with 2...
 
1011
        # I am not positive that other SVR4 systems won't match this,
893
1012
        # I just have to hope.  -- rms.
894
 
        # Use sysv4.2uw... so that sysv4* matches it.
 
1013
        # Use sysv4.2uw... so that sysv4* matches it.
895
1014
        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
896
 
        exit 0 ;;
 
1015
        exit ;;
 
1016
    i*86:OS/2:*:*)
 
1017
        # If we were able to find `uname', then EMX Unix compatibility
 
1018
        # is probably installed.
 
1019
        echo ${UNAME_MACHINE}-pc-os2-emx
 
1020
        exit ;;
 
1021
    i*86:XTS-300:*:STOP)
 
1022
        echo ${UNAME_MACHINE}-unknown-stop
 
1023
        exit ;;
 
1024
    i*86:atheos:*:*)
 
1025
        echo ${UNAME_MACHINE}-unknown-atheos
 
1026
        exit ;;
 
1027
    i*86:syllable:*:*)
 
1028
        echo ${UNAME_MACHINE}-pc-syllable
 
1029
        exit ;;
 
1030
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
 
1031
        echo i386-unknown-lynxos${UNAME_RELEASE}
 
1032
        exit ;;
 
1033
    i*86:*DOS:*:*)
 
1034
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
 
1035
        exit ;;
897
1036
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
898
1037
        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
899
1038
        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
901
1040
        else
902
1041
                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
903
1042
        fi
904
 
        exit 0 ;;
905
 
    i*86:*:5:[78]*)
 
1043
        exit ;;
 
1044
    i*86:*:5:[678]*)
 
1045
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
906
1046
        case `/bin/uname -X | grep "^Machine"` in
907
1047
            *486*)           UNAME_MACHINE=i486 ;;
908
1048
            *Pentium)        UNAME_MACHINE=i586 ;;
909
1049
            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
910
1050
        esac
911
1051
        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
912
 
        exit 0 ;;
 
1052
        exit ;;
913
1053
    i*86:*:3.2:*)
914
1054
        if test -f /usr/options/cb.name; then
915
1055
                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
916
1056
                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
917
1057
        elif /bin/uname -X 2>/dev/null >/dev/null ; then
918
 
                UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
919
 
                (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
920
 
                (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
 
1058
                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
 
1059
                (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
 
1060
                (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
921
1061
                        && UNAME_MACHINE=i586
922
 
                (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
 
1062
                (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
923
1063
                        && UNAME_MACHINE=i686
924
 
                (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
 
1064
                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
925
1065
                        && UNAME_MACHINE=i686
926
1066
                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
927
1067
        else
928
1068
                echo ${UNAME_MACHINE}-pc-sysv32
929
1069
        fi
930
 
        exit 0 ;;
931
 
    i*86:*DOS:*:*)
932
 
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
933
 
        exit 0 ;;
 
1070
        exit ;;
934
1071
    pc:*:*:*)
935
1072
        # Left here for compatibility:
936
 
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
937
 
        # the processor, so we play safe by assuming i386.
938
 
        echo i386-pc-msdosdjgpp
939
 
        exit 0 ;;
 
1073
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
 
1074
        # the processor, so we play safe by assuming i586.
 
1075
        # Note: whatever this is, it MUST be the same as what config.sub
 
1076
        # prints for the "djgpp" host, or else GDB configury will decide that
 
1077
        # this is a cross-build.
 
1078
        echo i586-pc-msdosdjgpp
 
1079
        exit ;;
940
1080
    Intel:Mach:3*:*)
941
1081
        echo i386-pc-mach3
942
 
        exit 0 ;;
 
1082
        exit ;;
943
1083
    paragon:*:*:*)
944
1084
        echo i860-intel-osf1
945
 
        exit 0 ;;
 
1085
        exit ;;
946
1086
    i860:*:4.*:*) # i860-SVR4
947
1087
        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
948
1088
          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
949
1089
        else # Add other i860-SVR4 vendors below as they are discovered.
950
1090
          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
951
1091
        fi
952
 
        exit 0 ;;
 
1092
        exit ;;
953
1093
    mini*:CTIX:SYS*5:*)
954
1094
        # "miniframe"
955
1095
        echo m68010-convergent-sysv
956
 
        exit 0 ;;
957
 
    M68*:*:R3V[567]*:*)
958
 
        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
959
 
    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
 
1096
        exit ;;
 
1097
    mc68k:UNIX:SYSTEM5:3.51m)
 
1098
        echo m68k-convergent-sysv
 
1099
        exit ;;
 
1100
    M680?0:D-NIX:5.3:*)
 
1101
        echo m68k-diab-dnix
 
1102
        exit ;;
 
1103
    M68*:*:R3V[5678]*:*)
 
1104
        test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
 
1105
    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)
960
1106
        OS_REL=''
961
1107
        test -r /etc/.relid \
962
1108
        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
963
1109
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
964
 
          && echo i486-ncr-sysv4.3${OS_REL} && exit 0
 
1110
          && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
965
1111
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
966
 
          && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
 
1112
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
967
1113
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
968
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
969
 
          && echo i486-ncr-sysv4 && exit 0 ;;
 
1114
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1115
          && { echo i486-ncr-sysv4; exit; } ;;
 
1116
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1117
        OS_REL='.3'
 
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
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1125
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
970
1126
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
971
1127
        echo m68k-unknown-lynxos${UNAME_RELEASE}
972
 
        exit 0 ;;
 
1128
        exit ;;
973
1129
    mc68030:UNIX_System_V:4.*:*)
974
1130
        echo m68k-atari-sysv4
975
 
        exit 0 ;;
976
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
977
 
        echo i386-unknown-lynxos${UNAME_RELEASE}
978
 
        exit 0 ;;
 
1131
        exit ;;
979
1132
    TSUNAMI:LynxOS:2.*:*)
980
1133
        echo sparc-unknown-lynxos${UNAME_RELEASE}
981
 
        exit 0 ;;
 
1134
        exit ;;
982
1135
    rs6000:LynxOS:2.*:*)
983
1136
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
984
 
        exit 0 ;;
985
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
 
1137
        exit ;;
 
1138
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
986
1139
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
987
 
        exit 0 ;;
 
1140
        exit ;;
988
1141
    SM[BE]S:UNIX_SV:*:*)
989
1142
        echo mips-dde-sysv${UNAME_RELEASE}
990
 
        exit 0 ;;
 
1143
        exit ;;
991
1144
    RM*:ReliantUNIX-*:*:*)
992
1145
        echo mips-sni-sysv4
993
 
        exit 0 ;;
 
1146
        exit ;;
994
1147
    RM*:SINIX-*:*:*)
995
1148
        echo mips-sni-sysv4
996
 
        exit 0 ;;
 
1149
        exit ;;
997
1150
    *:SINIX-*:*:*)
998
1151
        if uname -p 2>/dev/null >/dev/null ; then
999
1152
                UNAME_MACHINE=`(uname -p) 2>/dev/null`
1001
1154
        else
1002
1155
                echo ns32k-sni-sysv
1003
1156
        fi
1004
 
        exit 0 ;;
1005
 
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1006
 
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
1007
 
        echo i586-unisys-sysv4
1008
 
        exit 0 ;;
 
1157
        exit ;;
 
1158
    PENTIUM:*:4.0*:*)   # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
 
1159
                        # says <Richard.M.Bartel@ccMail.Census.GOV>
 
1160
        echo i586-unisys-sysv4
 
1161
        exit ;;
1009
1162
    *:UNIX_System_V:4*:FTX*)
1010
1163
        # From Gerald Hewes <hewes@openmarket.com>.
1011
1164
        # How about differentiating between stratus architectures? -djm
1012
1165
        echo hppa1.1-stratus-sysv4
1013
 
        exit 0 ;;
 
1166
        exit ;;
1014
1167
    *:*:*:FTX*)
1015
1168
        # From seanf@swdc.stratus.com.
1016
1169
        echo i860-stratus-sysv4
1017
 
        exit 0 ;;
 
1170
        exit ;;
 
1171
    i*86:VOS:*:*)
 
1172
        # From Paul.Green@stratus.com.
 
1173
        echo ${UNAME_MACHINE}-stratus-vos
 
1174
        exit ;;
1018
1175
    *:VOS:*:*)
1019
1176
        # From Paul.Green@stratus.com.
1020
1177
        echo hppa1.1-stratus-vos
1021
 
        exit 0 ;;
 
1178
        exit ;;
1022
1179
    mc68*:A/UX:*:*)
1023
1180
        echo m68k-apple-aux${UNAME_RELEASE}
1024
 
        exit 0 ;;
 
1181
        exit ;;
1025
1182
    news*:NEWS-OS:6*:*)
1026
1183
        echo mips-sony-newsos6
1027
 
        exit 0 ;;
 
1184
        exit ;;
1028
1185
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1029
1186
        if [ -d /usr/nec ]; then
1030
 
                echo mips-nec-sysv${UNAME_RELEASE}
 
1187
                echo mips-nec-sysv${UNAME_RELEASE}
1031
1188
        else
1032
 
                echo mips-unknown-sysv${UNAME_RELEASE}
 
1189
                echo mips-unknown-sysv${UNAME_RELEASE}
1033
1190
        fi
1034
 
        exit 0 ;;
 
1191
        exit ;;
1035
1192
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1036
1193
        echo powerpc-be-beos
1037
 
        exit 0 ;;
 
1194
        exit ;;
1038
1195
    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only.
1039
1196
        echo powerpc-apple-beos
1040
 
        exit 0 ;;
 
1197
        exit ;;
1041
1198
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1042
1199
        echo i586-pc-beos
1043
 
        exit 0 ;;
 
1200
        exit ;;
 
1201
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1202
        echo i586-pc-haiku
 
1203
        exit ;;
1044
1204
    SX-4:SUPER-UX:*:*)
1045
1205
        echo sx4-nec-superux${UNAME_RELEASE}
1046
 
        exit 0 ;;
 
1206
        exit ;;
1047
1207
    SX-5:SUPER-UX:*:*)
1048
1208
        echo sx5-nec-superux${UNAME_RELEASE}
1049
 
        exit 0 ;;
 
1209
        exit ;;
 
1210
    SX-6:SUPER-UX:*:*)
 
1211
        echo sx6-nec-superux${UNAME_RELEASE}
 
1212
        exit ;;
 
1213
    SX-7:SUPER-UX:*:*)
 
1214
        echo sx7-nec-superux${UNAME_RELEASE}
 
1215
        exit ;;
 
1216
    SX-8:SUPER-UX:*:*)
 
1217
        echo sx8-nec-superux${UNAME_RELEASE}
 
1218
        exit ;;
 
1219
    SX-8R:SUPER-UX:*:*)
 
1220
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1221
        exit ;;
1050
1222
    Power*:Rhapsody:*:*)
1051
1223
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1052
 
        exit 0 ;;
 
1224
        exit ;;
1053
1225
    *:Rhapsody:*:*)
1054
1226
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1055
 
        exit 0 ;;
 
1227
        exit ;;
1056
1228
    *:Darwin:*:*)
1057
 
        echo `uname -p`-apple-darwin${UNAME_RELEASE}
1058
 
        exit 0 ;;
 
1229
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
 
1230
        case $UNAME_PROCESSOR in
 
1231
            i386)
 
1232
                eval $set_cc_for_build
 
1233
                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
1234
                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
 
1235
                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
1236
                      grep IS_64BIT_ARCH >/dev/null
 
1237
                  then
 
1238
                      UNAME_PROCESSOR="x86_64"
 
1239
                  fi
 
1240
                fi ;;
 
1241
            unknown) UNAME_PROCESSOR=powerpc ;;
 
1242
        esac
 
1243
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
 
1244
        exit ;;
1059
1245
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
1060
 
        if test "${UNAME_MACHINE}" = "x86pc"; then
 
1246
        UNAME_PROCESSOR=`uname -p`
 
1247
        if test "$UNAME_PROCESSOR" = "x86"; then
 
1248
                UNAME_PROCESSOR=i386
1061
1249
                UNAME_MACHINE=pc
1062
1250
        fi
1063
 
        echo `uname -p`-${UNAME_MACHINE}-nto-qnx
1064
 
        exit 0 ;;
 
1251
        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
 
1252
        exit ;;
1065
1253
    *:QNX:*:4*)
1066
1254
        echo i386-pc-qnx
1067
 
        exit 0 ;;
1068
 
    NSR-[KW]:NONSTOP_KERNEL:*:*)
 
1255
        exit ;;
 
1256
    NEO-?:NONSTOP_KERNEL:*:*)
 
1257
        echo neo-tandem-nsk${UNAME_RELEASE}
 
1258
        exit ;;
 
1259
    NSE-?:NONSTOP_KERNEL:*:*)
 
1260
        echo nse-tandem-nsk${UNAME_RELEASE}
 
1261
        exit ;;
 
1262
    NSR-?:NONSTOP_KERNEL:*:*)
1069
1263
        echo nsr-tandem-nsk${UNAME_RELEASE}
1070
 
        exit 0 ;;
 
1264
        exit ;;
1071
1265
    *:NonStop-UX:*:*)
1072
1266
        echo mips-compaq-nonstopux
1073
 
        exit 0 ;;
 
1267
        exit ;;
1074
1268
    BS2000:POSIX*:*:*)
1075
1269
        echo bs2000-siemens-sysv
1076
 
        exit 0 ;;
 
1270
        exit ;;
1077
1271
    DS/*:UNIX_System_V:*:*)
1078
1272
        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1079
 
        exit 0 ;;
 
1273
        exit ;;
1080
1274
    *:Plan9:*:*)
1081
1275
        # "uname -m" is not consistent, so use $cputype instead. 386
1082
1276
        # is converted to i386 for consistency with other x86
1087
1281
            UNAME_MACHINE="$cputype"
1088
1282
        fi
1089
1283
        echo ${UNAME_MACHINE}-unknown-plan9
1090
 
        exit 0 ;;
1091
 
    i*86:OS/2:*:*)
1092
 
        # If we were able to find `uname', then EMX Unix compatibility
1093
 
        # is probably installed.
1094
 
        echo ${UNAME_MACHINE}-pc-os2-emx
1095
 
        exit 0 ;;
 
1284
        exit ;;
1096
1285
    *:TOPS-10:*:*)
1097
1286
        echo pdp10-unknown-tops10
1098
 
        exit 0 ;;
 
1287
        exit ;;
1099
1288
    *:TENEX:*:*)
1100
1289
        echo pdp10-unknown-tenex
1101
 
        exit 0 ;;
 
1290
        exit ;;
1102
1291
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1103
1292
        echo pdp10-dec-tops20
1104
 
        exit 0 ;;
 
1293
        exit ;;
1105
1294
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1106
1295
        echo pdp10-xkl-tops20
1107
 
        exit 0 ;;
 
1296
        exit ;;
1108
1297
    *:TOPS-20:*:*)
1109
1298
        echo pdp10-unknown-tops20
1110
 
        exit 0 ;;
 
1299
        exit ;;
1111
1300
    *:ITS:*:*)
1112
1301
        echo pdp10-unknown-its
1113
 
        exit 0 ;;
1114
 
    i*86:XTS-300:*:STOP)
1115
 
        echo ${UNAME_MACHINE}-unknown-stop
1116
 
        exit 0 ;;
1117
 
    i*86:atheos:*:*)
1118
 
        echo ${UNAME_MACHINE}-unknown-atheos
1119
 
        exit 0 ;;
 
1302
        exit ;;
 
1303
    SEI:*:*:SEIUX)
 
1304
        echo mips-sei-seiux${UNAME_RELEASE}
 
1305
        exit ;;
 
1306
    *:DragonFly:*:*)
 
1307
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1308
        exit ;;
 
1309
    *:*VMS:*:*)
 
1310
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
 
1311
        case "${UNAME_MACHINE}" in
 
1312
            A*) echo alpha-dec-vms ; exit ;;
 
1313
            I*) echo ia64-dec-vms ; exit ;;
 
1314
            V*) echo vax-dec-vms ; exit ;;
 
1315
        esac ;;
 
1316
    *:XENIX:*:SysV)
 
1317
        echo i386-pc-xenix
 
1318
        exit ;;
 
1319
    i*86:skyos:*:*)
 
1320
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
 
1321
        exit ;;
 
1322
    i*86:rdos:*:*)
 
1323
        echo ${UNAME_MACHINE}-pc-rdos
 
1324
        exit ;;
 
1325
    i*86:AROS:*:*)
 
1326
        echo ${UNAME_MACHINE}-pc-aros
 
1327
        exit ;;
 
1328
    x86_64:VMkernel:*:*)
 
1329
        echo ${UNAME_MACHINE}-unknown-esx
 
1330
        exit ;;
1120
1331
esac
1121
1332
 
1122
1333
#echo '(No uname command or uname output not recognized.)' 1>&2
1139
1350
#include <sys/param.h>
1140
1351
  printf ("m68k-sony-newsos%s\n",
1141
1352
#ifdef NEWSOS4
1142
 
          "4"
 
1353
        "4"
1143
1354
#else
1144
 
          ""
 
1355
        ""
1145
1356
#endif
1146
 
         ); exit (0);
 
1357
        ); exit (0);
1147
1358
#endif
1148
1359
#endif
1149
1360
 
1150
1361
#if defined (__arm) && defined (__acorn) && defined (__unix)
1151
 
  printf ("arm-acorn-riscix"); exit (0);
 
1362
  printf ("arm-acorn-riscix\n"); exit (0);
1152
1363
#endif
1153
1364
 
1154
1365
#if defined (hp300) && !defined (hpux)
1237
1448
}
1238
1449
EOF
1239
1450
 
1240
 
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
1241
 
rm -f $dummy.c $dummy
 
1451
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
 
1452
        { echo "$SYSTEM_NAME"; exit; }
1242
1453
 
1243
1454
# Apollos put the system type in the environment.
1244
1455
 
1245
 
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
 
1456
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1246
1457
 
1247
1458
# Convex versions that predate uname can use getsysinfo(1)
1248
1459
 
1251
1462
    case `getsysinfo -f cpu_type` in
1252
1463
    c1*)
1253
1464
        echo c1-convex-bsd
1254
 
        exit 0 ;;
 
1465
        exit ;;
1255
1466
    c2*)
1256
1467
        if getsysinfo -f scalar_acc
1257
1468
        then echo c32-convex-bsd
1258
1469
        else echo c2-convex-bsd
1259
1470
        fi
1260
 
        exit 0 ;;
 
1471
        exit ;;
1261
1472
    c34*)
1262
1473
        echo c34-convex-bsd
1263
 
        exit 0 ;;
 
1474
        exit ;;
1264
1475
    c38*)
1265
1476
        echo c38-convex-bsd
1266
 
        exit 0 ;;
 
1477
        exit ;;
1267
1478
    c4*)
1268
1479
        echo c4-convex-bsd
1269
 
        exit 0 ;;
 
1480
        exit ;;
1270
1481
    esac
1271
1482
fi
1272
1483
 
1277
1488
the operating system you are using. It is advised that you
1278
1489
download the most up to date version of the config scripts from
1279
1490
 
1280
 
    ftp://ftp.gnu.org/pub/gnu/config/
 
1491
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
 
1492
and
 
1493
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1281
1494
 
1282
1495
If the version you run ($0) is already up to date, please
1283
1496
send the following data and any information you think might be