~ubuntu-branches/ubuntu/jaunty/gdesklets/jaunty-proposed

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2006-06-14 19:19:07 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060614191907-yktrjkep30abmrfn
Tags: 0.35.3-4
Don't ship /usr/share/mime/mime.cache. (Closes: #373600)

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2003-06-17'
 
6
timestamp='2005-04-22'
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
 
56
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
57
57
Free Software Foundation, Inc.
58
58
 
59
59
This is free software; see the source for copying conditions.  There is NO
136
136
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
137
137
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138
138
 
139
 
## for Red Hat Linux
140
 
if test -f /etc/redhat-release ; then
141
 
    VENDOR=redhat ;
142
 
else
143
 
    VENDOR= ;
144
 
fi
145
 
 
146
139
# Note: order is significant - the case branches are not exclusive.
147
140
 
148
141
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
204
197
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
205
198
        echo "${machine}-${os}${release}"
206
199
        exit 0 ;;
 
200
    amd64:OpenBSD:*:*)
 
201
        echo x86_64-unknown-openbsd${UNAME_RELEASE}
 
202
        exit 0 ;;
207
203
    amiga:OpenBSD:*:*)
208
204
        echo m68k-unknown-openbsd${UNAME_RELEASE}
209
205
        exit 0 ;;
210
 
    arc:OpenBSD:*:*)
211
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
 
206
    cats:OpenBSD:*:*)
 
207
        echo arm-unknown-openbsd${UNAME_RELEASE}
212
208
        exit 0 ;;
213
209
    hp300:OpenBSD:*:*)
214
210
        echo m68k-unknown-openbsd${UNAME_RELEASE}
215
211
        exit 0 ;;
 
212
    luna88k:OpenBSD:*:*)
 
213
        echo m88k-unknown-openbsd${UNAME_RELEASE}
 
214
        exit 0 ;;
216
215
    mac68k:OpenBSD:*:*)
217
216
        echo m68k-unknown-openbsd${UNAME_RELEASE}
218
217
        exit 0 ;;
228
227
    mvmeppc:OpenBSD:*:*)
229
228
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
230
229
        exit 0 ;;
231
 
    pmax:OpenBSD:*:*)
232
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
233
 
        exit 0 ;;
234
230
    sgi:OpenBSD:*:*)
235
 
        echo mipseb-unknown-openbsd${UNAME_RELEASE}
 
231
        echo mips64-unknown-openbsd${UNAME_RELEASE}
236
232
        exit 0 ;;
237
233
    sun3:OpenBSD:*:*)
238
234
        echo m68k-unknown-openbsd${UNAME_RELEASE}
239
235
        exit 0 ;;
240
 
    wgrisc:OpenBSD:*:*)
241
 
        echo mipsel-unknown-openbsd${UNAME_RELEASE}
242
 
        exit 0 ;;
243
236
    *:OpenBSD:*:*)
244
237
        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
245
238
        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 ;;
246
248
    alpha:OSF1:*:*)
247
 
        if test $UNAME_RELEASE = "V4.0"; then
 
249
        case $UNAME_RELEASE in
 
250
        *4.0)
248
251
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
249
 
        fi
 
252
                ;;
 
253
        *5.*)
 
254
                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
 
255
                ;;
 
256
        esac
250
257
        # According to Compaq, /usr/sbin/psrinfo has been available on
251
258
        # OSF/1 and Tru64 systems produced since 1995.  I hope that
252
259
        # covers most systems running today.  This code pipes the CPU
284
291
            "EV7.9 (21364A)")
285
292
                UNAME_MACHINE="alphaev79" ;;
286
293
        esac
 
294
        # A Pn.n version is a patched version.
287
295
        # A Vn.n version is a released version.
288
296
        # A Tn.n version is a released field test version.
289
297
        # A Xn.n version is an unreleased experimental baselevel.
290
298
        # 1.2 uses "1.2" for uname -r.
291
 
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
292
 
        exit 0 ;;
293
 
    Alpha*:OpenVMS:*:*)
294
 
        echo alpha-hp-vms
 
299
        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
295
300
        exit 0 ;;
296
301
    Alpha\ *:Windows_NT*:*)
297
302
        # How do we know it's Interix rather than the generic POSIX subsystem?
314
319
    *:OS/390:*:*)
315
320
        echo i370-ibm-openedition
316
321
        exit 0 ;;
 
322
    *:z/VM:*:*)
 
