~ubuntu-branches/ubuntu/jaunty/xarchiver/jaunty

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2008-08-07 21:20:15 UTC
  • mfrom: (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080807212015-2c7a9siouukym82w
Tags: 0.4.6-8ubuntu1
* Fake-sync with Debian unstable (different orig tarballs, youpi…):
  - debian/control: adhere to DebianMaintainerField.

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, 2006 Free Software Foundation,
5
 
#   Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
6
5
 
7
 
timestamp='2007-07-22'
 
6
timestamp='2005-12-13'
8
7
 
9
8
# This file is free software; you can redistribute it and/or modify it
10
9
# under the terms of the GNU General Public License as published by
107
106
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108
107
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109
108
: ${TMPDIR=/tmp} ;
110
 
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
109
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111
110
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112
111
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113
112
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
161
160
            arm*) machine=arm-unknown ;;
162
161
            sh3el) machine=shl-unknown ;;
163
162
            sh3eb) machine=sh-unknown ;;
164
 
            sh5el) machine=sh5le-unknown ;;
165
163
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166
164
        esac
167
165
        # The Operating System including object format, if it has switched
208
206
    *:ekkoBSD:*:*)
209
207
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210
208
        exit ;;
211
 
    *:SolidBSD:*:*)
212
 
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213
 
        exit ;;
214
209
    macppc:MirBSD:*:*)
215
 
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
 
210
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
216
211
        exit ;;
217
212
    *:MirBSD:*:*)
218
213
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
330
325
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331
326
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332
327
        exit ;;
333
 
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
328
    i86pc:SunOS:5.*:*)
334
329
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
330
        exit ;;
336
331
    sun4*:SunOS:6*:*)
769
764
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
770
765
        exit ;;
771
766
    *:FreeBSD:*:*)
772
 
        case ${UNAME_MACHINE} in
773
 
            pc98)
774
 
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
775
 
            amd64)
776
 
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
777
 
            *)
778
 
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
779
 
        esac
 
767
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
780
768
        exit ;;
781
769
    i*:CYGWIN*:*)
782
770
        echo ${UNAME_MACHINE}-pc-cygwin
783
771
        exit ;;
784
 
    *:MINGW*:*)
 
772
    i*:MINGW*:*)
785
773
        echo ${UNAME_MACHINE}-pc-mingw32
786
774
        exit ;;
787
775
    i*:windows32*:*)
791
779
    i*:PW*:*)
792
780
        echo ${UNAME_MACHINE}-pc-pw32
793
781
        exit ;;
794
 
    *:Interix*:[3456]*)
795
 
        case ${UNAME_MACHINE} in
796
 
            x86)
797
 
                echo i586-pc-interix${UNAME_RELEASE}
798
 
                exit ;;
799
 
            EM64T | authenticamd)
800
 
                echo x86_64-unknown-interix${UNAME_RELEASE}
801
 
                exit ;;
802
 
        esac ;;
 
782
    x86:Interix*:[345]*)
 
783
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
 
784
        exit ;;
803
785
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804
786
        echo i${UNAME_MACHINE}-pc-mks
805
787
        exit ;;
835
817
    arm*:Linux:*:*)
836
818
        echo ${UNAME_MACHINE}-unknown-linux-gnu
837
819
        exit ;;
838
 
    avr32*:Linux:*:*)
839
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
840
 
        exit ;;
841
820
    cris:Linux:*:*)
842
821
        echo cris-axis-linux-gnu
843
822
        exit ;;
872
851
        #endif
873
852
        #endif
874
853
EOF
875
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
876
 
            /^CPU/{
877
 
                s: ::g
878
 
                p
879
 
            }'`"
 
854
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
880
855
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
881
856
        ;;
882
857
    mips64:Linux:*:*)
895
870
        #endif
896
871
        #endif
897
872
EOF
898
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
899
 
            /^CPU/{
900
 
                s: ::g
901
 
                p
902
 
            }'`"
 
873
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
903
874
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
904
875
        ;;
905
876
    or32:Linux:*:*)
954
925
    x86_64:Linux:*:*)
955
926
        echo x86_64-unknown-linux-gnu
956
927
        exit ;;
957
 
    xtensa:Linux:*:*)
958
 
        echo xtensa-unknown-linux-gnu
959
 
        exit ;;
960
928
    i*86:Linux:*:*)
961
929
        # The BFD linker knows what the default object file format is, so
962
930
        # first see if it will tell us. cd to the root directory to prevent
999
967
        LIBC=gnulibc1
1000
968
        # endif
1001
969
        #else
1002
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
 
970
        #if defined(__INTEL_COMPILER) || defined(__PGI)
1003
971
        LIBC=gnu
1004
972
        #else
1005
973
        LIBC=gnuaout
1009
977
        LIBC=dietlibc
1010
978
        #endif
1011
979
EOF
1012
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1013
 
            /^LIBC/{
1014
 
                s: ::g
1015
 
                p
1016
 
            }'`"
 
980
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
1017
981
        test x"${LIBC}" != x && {
1018
982
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1019
983
                exit
1215
1179
    SX-6:SUPER-UX:*:*)
1216
1180
        echo sx6-nec-superux${UNAME_RELEASE}
1217
1181
        exit ;;
1218
 
    SX-7:SUPER-UX:*:*)
1219
 
        echo sx7-nec-superux${UNAME_RELEASE}
1220
 
        exit ;;
1221
 
    SX-8:SUPER-UX:*:*)
1222
 
        echo sx8-nec-superux${UNAME_RELEASE}
1223
 
        exit ;;
1224
 
    SX-8R:SUPER-UX:*:*)
1225
 
        echo sx8r-nec-superux${UNAME_RELEASE}
1226
 
        exit ;;
1227
1182
    Power*:Rhapsody:*:*)
1228
1183
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1229
1184
        exit ;;