comparison config.guess @ 91367:c70e45a7acfd

Merge from emacs--devo--0 Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
author Miles Bader <miles@gnu.org>
date Wed, 30 Jan 2008 07:57:28 +0000
parents ec8ebd395432
children bebcd628da3f
comparison
equal deleted inserted replaced
91366:86f3a8f0a3a6 91367:c70e45a7acfd
1 #! /bin/sh 1 #! /bin/sh
2 # Attempt to guess a canonical system name. 2 # Attempt to guess a canonical system name.
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4 # 2002, 2003, 2004, 2005, 2006, 2007 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5 # Free Software Foundation, Inc. 5 # Free Software Foundation, Inc.
6 6
7 timestamp='2007-02-26' 7 timestamp='2008-01-08'
8 8
9 # This file is free software; you can redistribute it and/or modify it 9 # This file is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by 10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or 11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version. 12 # (at your option) any later version.
54 54
55 version="\ 55 version="\
56 GNU config.guess ($timestamp) 56 GNU config.guess ($timestamp)
57 57
58 Originally written by Per Bothner. 58 Originally written by Per Bothner.
59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
60 Free Software Foundation, Inc. 60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61 61
62 This is free software; see the source for copying conditions. There is NO 62 This is free software; see the source for copying conditions. There is NO
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64 64
65 help=" 65 help="
328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329 exit ;; 329 exit ;;
330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;; 332 exit ;;
333 i86pc:SunOS:5.*:*) 333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;; 335 exit ;;
336 sun4*:SunOS:6*:*) 336 sun4*:SunOS:6*:*)
337 # According to config.sub, this is the proper way to canonicalize 337 # According to config.sub, this is the proper way to canonicalize
338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
530 echo rs6000-ibm-aix3.2.4 530 echo rs6000-ibm-aix3.2.4
531 else 531 else
532 echo rs6000-ibm-aix3.2 532 echo rs6000-ibm-aix3.2
533 fi 533 fi
534 exit ;; 534 exit ;;
535 *:AIX:*:[45]) 535 *:AIX:*:[456])
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538 IBM_ARCH=rs6000 538 IBM_ARCH=rs6000
539 else 539 else
540 IBM_ARCH=powerpc 540 IBM_ARCH=powerpc
789 echo ${UNAME_MACHINE}-mingw32 789 echo ${UNAME_MACHINE}-mingw32
790 exit ;; 790 exit ;;
791 i*:PW*:*) 791 i*:PW*:*)
792 echo ${UNAME_MACHINE}-pc-pw32 792 echo ${UNAME_MACHINE}-pc-pw32
793 exit ;; 793 exit ;;
794 x86:Interix*:[3456]*) 794 *:Interix*:[3456]*)
795 echo i586-pc-interix${UNAME_RELEASE} 795 case ${UNAME_MACHINE} in
796 exit ;; 796 x86)
797 EM64T:Interix*:[3456]* | authenticamd:Interix*:[3456]*) 797 echo i586-pc-interix${UNAME_RELEASE}
798 echo x86_64-unknown-interix${UNAME_RELEASE} 798 exit ;;
799 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 ;;
800 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 806 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
801 echo i${UNAME_MACHINE}-pc-mks 807 echo i${UNAME_MACHINE}-pc-mks
802 exit ;; 808 exit ;;
803 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 809 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
804 # How do we know it's Interix rather than the generic POSIX subsystem? 810 # How do we know it's Interix rather than the generic POSIX subsystem?
828 exit ;; 834 exit ;;
829 i*86:Minix:*:*) 835 i*86:Minix:*:*)
830 echo ${UNAME_MACHINE}-pc-minix 836 echo ${UNAME_MACHINE}-pc-minix
831 exit ;; 837 exit ;;
832 arm*:Linux:*:*) 838 arm*:Linux:*:*)
833 echo ${UNAME_MACHINE}-unknown-linux-gnu 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
834 exit ;; 847 exit ;;
835 avr32*:Linux:*:*) 848 avr32*:Linux:*:*)
836 echo ${UNAME_MACHINE}-unknown-linux-gnu 849 echo ${UNAME_MACHINE}-unknown-linux-gnu
837 exit ;; 850 exit ;;
838 cris:Linux:*:*) 851 cris:Linux:*:*)
949 echo ${UNAME_MACHINE}-dec-linux-gnu 962 echo ${UNAME_MACHINE}-dec-linux-gnu
950 exit ;; 963 exit ;;
951 x86_64:Linux:*:*) 964 x86_64:Linux:*:*)
952 echo x86_64-unknown-linux-gnu 965 echo x86_64-unknown-linux-gnu
953 exit ;; 966 exit ;;
954 xtensa:Linux:*:*) 967 xtensa*:Linux:*:*)
955 echo xtensa-unknown-linux-gnu 968 echo ${UNAME_MACHINE}-unknown-linux-gnu
956 exit ;; 969 exit ;;
957 i*86:Linux:*:*) 970 i*86:Linux:*:*)
958 # The BFD linker knows what the default object file format is, so 971 # The BFD linker knows what the default object file format is, so
959 # first see if it will tell us. cd to the root directory to prevent 972 # first see if it will tell us. cd to the root directory to prevent
960 # problems with other programs or directories called `ld' in the path. 973 # problems with other programs or directories called `ld' in the path.