323
        echo s390-ibm-zvmoe
 
324
        exit 0 ;;
 
325
    *:OS400:*:*)
 
326
        echo powerpc-ibm-os400
 
327
        exit 0 ;;
317
328
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
318
329
        echo arm-acorn-riscix${UNAME_RELEASE}
319
330
        exit 0;;
334
345
    DRS?6000:unix:4.0:6*)
335
346
        echo sparc-icl-nx6
336
347
        exit 0 ;;
337
 
    DRS?6000:UNIX_SV:4.2*:7*)
 
348
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
338
349
        case `/usr/bin/uname -p` in
339
350
            sparc) echo sparc-icl-nx7 && exit 0 ;;
340
351
        esac ;;
406
417
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
407
418
        echo m68k-unknown-mint${UNAME_RELEASE}
408
419
        exit 0 ;;
 
420
    m68k:machten:*:*)
 
421
        echo m68k-apple-machten${UNAME_RELEASE}
 
422
        exit 0 ;;
409
423
    powerpc:machten:*:*)
410
424
        echo powerpc-apple-machten${UNAME_RELEASE}
411
425
        exit 0 ;;
741
755
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
742
756
        exit 0 ;;
743
757
    *:UNICOS/mp:*:*)
744
 
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
 
758
        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
745
759
        exit 0 ;;
746
760
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
747
761
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
749
763
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
750
764
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
751
765
        exit 0 ;;
 
766
    5000:UNIX_System_V:4.*:*)
 
767
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
 
768
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
 
769
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
 
770
        exit 0 ;;
752
771
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
753
772
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
754
773
        exit 0 ;;
758
777
    *:BSD/OS:*:*)
759
778
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
760
779
        exit 0 ;;
761
 
    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
762
 
        # Determine whether the default compiler uses glibc.
763
 
        eval $set_cc_for_build
764
 
        sed 's/^        //' << EOF >$dummy.c
765
 
        #include <features.h>
766
 
        #if __GLIBC__ >= 2
767
 
        LIBC=gnu
768
 
        #else
769
 
        LIBC=
770
 
        #endif
771
 
EOF
772
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
773
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
 
780
    *:FreeBSD:*:*)
 
781
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
774
782
        exit 0 ;;
775
783
    i*:CYGWIN*:*)
776
784
        echo ${UNAME_MACHINE}-pc-cygwin
796
804
    i*:UWIN*:*)
797
805
        echo ${UNAME_MACHINE}-pc-uwin
798
806
        exit 0 ;;
 
807
    amd64:CYGWIN*:*:*)
 
808
        echo x86_64-unknown-cygwin
 
809
        exit 0 ;;
799
810
    p*:CYGWIN*:*)
800
811
        echo powerpcle-unknown-cygwin
801
812
        exit 0 ;;
803
814
        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
804
815
        exit 0 ;;
805
816
    *:GNU:*:*)
 
817
        # the GNU system
806
818
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
807
819
        exit 0 ;;
 
