~ubuntu-branches/ubuntu/hardy/alsa-plugins/hardy-proposed

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-06-12 19:03:08 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070612190308-yhyjw8t4wk7zhte0
Tags: 1.0.14-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/control:
    + Don't build-depend on JACK, as it's in universe.  Clarify and
      update the Description to note the above restriction and
      {in,ex}clusion of newer plugins (LP: #57089),
    + 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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 
5
#   Inc.
5
6
 
6
 
timestamp='2005-07-08'
 
7
timestamp='2006-05-13'
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
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 ; } ;
216
217
    *:ekkoBSD:*:*)
217
218
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
218
219
        exit ;;
 
220
    *:SolidBSD:*:*)
 
221
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
222
        exit ;;
219
223
    macppc:MirBSD:*:*)
220
224
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
221
225
        exit ;;
774
778
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
775
779
        exit ;;
776
780
    *:FreeBSD:*:*)
777
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
781
        case ${UNAME_MACHINE} in
 
782
            pc98)
 
783
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
784
            amd64)
 
785
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
786
            *)
 
787
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
788
        esac
778
789
        exit ;;
779
790
    i*:CYGWIN*:*)
780
791
        echo ${UNAME_MACHINE}-pc-cygwin
789
800
    i*:PW*:*)
790
801
        echo ${UNAME_MACHINE}-pc-pw32
791
802
        exit ;;
792
 
    x86:Interix*:[34]*)
793
 
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
 
803
    x86:Interix*:[345]*)
 
804
        echo i586-pc-interix${UNAME_RELEASE}
 
805
        exit ;;
 
806
    EM64T:Interix*:[345]*)
 
807
        echo x86_64-unknown-interix${UNAME_RELEASE}
794
808
        exit ;;
795
809
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
796
810
        echo i${UNAME_MACHINE}-pc-mks
804
818
    i*:UWIN*:*)
805
819
        echo ${UNAME_MACHINE}-pc-uwin
806
820
        exit ;;
807
 
    amd64:CYGWIN*:*:*)
 
821
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
808
822
        echo x86_64-unknown-cygwin
809
823
        exit ;;
810
824
    p*:CYGWIN*:*)
825
839
        echo ${UNAME_MACHINE}-pc-minix
826
840
        exit ;;
827
841
    arm*:Linux:*:*)
828
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux
 
842
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
829
843
        exit ;;
830
844
    cris:Linux:*:*)
831
 
        echo cris-axis-linux
 
845
        echo cris-axis-linux-gnu
832
846
        exit ;;
833
847
    crisv32:Linux:*:*)
834
 
        echo crisv32-axis-linux
 
848
        echo crisv32-axis-linux-gnu
835
849
        exit ;;
836
850
    frv:Linux:*:*)
837
 
        echo frv-${VENDOR}-linux
 
851
        echo frv-${VENDOR}-linux-gnu
838
852
        exit ;;
839
853
    ia64:Linux:*:*)
840
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux
 
854
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
841
855
        exit ;;
842
856
    m32r*:Linux:*:*)
843
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux
 
857
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
844
858
        exit ;;
845
859
    m68*:Linux:*:*)
846
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux
 
860
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
847
861
        exit ;;
848
862
    mips:Linux:*:*)
849
863
        eval $set_cc_for_build
861
875
        #endif
862
876
        #endif
863
877
EOF
864
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
865
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux"; exit; }
 
878
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
879
            /^CPU/{
 
880
                s: ::g
 
881
                p
 
882
            }'`"
 
883
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
866
884
        ;;
867
885
    mips64:Linux:*:*)
868
886
        eval $set_cc_for_build
880
898
        #endif
881
899
        #endif
882
900
EOF
883
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
884
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux"; exit; }
 
901
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
902
            /^CPU/{
 
903
                s: ::g
 
904
                p
 
905
            }'`"
 
906
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
885
907
        ;;
 
908
    or32:Linux:*:*)
 
909
        echo or32-${VENDOR}-linux-gnu
 
910
        exit ;;
886
911
    ppc:Linux:*:*)
887
 
        echo powerpc-${VENDOR}-linux
 
