~ubuntu-branches/ubuntu/edgy/libxpm/edgy

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2005-12-21 13:30:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051221133035-22czwyhoyie60o17
Tags: 1:3.5.4.2-0ubuntu1
New upstream release.

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
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2005-04-22'
 
6
timestamp='2004-01-24'
7
7
 
8
8
# This file is free software; you can redistribute it and/or modify it
9
9
# under the terms of the GNU General Public License as published by
53
53
GNU config.guess ($timestamp)
54
54
 
55
55
Originally written by Per Bothner.
56
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
56
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
57
57
Free Software Foundation, Inc.
58
58
 
59
59
This is free software; see the source for copying conditions.  There is NO
197
197
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
198
198
        echo "${machine}-${os}${release}"
199
199
        exit 0 ;;
200
 
    amd64:OpenBSD:*:*)
201
 
        echo x86_64-unknown-openbsd${UNAME_RELEASE}
202
 
        exit 0 ;;
203
200
    amiga:OpenBSD:*:*)
204
201
        echo m68k-unknown-openbsd${UNAME_RELEASE}
205
202
        exit 0 ;;
206
 
    cats:OpenBSD:*:*)
207
 
        echo arm-unknown-openbsd${UNAME_RELEASE}
 
203
    arc:OpenBSD:*:*)
 
204
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
208
205
        exit 0 ;;
209
206
    hp300:OpenBSD:*:*)
210
207
        echo m68k-unknown-openbsd${UNAME_RELEASE}
211
208
        exit 0 ;;
212
 
    luna88k:OpenBSD:*:*)
213
 
        echo m88k-unknown-openbsd${UNAME_RELEASE}
214
 
        exit 0 ;;
215
209
    mac68k:OpenBSD:*:*)
216
210
        echo m68k-unknown-openbsd${UNAME_RELEASE}
217
211
        exit 0 ;;
227
221
    mvmeppc:OpenBSD:*:*)
228
222
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
229
223
        exit 0 ;;
 
224
    pegasos:OpenBSD:*:*)
 
225
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
 
226
        exit 0 ;;
 
227
    pmax:OpenBSD:*:*)
 
228
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
 
229
        exit 0 ;;
230
230
    sgi:OpenBSD:*:*)
231
 
        echo mips64-unknown-openbsd${UNAME_RELEASE}
 
231
        echo mipseb-unknown-openbsd${UNAME_RELEASE}
232
232
        exit 0 ;;
233
233
    sun3:OpenBSD:*:*)
234
234
        echo m68k-unknown-openbsd${UNAME_RELEASE}
235
235
        exit 0 ;;
 
236
    wgrisc:OpenBSD:*:*)
 
237
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
 
238
        exit 0 ;;
236
239
    *:OpenBSD:*:*)
237
240
        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
238
241
        exit 0 ;;
239
 
    *:ekkoBSD:*:*)
240
 
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
241
 
        exit 0 ;;
242
 
    macppc:MirBSD:*:*)
243
 
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
244
 
        exit 0 ;;
245
 
    *:MirBSD:*:*)
246
 
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
247
 
        exit 0 ;;
248
242
    alpha:OSF1:*:*)
249
 
        case $UNAME_RELEASE in
250
 
        *4.0)
 
243
        if test $UNAME_RELEASE = "V4.0"; then
251
244
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
252
 
                ;;
253
 
        *5.*)
254
 
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
255
 
                ;;
256
 
        esac
 
245
        fi
257
246
        # According to Compaq, /usr/sbin/psrinfo has been available on
258
247
        # OSF/1 and Tru64 systems produced since 1995.  I hope that
259
248
        # covers most systems running today.  This code pipes the CPU
291
280
            "EV7.9 (21364A)")
292
281
                UNAME_MACHINE="alphaev79" ;;
293
282
        esac
294
 
        # A Pn.n version is a patched version.
295
283
        # A Vn.n version is a released version.
296
284
        # A Tn.n version is a released field test version.
297
285
        # A Xn.n version is an unreleased experimental baselevel.
298
286
        # 1.2 uses "1.2" for uname -r.
299
 
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
 
287
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
 
288
        exit 0 ;;
 
289
    Alpha*:OpenVMS:*:*)
 
290
        echo alpha-hp-vms
300
291
        exit 0 ;;
301
292
    Alpha\ *:Windows_NT*:*)
302
293
        # How do we know it's Interix rather than the generic POSIX subsystem?
319
310
    *:OS/390:*:*)
320
311
        echo i370-ibm-openedition
321
312
        exit 0 ;;
322
 
    *:z/VM:*:*)
323
 
        echo s390-ibm-zvmoe
324
 
        exit 0 ;;
325
313
    *:OS400:*:*)
326
314
        echo powerpc-ibm-os400
327
315
        exit 0 ;;
345
333
    DRS?6000:unix:4.0:6*)
346
334
        echo sparc-icl-nx6
347
335
        exit 0 ;;
348
 
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
 
336
    DRS?6000:UNIX_SV:4.2*:7*)
349
337
        case `/usr/bin/uname -p` in
350
338
            sparc) echo sparc-icl-nx7 && exit 0 ;;
351
339
        esac ;;
755
743
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
756
744
        exit 0 ;;
757
745
    *:UNICOS/mp:*:*)
