~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/freetype/builds/unix/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-10-12 23:14:14 UTC
  • mto: (15.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20061012231414-y2oqbom5dy389os0
Tags: upstream-4.2.0
ImportĀ upstreamĀ versionĀ 4.2.0

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-05-15'
 
7
timestamp='2006-04-26'
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 ; } ;
125
126
        ;;
126
127
 ,,*)   CC_FOR_BUILD=$CC ;;
127
128
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
128
 
esac ;'
 
129
esac ; set_cc_for_build= ;'
129
130
 
130
131
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131
132
# (ghazi@noc.rutgers.edu 1994-08-24)
199
200
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
200
201
        echo "${machine}-${os}${release}"
201
202
        exit ;;
202
 
    amd64:OpenBSD:*:*)
203
 
        echo x86_64-unknown-openbsd${UNAME_RELEASE}
204
 
        exit ;;
205
 
    amiga:OpenBSD:*:*)
206
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
207
 
        exit ;;
208
 
    cats:OpenBSD:*:*)
209
 
        echo arm-unknown-openbsd${UNAME_RELEASE}
210
 
        exit ;;
211
 
    hp300:OpenBSD:*:*)
212
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
213
 
        exit ;;
214
 
    luna88k:OpenBSD:*:*)
215
 
        echo m88k-unknown-openbsd${UNAME_RELEASE}
216
 
        exit ;;
217
 
    mac68k:OpenBSD:*:*)
218
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
219
 
        exit ;;
220
 
    macppc:OpenBSD:*:*)
221
 
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
222
 
        exit ;;
223
 
    mvme68k:OpenBSD:*:*)
224
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
225
 
        exit ;;
226
 
    mvme88k:OpenBSD:*:*)
227
 
        echo m88k-unknown-openbsd${UNAME_RELEASE}
228
 
        exit ;;
229
 
    mvmeppc:OpenBSD:*:*)
230
 
        echo powerpc-unknown-openbsd${UNAME_RELEASE}
231
 
        exit ;;
232
 
    sgi:OpenBSD:*:*)
233
 
        echo mips64-unknown-openbsd${UNAME_RELEASE}
234
 
        exit ;;
235
 
    sun3:OpenBSD:*:*)
236
 
        echo m68k-unknown-openbsd${UNAME_RELEASE}
237
 
        exit ;;
238
203
    *:OpenBSD:*:*)
239
 
        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
 
204
        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
 
205
        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
240
206
        exit ;;
241
207
    *:ekkoBSD:*:*)
242
208
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
243
209
        exit ;;
 
210
    *:SolidBSD:*:*)
 
211
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
212
        exit ;;
244
213
    macppc:MirBSD:*:*)
245
214
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
246
215
        exit ;;
658
627
        esac
659
628
        if [ ${HP_ARCH} = "hppa2.0w" ]
660
629
        then
661
 
            # avoid double evaluation of $set_cc_for_build
662
 
            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
 
630
            eval $set_cc_for_build
663
631
 
664
632
            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
665
633
            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
800
768
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
801
769
        exit ;;
802
770
    *:FreeBSD:*:*)
803
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
771
        case ${UNAME_MACHINE} in
 
772
            pc98)
 
773
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
774
            amd64)
 
775
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
776
            *)
 
777
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
778
        esac
804
779
        exit ;;
805
780
    i*:CYGWIN*:*)
806
781
        echo ${UNAME_MACHINE}-pc-cygwin
807
782
        exit ;;
808
 
    i*:MINGW*:* | i*:windows32*:*)
 
783
    i*:MINGW*:*)
809
784
        echo ${UNAME_MACHINE}-pc-mingw32
810
785
        exit ;;
 
786
    i*:windows32*:*)
 
787
        # uname -m includes "-pc" on this system.
 
788
        echo ${UNAME_MACHINE}-mingw32
 
789
        exit ;;
811
790
    i*:PW*:*)
812
791
        echo ${UNAME_MACHINE}-pc-pw32
813
792
        exit ;;
814
 
    x86:Interix*:[34]*)
815
 
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
 
793
    x86:Interix*:[345]*)
 
794
        echo i586-pc-interix${UNAME_RELEASE}
 
795
        exit ;;
 
796
    EM64T:Interix*:[345]*)
 
797
        echo x86_64-unknown-interix${UNAME_RELEASE}
816
798
        exit ;;
817
799
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
818
800
        echo i${UNAME_MACHINE}-pc-mks
826
808
    i*:UWIN*:*)
827
809
        echo ${UNAME_MACHINE}-pc-uwin
828
810
        exit ;;
829
 
    amd64:CYGWIN*:*:*)
 
811
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
830
812
        echo x86_64-unknown-cygwin
831
813
        exit ;;
832
814
    p*:CYGWIN*:*)
883
865
        #endif
884
866
        #endif
885
867
EOF
886
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
868
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
869
            /^CPU/{
 
870
                s: ::g
 
871
                p
 
872
            }'`"
887
873
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
888
874
        ;;
889
875
    mips64:Linux:*:*)
902
888
        #endif
903
889
        #endif
904
890
EOF
905
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
891
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
892
            /^CPU/{
 
893
                s: ::g
 
894
                p
 
895
            }'`"
906
896
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
907
897
        ;;
 
898
    or32:Linux:*:*)
 
899
        echo or32-unknown-linux-gnu
 
900
        exit ;;
908
901
    ppc:Linux:*:*)
909
902
        echo powerpc-unknown-linux-gnu
910
903
        exit ;;
948
941
    sparc:Linux:*:* | sparc64:Linux:*:*)
949
942
        echo ${UNAME_MACHINE}-unknown-linux-gnu
950
943
        exit ;;
 
944
    vax:Linux:*:*)
 
945
        echo ${UNAME_MACHINE}-dec-linux-gnu
 
946
        exit ;;
951
947
    x86_64:Linux:*:*)
952
948
        echo x86_64-unknown-linux-gnu
953
949
        exit ;;
993
989
        LIBC=gnulibc1
994
990
        # endif
995
991
        #else
996
 
        #ifdef __INTEL_COMPILER
 
992
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
997
993
        LIBC=gnu
998
994
        #else
999
995
        LIBC=gnuaout
1003
999
        LIBC=dietlibc
1004
1000
        #endif
1005
1001
EOF
1006
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
 
1002
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
1003
            /^LIBC/{
 
1004
                s: ::g
 
1005
                p
 
1006
            }'`"
1007
1007
        test x"${LIBC}" != x && {
1008
1008
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1009
1009
                exit
1214
1214
    *:Darwin:*:*)
1215
1215
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1216
1216
        case $UNAME_PROCESSOR in
1217
 
            *86) UNAME_PROCESSOR=i686 ;;
1218
1217
            unknown) UNAME_PROCESSOR=powerpc ;;
1219
1218
        esac
1220
1219
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1293
1292
    i*86:skyos:*:*)
1294
1293
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1295
1294
        exit ;;
 
1295
    i*86:rdos:*:*)
 
1296
        echo ${UNAME_MACHINE}-pc-rdos
 
1297
        exit ;;
1296
1298
esac
1297
1299
 
1298
1300
#echo '(No uname command or uname output not recognized.)' 1>&2