~ubuntu-branches/ubuntu/lucid/xauth/lucid

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2006-01-04 13:29:30 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104132930-hfneda1uarkpsvfp
Tags: 1:1.0.1-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2003-10-03'
 
6
timestamp='2003-06-17'
7
7
 
8
8
# This file is free software; you can redistribute it and/or modify it
9
9
# under the terms of the GNU General Public License as published by
136
136
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
137
137
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138
138
 
 
139
## for Red Hat Linux
 
140
if test -f /etc/redhat-release ; then
 
141
    VENDOR=redhat ;
 
142
else
 
143
    VENDOR= ;
 
144
fi
 
145
 
139
146
# Note: order is significant - the case branches are not exclusive.
140
147
 
141
148
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
734
741
        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
735
742
        exit 0 ;;
736
743
    *:UNICOS/mp:*:*)
737
 
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
 
744
        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
738
745
        exit 0 ;;
739
746
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
740
747
        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
763
770
        #endif
764
771
EOF
765
772
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
766
 
        # GNU/FreeBSD systems have a "k" prefix to indicate we are using
767
 
        # FreeBSD's kernel, but not the complete OS.
768
 
        case ${LIBC} in gnu) kernel_only='k' ;; esac
769
 
        echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
 
773
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
770
774
        exit 0 ;;
771
775
    i*:CYGWIN*:*)
772
776
        echo ${UNAME_MACHINE}-pc-cygwin
811
815
        echo cris-axis-linux-gnu
812
816
        exit 0 ;;
813
817
    ia64:Linux:*:*)
814
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
818
        echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
815
819
        exit 0 ;;
816
820
    m68*:Linux:*:*)
817
821
        echo ${UNAME_MACHINE}-unknown-linux-gnu
855
859
        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
856
860
        ;;
857
861
    ppc:Linux:*:*)
858
 
        echo powerpc-unknown-linux-gnu
 
862
        echo powerpc-${VENDOR:-unknown}-linux-gnu
859
863
        exit 0 ;;
860
864
    ppc64:Linux:*:*)
861
 
        echo powerpc64-unknown-linux-gnu
 
865
        echo powerpc64-${VENDOR:-unknown}-linux-gnu
862
866
        exit 0 ;;
863
867
    alpha:Linux:*:*)
864
868
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
886
890
        echo hppa64-unknown-linux-gnu
887
891
        exit 0 ;;
888
892
    s390:Linux:*:* | s390x:Linux:*:*)
889
 
        echo ${UNAME_MACHINE}-ibm-linux
 
893
        echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
890
894
        exit 0 ;;
891
895
    sh64*:Linux:*:*)
892
896
        echo ${UNAME_MACHINE}-unknown-linux-gnu
898
902
        echo ${UNAME_MACHINE}-unknown-linux-gnu
899
903
        exit 0 ;;
900
904
    x86_64:Linux:*:*)
901
 
        echo x86_64-unknown-linux-gnu
 
905
        echo x86_64-${VENDOR:-unknown}-linux-gnu
902
906
        exit 0 ;;
903
907
    i*86:Linux:*:*)
904
908
        # The BFD linker knows what the default object file format is, so
948
952
        LIBC=gnuaout
949
953
        #endif
950
954
        #endif
951
 
        #ifdef __dietlibc__
952
 
        LIBC=dietlibc
953
 
        #endif
954
955
EOF
955
956
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
956
 
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
 
957
        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
957
958
        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
958
959
        ;;
959
960
    i*86:DYNIX/ptx:4*:*)
1167
1168
    *:QNX:*:4*)
1168
1169
        echo i386-pc-qnx
1169
1170
        exit 0 ;;
1170
 
    NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*)
 
1171
    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
1171
1172
        echo nsr-tandem-nsk${UNAME_RELEASE}
1172
1173
        exit 0 ;;
1173
1174
    *:NonStop-UX:*:*)