758
 
        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
746
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759
747
        exit 0 ;;
760
748
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
761
749
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
778
766
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
779
767
        exit 0 ;;
780
768
    *:FreeBSD:*:*)
781
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
769
        # Determine whether the default compiler uses glibc.
 
770
        eval $set_cc_for_build
 
771
        sed 's/^        //' << EOF >$dummy.c
 
772
        #include <features.h>
 
773
        #if __GLIBC__ >= 2
 
774
        LIBC=gnu
 
775
        #else
 
776
        LIBC=
 
777
        #endif
 
778
EOF
 
779
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
 
780
        # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
 
781
        # FreeBSD's kernel, but not the complete OS.
 
782
        case ${LIBC} in gnu) kernel_only='k' ;; esac
 
783
        echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
782
784
        exit 0 ;;
783
785
    i*:CYGWIN*:*)
784
786
        echo ${UNAME_MACHINE}-pc-cygwin
804
806
    i*:UWIN*:*)
805
807
        echo ${UNAME_MACHINE}-pc-uwin
806
808
        exit 0 ;;
807
 
    amd64:CYGWIN*:*:*)
808
 
        echo x86_64-unknown-cygwin
809
 
        exit 0 ;;
810
809
    p*:CYGWIN*:*)
811
810
        echo powerpcle-unknown-cygwin
812
811
        exit 0 ;;
830
829
    cris:Linux:*:*)
831
830
        echo cris-axis-linux-gnu
832
831
        exit 0 ;;
833
 
    crisv32:Linux:*:*)
834
 
        echo crisv32-axis-linux-gnu
835
 
        exit 0 ;;
836
 
    frv:Linux:*:*)
837
 
        echo frv-unknown-linux-gnu
838
 
        exit 0 ;;
839
832
    ia64:Linux:*:*)
840
833
        echo ${UNAME_MACHINE}-unknown-linux-gnu
841
834
        exit 0 ;;
842
 
    m32r*:Linux:*:*)
843
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
844
 
        exit 0 ;;
845
835
    m68*:Linux:*:*)
846
836
        echo ${UNAME_MACHINE}-unknown-linux-gnu
847
837
        exit 0 ;;
1082
1072
    M680?0:D-NIX:5.3:*)
1083
1073
        echo m68k-diab-dnix
1084
1074
        exit 0 ;;
1085
 
    M68*:*:R3V[5678]*:*)
 
1075
    M68*:*:R3V[567]*:*)
1086
1076
        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1087
 
    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)
 
1077
    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)
1088
1078
        OS_REL=''
1089
1079
        test -r /etc/.relid \
1090
1080
        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1140
1130
        # From seanf@swdc.stratus.com.
1141
1131
        echo i860-stratus-sysv4
1142
1132
        exit 0 ;;
1143
 
    i*86:VOS:*:*)
1144
 
        # From Paul.Green@stratus.com.
1145
 
        echo ${UNAME_MACHINE}-stratus-vos
1146
 
        exit 0 ;;
1147
1133
    *:VOS:*:*)
1148
1134
        # From Paul.Green@stratus.com.
1149
1135
        echo hppa1.1-stratus-vos
1186
1172
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1187
1173
        exit 0 ;;
1188
1174
    *:Darwin:*:*)
1189
 
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1190
 
        case $UNAME_PROCESSOR in
 
1175
        case `uname -p` in
1191
1176
            *86) UNAME_PROCESSOR=i686 ;;
1192
 
            unknown) UNAME_PROCESSOR=powerpc ;;
 
1177
            powerpc) UNAME_PROCESSOR=powerpc ;;
1193
1178
        esac
1194
1179
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1195
1180
        exit 0 ;;
1204
1189
    *:QNX:*:4*)
1205
1190
        echo i386-pc-qnx
1206
1191
        exit 0 ;;
1207
 
    NSE-?:NONSTOP_KERNEL:*:*)
1208
 
        echo nse-tandem-nsk${UNAME_RELEASE}
1209
 
        exit 0 ;;
1210
1192
    NSR-?:NONSTOP_KERNEL:*:*)
1211
1193
        echo nsr-tandem-nsk${UNAME_RELEASE}
1212
1194
        exit 0 ;;
1254
1236
    *:DragonFly:*:*)
1255
1237
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1256
1238
        exit 0 ;;
1257
 
    *:*VMS:*:*)
1258
 
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1259
 
        case "${UNAME_MACHINE}" in
1260
 
            A*) echo alpha-dec-vms && exit 0 ;;
1261
 
            I*) echo ia64-dec-vms && exit 0 ;;
1262
 
            V*) echo vax-dec-vms && exit 0 ;;
1263
 
        esac ;;
1264
 
    *:XENIX:*:SysV)
1265
 
        echo i386-pc-xenix
1266
 
        exit 0 ;;
1267
1239
esac
1268
1240
 
1269
1241
#echo '(No uname command or uname output not recognized.)' 1>&2
1423
1395
the operating system you are using. It is advised that you
1424
1396
download the most up to date version of the config scripts from
1425
1397
 
1426
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1427
 
and
1428
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1398
    ftp://ftp.gnu.org/pub/gnu/config/
1429
1399
 
1430
1400
If the version you run ($0) is already up to date, please
1431
1401
send the following data and any information you think might be