~ubuntu-branches/ubuntu/raring/libcddb/raring

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-01-17 18:24:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100117182443-lnkwqi0fvdc5c4jg
Tags: 1.3.2-0ubuntu1
* New upstream release.
 - Fix a crash on aqualung (LP: #316056)
* debian/control:
 - Build-depends on libcdio-dev (>= 0.76).
 - Add Section libs.
 - Use ${binary:Version} instead of ${Source-Version} substvar.
 - Add missing ${misc:Depends}.
 - Build-depends on debhelper (>= 5.0.0).
* debian/rules:
 - Update SONAME minor version.
 - Don't ignore error on distclean.
 - Use debian/compat instead of using export DH_COMPAT.
* debian/*.install:
 - Remove unused /usr/lib/include/* location.
* debian/libcddb2.postinst & libcddb2.postrm:
 - Remove, it's automatically handle by debhelper.

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-08-03'
 
7
timestamp='2009-04-27'
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}
319
324
        case `/usr/bin/uname -p` in
320
325
            sparc) echo sparc-icl-nx7; exit ;;
321
326
        esac ;;
 
327
    s390x:SunOS:*:*)
 
328
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
329
        exit ;;
322
330
    sun4H:SunOS:5.*:*)
323
331
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
324
332
        exit ;;
325
333
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
326
334
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
327
335
        exit ;;
328
 
    i86pc:SunOS:5.*:*)
329
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
336
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
337
        eval $set_cc_for_build
 
338
        SUN_ARCH="i386"
 
339
        # If there is a compiler, see if it is configured for 64-bit objects.
 
340
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
341
        # This test works for both compilers.
 
342
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
343
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
344
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
345
                grep IS_64BIT_ARCH >/dev/null
 
346
            then
 
347
                SUN_ARCH="x86_64"
 
348
            fi
 
349
        fi
 
350
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330
351
        exit ;;
331
352
    sun4*:SunOS:6*:*)
332
353
        # According to config.sub, this is the proper way to canonicalize
527
548
                echo rs6000-ibm-aix3.2
528
549
        fi
529
550
        exit ;;
530
 
    *:AIX:*:[45])
 
551
    *:AIX:*:[456])
531
552
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
532
553
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
533
554
                IBM_ARCH=rs6000
764
785
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
765
786
        exit ;;
766
787
    *:FreeBSD:*:*)
767
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
788
        case ${UNAME_MACHINE} in
 
789
            pc98)
 
790
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
791
            amd64)
 
792
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
793
            *)
 
794
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
795
        esac
768
796
        exit ;;
769
797
    i*:CYGWIN*:*)
770
798
        echo ${UNAME_MACHINE}-pc-cygwin
771
799
        exit ;;
772
 
    i*:MINGW*:*)
 
800
    *:MINGW*:*)
773
801
        echo ${UNAME_MACHINE}-pc-mingw32
774
802
        exit ;;
775
803
    i*:windows32*:*)
779
807
    i*:PW*:*)
780
808
        echo ${UNAME_MACHINE}-pc-pw32
781
809
        exit ;;
782
 
    x86:Interix*:[34]*)
783
 
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
784
 
        exit ;;
 
810
    *:Interix*:[3456]*)
 
811
        case ${UNAME_MACHINE} in
 
812
            x86)
 
813
                echo i586-pc-interix${UNAME_RELEASE}
 
814
                exit ;;
 
815
            EM64T | authenticamd | genuineintel)
 
816
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
817
                exit ;;
 
818
            IA64)
 
819
                echo ia64-unknown-interix${UNAME_RELEASE}
 
820
                exit ;;
 
821
        esac ;;
785
822
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
786
823
        echo i${UNAME_MACHINE}-pc-mks
787
824
        exit ;;
815
852
        echo ${UNAME_MACHINE}-pc-minix
816
853
        exit ;;
817
854
    arm*:Linux:*:*)
 
855
        eval $set_cc_for_build
 
856
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
857
            | grep -q __ARM_EABI__
 
858
        then
 
859
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
860
        else
 
861
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
862
        fi
 
863
        exit ;;
 
864
    avr32*:Linux:*:*)
818
865
        echo ${UNAME_MACHINE}-unknown-linux-gnu
819
866
        exit ;;
820
867
    cris:Linux:*:*)
851
898
        #endif
852
899
        #endif
853
900
EOF
854
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
901
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
902
            /^CPU/{
 
903
                s: ::g
 
904
                p
 
905
            }'`"
855
906
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
856
907
        ;;
857
908
    mips64:Linux:*:*)
870
921
        #endif
871
922
        #endif
872
923
EOF
873
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
924
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
925
            /^CPU/{
 
926
                s: ::g
 
927
                p
 
928
            }'`"
874
929
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
875
930
        ;;
876
931
    or32:Linux:*:*)
896
951
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
897
952
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
898
953
        exit ;;
 
954
    padre:Linux:*:*)
 
955
        echo sparc-unknown-linux-gnu
 
956
        exit ;;
899
957
    parisc:Linux:*:* | hppa:Linux:*:*)
900
958
        # Look for CPU level
901
959
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
919
977
    sparc:Linux:*:* | sparc64:Linux:*:*)
920
978
        echo ${UNAME_MACHINE}-unknown-linux-gnu
921
979
        exit ;;
 
980
    vax:Linux:*:*)
 
981
        echo ${UNAME_MACHINE}-dec-linux-gnu
 
982
        exit ;;
922
983
    x86_64:Linux:*:*)
923
984
        echo x86_64-unknown-linux-gnu
924
985
        exit ;;
 
986
    xtensa*:Linux:*:*)
 
987
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
988
        exit ;;
925
989
    i*86:Linux:*:*)
926
990
        # The BFD linker knows what the default object file format is, so
927
991
        # first see if it will tell us. cd to the root directory to prevent
940
1004
          a.out-i386-linux)
941
1005
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
942
1006
                exit ;;
943
 
          coff-i386)
944
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
945
 
                exit ;;
946
1007
          "")
947
1008
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
948
1009
                # one that does not give us useful --help.
964
1025
        LIBC=gnulibc1
965
1026
        # endif
966
1027
        #else
967
 
        #ifdef __INTEL_COMPILER
 
1028
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
968
1029
        LIBC=gnu
969
1030
        #else
970
1031
        LIBC=gnuaout
974
1035
        LIBC=dietlibc
975
1036
        #endif
976
1037
EOF
977
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
 
1038
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
1039
            /^LIBC/{
 
1040
                s: ::g
 
1041
                p
 
1042
            }'`"
978
1043
        test x"${LIBC}" != x && {
979
1044
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
980
1045
                exit
1053
1118
    pc:*:*:*)
1054
1119
        # Left here for compatibility:
1055
1120
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1056
 
        # the processor, so we play safe by assuming i386.
1057
 
        echo i386-pc-msdosdjgpp
 
1121
        # the processor, so we play safe by assuming i586.
 
1122
        # Note: whatever this is, it MUST be the same as what config.sub
 
1123
        # prints for the "djgpp" host, or else GDB configury will decide that
 
1124
        # this is a cross-build.
 
1125
        echo i586-pc-msdosdjgpp
1058
1126
        exit ;;
1059
1127
    Intel:Mach:3*:*)
1060
1128
        echo i386-pc-mach3
1092
1160
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1093
1161
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1094
1162
          && { echo i486-ncr-sysv4; exit; } ;;
 
1163
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1164
        OS_REL='.3'
 
1165
        test -r /etc/.relid \
 
1166
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1167
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1168
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1169
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1170
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
1171
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1172
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1095
1173
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1096
1174
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1097
1175
        exit ;;
1167
1245
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1168
1246
        echo i586-pc-beos
1169
1247
        exit ;;
 
1248
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1249
        echo i586-pc-haiku
 
1250
        exit ;;
1170
1251
    SX-4:SUPER-UX:*:*)
1171
1252
        echo sx4-nec-superux${UNAME_RELEASE}
1172
1253
        exit ;;
1176
1257
    SX-6:SUPER-UX:*:*)
1177
1258
        echo sx6-nec-superux${UNAME_RELEASE}
1178
1259
        exit ;;
 
1260
    SX-7:SUPER-UX:*:*)
 
1261
        echo sx7-nec-superux${UNAME_RELEASE}
 
1262
        exit ;;
 
1263
    SX-8:SUPER-UX:*:*)
 
1264
        echo sx8-nec-superux${UNAME_RELEASE}
 
1265
        exit ;;
 
1266
    SX-8R:SUPER-UX:*:*)
 
1267
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1268
        exit ;;
1179
1269
    Power*:Rhapsody:*:*)
1180
1270
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1181
1271
        exit ;;
1185
1275
    *:Darwin:*:*)
1186
1276
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1187
1277
        case $UNAME_PROCESSOR in
1188
 
            *86) UNAME_PROCESSOR=i686 ;;
1189
1278
            unknown) UNAME_PROCESSOR=powerpc ;;
1190
1279
        esac
1191
1280
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1264
1353
    i*86:skyos:*:*)
1265
1354
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1266
1355
        exit ;;
 
1356
    i*86:rdos:*:*)
 
1357
        echo ${UNAME_MACHINE}-pc-rdos
 
1358
        exit ;;
 
1359
    i*86:AROS:*:*)
 
1360
        echo ${UNAME_MACHINE}-pc-aros
 
1361
        exit ;;
1267
1362
esac
1268
1363
 
1269
1364
#echo '(No uname command or uname output not recognized.)' 1>&2
1424
1519
the operating system you are using. It is advised that you
1425
1520
download the most up to date version of the config scripts from
1426
1521
 
1427
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1522
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1428
1523
and
1429
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1524
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1430
1525
 
1431
1526
If the version you run ($0) is already up to date, please
1432
1527
send the following data and any information you think might be