820
    *:GNU/*:*:*)
 
821
        # other systems with GNU libc and userland
 
822
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
 
823
        exit 0 ;;
808
824
    i*86:Minix:*:*)
809
825
        echo ${UNAME_MACHINE}-pc-minix
810
826
        exit 0 ;;
814
830
    cris:Linux:*:*)
815
831
        echo cris-axis-linux-gnu
816
832
        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 ;;
817
839
    ia64:Linux:*:*)
818
 
        echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
 
840
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
841
        exit 0 ;;
 
842
    m32r*:Linux:*:*)
 
843
        echo ${UNAME_MACHINE}-unknown-linux-gnu
819
844
        exit 0 ;;
820
845
    m68*:Linux:*:*)
821
846
        echo ${UNAME_MACHINE}-unknown-linux-gnu
859
884
        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
860
885
        ;;
861
886
    ppc:Linux:*:*)
862
 
        echo powerpc-${VENDOR:-unknown}-linux-gnu
 
887
        echo powerpc-unknown-linux-gnu
863
888
        exit 0 ;;
864
889
    ppc64:Linux:*:*)
865
 
        echo powerpc64-${VENDOR:-unknown}-linux-gnu
 
890
        echo powerpc64-unknown-linux-gnu
866
891
        exit 0 ;;
867
892
    alpha:Linux:*:*)
868
893
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
890
915
        echo hppa64-unknown-linux-gnu
891
916
        exit 0 ;;
892
917
    s390:Linux:*:* | s390x:Linux:*:*)
893
 
        echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
 
918
        echo ${UNAME_MACHINE}-ibm-linux
894
919
        exit 0 ;;
895
920
    sh64*:Linux:*:*)
896
921
        echo ${UNAME_MACHINE}-unknown-linux-gnu
902
927
        echo ${UNAME_MACHINE}-unknown-linux-gnu
903
928
        exit 0 ;;
904
929
    x86_64:Linux:*:*)
905
 
        echo x86_64-${VENDOR:-unknown}-linux-gnu
 
930
        echo x86_64-unknown-linux-gnu
906
931
        exit 0 ;;
907
932
    i*86:Linux:*:*)
908
933
        # The BFD linker knows what the default object file format is, so
952
977
        LIBC=gnuaout
953
978
        #endif
954
979
        #endif
 
980
        #ifdef __dietlibc__
 
981
        LIBC=dietlibc
 
982
        #endif
955
983
EOF
956
984
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
957
 
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
 
985
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
958
986
        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
959
987
        ;;
960
988
    i*86:DYNIX/ptx:4*:*)
982
1010
    i*86:atheos:*:*)
983
1011
        echo ${UNAME_MACHINE}-unknown-atheos
984
1012
        exit 0 ;;
 
1013
        i*86:syllable:*:*)
 
1014
        echo ${UNAME_MACHINE}-pc-syllable
 
1015
        exit 0 ;;
985
1016
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
986
1017
        echo i386-unknown-lynxos${UNAME_RELEASE}
987
1018
        exit 0 ;;
1051
1082
    M680?0:D-NIX:5.3:*)
1052
1083
        echo m68k-diab-dnix
1053
1084
        exit 0 ;;
1054
 
    M68*:*:R3V[567]*:*)
 
1085
    M68*:*:R3V[5678]*:*)
1055
1086
        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1056
 
    3[34]??:*: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)
 
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)
1057
1088
        OS_REL=''
1058
1089
        test -r /etc/.relid \
1059
1090
        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1109
1140
        # From seanf@swdc.stratus.com.
1110
1141
        echo i860-stratus-sysv4
1111
1142
        exit 0 ;;
 
1143
    i*86:VOS:*:*)
 
1144
        # From Paul.Green@stratus.com.
 
1145
        echo ${UNAME_MACHINE}-stratus-vos
 
1146
        exit 0 ;;
1112
1147
    *:VOS:*:*)
1113
1148
        # From Paul.Green@stratus.com.
1114
1149
        echo hppa1.1-stratus-vos
1151
1186
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1152
1187
        exit 0 ;;
1153
1188
    *:Darwin:*:*)
1154
 
        case `uname -p` in
 
1189
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
 
1190
        case $UNAME_PROCESSOR in
1155
1191
            *86) UNAME_PROCESSOR=i686 ;;
1156
 
            powerpc) UNAME_PROCESSOR=powerpc ;;
 
1192
            unknown) UNAME_PROCESSOR=powerpc ;;
1157
1193
        esac
1158
1194
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1159
1195
        exit 0 ;;
1168
1204
    *:QNX:*:4*)
1169
1205
        echo i386-pc-qnx
1170
1206
        exit 0 ;;
1171
 
    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
 
1207
    NSE-?:NONSTOP_KERNEL:*:*)
 
1208
        echo nse-tandem-nsk${UNAME_RELEASE}
 
1209
        exit 0 ;;
 
1210
    NSR-?:NONSTOP_KERNEL:*:*)
1172
1211
        echo nsr-tandem-nsk${UNAME_RELEASE}
1173
1212
        exit 0 ;;
1174
1213
    *:NonStop-UX:*:*)
1212
1251
    SEI:*:*:SEIUX)
1213
1252
        echo mips-sei-seiux${UNAME_RELEASE}
1214
1253
        exit 0 ;;
 
1254
    *:DragonFly:*:*)
 
1255
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1256
        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 ;;
1215
1267
esac
1216
1268
 
1217
1269
#echo '(No uname command or uname output not recognized.)' 1>&2
1371
1423
the operating system you are using. It is advised that you
1372
1424
download the most up to date version of the config scripts from
1373
1425
 
1374
 
    ftp://ftp.gnu.org/pub/gnu/config/
 
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
1375
1429
 
1376
1430
If the version you run ($0) is already up to date, please
1377
1431
send the following data and any information you think might be