~ubuntu-branches/ubuntu/trusty/sblim-sfcb/trusty-proposed

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-06-08 12:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090608120449-byfplk09rqz8rtg6
Tags: 1.3.3-0ubuntu1
* New upstream release.
* debian/rules: Removed rpath hacks, SFCB default build handles that now.
* Removed 1934753-remove-assignment.diff, now upstream.
* Refreshed patch cim-schema-location.diff

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, 2004, 2005, 2006, 2007, 2008
 
5
#   Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2005-07-08'
 
7
timestamp='2008-01-08'
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
55
56
GNU config.guess ($timestamp)
56
57
 
57
58
Originally written by Per Bothner.
58
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
59
 
Free Software Foundation, Inc.
 
59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
 
60
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
60
61
 
61
62
This is free software; see the source for copying conditions.  There is NO
62
63
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
106
107
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107
108
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108
109
: ${TMPDIR=/tmp} ;
109
 
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
110
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110
111
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111
112
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112
113
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
160
161
            arm*) machine=arm-unknown ;;
161
162
            sh3el) machine=shl-unknown ;;
162
163
            sh3eb) machine=sh-unknown ;;
 
164
            sh5el) machine=sh5le-unknown ;;
163
165
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
164
166
        esac
165
167
        # The Operating System including object format, if it has switched
206
208
    *:ekkoBSD:*:*)
207
209
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
208
210
        exit ;;
 
211
    *:SolidBSD:*:*)
 
212
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
213
        exit ;;
209
214
    macppc:MirBSD:*:*)
210
 
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
 
215
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
211
216
        exit ;;
212
217
    *:MirBSD:*:*)
213
218
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
325
330
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
326
331
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
327
332
        exit ;;
328
 
    i86pc:SunOS:5.*:*)
 
333
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
329
334
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330
335
        exit ;;
331
336
    sun4*:SunOS:6*:*)
527
532
                echo rs6000-ibm-aix3.2
528
533
        fi
529
534
        exit ;;
530
 
    *:AIX:*:[45])
 
535
    *:AIX:*:[456])
531
536
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
532
537
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
533
538
                IBM_ARCH=rs6000
764
769
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
765
770
        exit ;;
766
771
    *:FreeBSD:*:*)
767
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
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
768
780
        exit ;;
769
781
    i*:CYGWIN*:*)
770
782
        echo ${UNAME_MACHINE}-pc-cygwin
771
783
        exit ;;
772
 
    i*:MINGW*:*)
 
784
    *:MINGW*:*)
773
785
        echo ${UNAME_MACHINE}-pc-mingw32
774
786
        exit ;;
775
787
    i*:windows32*:*)
779
791
    i*:PW*:*)
780
792
        echo ${UNAME_MACHINE}-pc-pw32
781
793
        exit ;;
782
 
    x86:Interix*:[34]*)
783
 
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
784
 
        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
            IA64)
 
803
                echo ia64-unknown-interix${UNAME_RELEASE}
 
804
                exit ;;
 
805
        esac ;;
785
806
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
786
807
        echo i${UNAME_MACHINE}-pc-mks
787
808
        exit ;;
794
815
    i*:UWIN*:*)
795
816
        echo ${UNAME_MACHINE}-pc-uwin
796
817
        exit ;;
797
 
    amd64:CYGWIN*:*:*)
 
818
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
798
819
        echo x86_64-unknown-cygwin
799
820
        exit ;;
800
821
    p*:CYGWIN*:*)
815
836
        echo ${UNAME_MACHINE}-pc-minix
816
837
        exit ;;
817
838
    arm*:Linux:*:*)
 
839
        eval $set_cc_for_build
 
840
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
841
            | grep -q __ARM_EABI__
 
842
        then
 
843
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
844
        else
 
845
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
846
        fi
 
847
        exit ;;
 
848
    avr32*:Linux:*:*)
818
849
        echo ${UNAME_MACHINE}-unknown-linux-gnu
819
850
        exit ;;
820
851
    cris:Linux:*:*)
851
882
        #endif
852
883
        #endif
853
884
EOF
854
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
885
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
886
            /^CPU/{
 
887
                s: ::g
 
888
                p
 
889
            }'`"
855
890
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
856
891
        ;;
857
892
    mips64:Linux:*:*)
870
905
        #endif
871
906
        #endif
872
907
EOF
873
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
908
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
909
            /^CPU/{
 
910
                s: ::g
 
911
                p
 
912
            }'`"
874
913
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
875
914
        ;;
 
915
    or32:Linux:*:*)
 
916
        echo or32-unknown-linux-gnu
 
917
        exit ;;
876
918
    ppc:Linux:*:*)
877
919
        echo powerpc-unknown-linux-gnu
878
920
        exit ;;
916
958
    sparc:Linux:*:* | sparc64:Linux:*:*)
917
959
        echo ${UNAME_MACHINE}-unknown-linux-gnu
918
960
        exit ;;
 
961
    vax:Linux:*:*)
 
962
        echo ${UNAME_MACHINE}-dec-linux-gnu
 
963
        exit ;;
919
964
    x86_64:Linux:*:*)
920
965
        echo x86_64-unknown-linux-gnu
921
966
        exit ;;
 
967
    xtensa*:Linux:*:*)
 
968
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
969
        exit ;;
922
970
    i*86:Linux:*:*)
923
971
        # The BFD linker knows what the default object file format is, so
924
972
        # first see if it will tell us. cd to the root directory to prevent
961
1009
        LIBC=gnulibc1
962
1010
        # endif
963
1011
        #else
964
 
        #ifdef __INTEL_COMPILER
 
1012
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
965
1013
        LIBC=gnu
966
1014
        #else
967
1015
        LIBC=gnuaout
971
1019
        LIBC=dietlibc
972
1020
        #endif
973
1021
EOF
974
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
 
1022
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
1023
            /^LIBC/{
 
1024
                s: ::g
 
1025
                p
 
1026
            }'`"
975
1027
        test x"${LIBC}" != x && {
976
1028
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
977
1029
                exit
1173
1225
    SX-6:SUPER-UX:*:*)
1174
1226
        echo sx6-nec-superux${UNAME_RELEASE}
1175
1227
        exit ;;
 
1228
    SX-7:SUPER-UX:*:*)
 
1229
        echo sx7-nec-superux${UNAME_RELEASE}
 
1230
        exit ;;
 
1231
    SX-8:SUPER-UX:*:*)
 
1232
        echo sx8-nec-superux${UNAME_RELEASE}
 
1233
        exit ;;
 
1234
    SX-8R:SUPER-UX:*:*)
 
1235
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1236
        exit ;;
1176
1237
    Power*:Rhapsody:*:*)
1177
1238
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1178
1239
        exit ;;
1182
1243
    *:Darwin:*:*)
1183
1244
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1184
1245
        case $UNAME_PROCESSOR in
1185
 
            *86) UNAME_PROCESSOR=i686 ;;
1186
1246
            unknown) UNAME_PROCESSOR=powerpc ;;
1187
1247
        esac
1188
1248
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1261
1321
    i*86:skyos:*:*)
1262
1322
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1263
1323
        exit ;;
 
1324
    i*86:rdos:*:*)
 
1325
        echo ${UNAME_MACHINE}-pc-rdos
 
1326
        exit ;;
1264
1327
esac
1265
1328
 
1266
1329
#echo '(No uname command or uname output not recognized.)' 1>&2