912
        echo powerpc-${VENDOR}-linux-gnu
888
913
        exit ;;
889
914
    ppc64:Linux:*:*)
890
 
        echo powerpc64-${VENDOR}-linux
 
915
        echo powerpc64-${VENDOR}-linux-gnu
891
916
        exit ;;
892
917
    alpha:Linux:*:*)
893
918
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
901
926
        esac
902
927
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
903
928
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
904
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
 
929
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
905
930
        exit ;;
906
931
    parisc:Linux:*:* | hppa:Linux:*:*)
907
932
        # Look for CPU level
908
933
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
909
 
          PA7*) echo hppa1.1-${VENDOR}-linux ;;
910
 
          PA8*) echo hppa2.0-${VENDOR}-linux ;;
911
 
          *)    echo hppa-${VENDOR}-linux ;;
 
934
          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
 
935
          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
 
936
          *)    echo hppa-${VENDOR}-linux-gnu ;;
912
937
        esac
913
938
        exit ;;
914
939
    parisc64:Linux:*:* | hppa64:Linux:*:*)
915
 
        echo hppa64-${VENDOR}-linux
 
940
        echo hppa64-${VENDOR}-linux-gnu
916
941
        exit ;;
917
942
    s390:Linux:*:* | s390x:Linux:*:*)
918
943
        echo ${UNAME_MACHINE}-ibm-linux
919
944
        exit ;;
920
945
    sh64*:Linux:*:*)
921
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux
 
946
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
922
947
        exit ;;
923
948
    sh*:Linux:*:*)
924
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux
 
949
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
925
950
        exit ;;
926
951
    sparc:Linux:*:* | sparc64:Linux:*:*)
927
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux
 
952
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
953
        exit ;;
 
954
    vax:Linux:*:*)
 
955
        echo ${UNAME_MACHINE}-dec-linux-gnu
928
956
        exit ;;
929
957
    x86_64:Linux:*:*)
930
 
        echo x86_64-${VENDOR}-linux
 
958
        echo x86_64-${VENDOR}-linux-gnu
931
959
        exit ;;
932
960
    i*86:Linux:*:*)
933
961
        # The BFD linker knows what the default object file format is, so
942
970
                                    p'`
943
971
        case "$ld_supported_targets" in
944
972
          elf32-i386)
945
 
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
 
973
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
946
974
                ;;
947
975
          a.out-i386-linux)
948
 
                echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
 
976
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
949
977
                exit ;;
950
978
          coff-i386)
951
 
                echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
 
979
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
952
980
                exit ;;
953
981
          "")
954
 
                # Either a pre-BFD a.out linker (linuxoldld) or
 
982
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
955
983
                # one that does not give us useful --help.
956
 
                echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
 
984
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
957
985
                exit ;;
958
986
        esac
959
987
        # Determine whether the default compiler is a.out or elf
971
999
        LIBC=gnulibc1
972
1000
        # endif
973
1001
        #else
974
 
        #ifdef __INTEL_COMPILER
 
1002
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
975
1003
        LIBC=gnu
976
1004
        #else
977
1005
        LIBC=gnuaout
981
1009
        LIBC=dietlibc
982
1010
        #endif
983
1011
EOF
984
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
 
1012
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
1013
            /^LIBC/{
 
1014
                s: ::g
 
1015
                p
 
1016
            }'`"
985
1017
        test x"${LIBC}" != x && {
986
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/'
 
1018
                echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
987
1019
                exit
988
1020
        }
989
1021
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1192
1224
    *:Darwin:*:*)
1193
1225
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1194
1226
        case $UNAME_PROCESSOR in
1195
 
            *86) UNAME_PROCESSOR=i686 ;;
1196
1227
            unknown) UNAME_PROCESSOR=powerpc ;;
1197
1228
        esac
1198
1229
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1271
1302
    i*86:skyos:*:*)
1272
1303
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1273
1304
        exit ;;
 
1305
    i*86:rdos:*:*)
 
1306
        echo ${UNAME_MACHINE}-pc-rdos
 
1307
        exit ;;
1274
1308
esac
1275
1309
 
1276
1310
#echo '(No uname command or uname output not recognized.)' 1>&2