The R Project SVN R

Rev

Rev 60114 | Rev 66998 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 60114 Rev 62956
Line 1... Line 1...
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,
-
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-
 
5
#   2011, 2012 Free Software Foundation, Inc.
3
#   Copyright 1992-2013 Free Software Foundation, Inc.
6
 
4
 
7
timestamp='2012-08-03'
5
timestamp='2013-06-14'
8
 
6
 
9
# This file is free software; you can redistribute it and/or modify it
7
# 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
8
# under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2 of the License, or
9
# the Free Software Foundation; either version 3 of the License, or
12
# (at your option) any later version.
10
# (at your option) any later version.
13
#
11
#
14
# This program is distributed in the hope that it will be useful, but
12
# This program is distributed in the hope that it will be useful, but
15
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Line 20... Line 18...
20
# along with this program; if not, see <http://www.gnu.org/licenses/>.
18
# along with this program; if not, see <http://www.gnu.org/licenses/>.
21
#
19
#
22
# As a special exception to the GNU General Public License, if you
20
# As a special exception to the GNU General Public License, if you
23
# distribute this file as part of a program that contains a
21
# distribute this file as part of a program that contains a
24
# configuration script generated by Autoconf, you may include it under
22
# configuration script generated by Autoconf, you may include it under
25
# the same distribution terms that you use for the rest of that program.
23
# the same distribution terms that you use for the rest of that
26
 
-
 
27
 
-
 
28
# Originally written by Per Bothner.  Please send patches (context
24
# program.  This Exception is an additional permission under section 7
29
# diff format) to <config-patches@gnu.org> and include a ChangeLog
25
# of the GNU General Public License, version 3 ("GPLv3").
30
# entry.
-
 
31
#
26
#
32
# This script attempts to guess a canonical system name similar to
-
 
33
# config.sub.  If it succeeds, it prints the system name on stdout, and
-
 
34
# exits with 0.  Otherwise, it exits with 1.
27
# Originally written by Per Bothner.
35
#
28
#
36
# You can get the latest version of this script from:
29
# You can get the latest version of this script from:
37
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-
 
31
#
-
 
32
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
-
 
33
 
38
 
34
 
39
me=`echo "$0" | sed -e 's,.*/,,'`
35
me=`echo "$0" | sed -e 's,.*/,,'`
40
 
36
 
41
usage="\
37
usage="\
42
Usage: $0 [OPTION]
38
Usage: $0 [OPTION]
Line 52... Line 48...
52
 
48
 
53
version="\
49
version="\
54
GNU config.guess ($timestamp)
50
GNU config.guess ($timestamp)
55
 
51
 
56
Originally written by Per Bothner.
52
Originally written by Per Bothner.
57
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-
 
58
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-
 
59
Free Software Foundation, Inc.
53
Copyright 1992-2013 Free Software Foundation, Inc.
60
 
54
 
61
This is free software; see the source for copying conditions.  There is NO
55
This is free software; see the source for copying conditions.  There is NO
62
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
56
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
 
57
 
64
help="
58
help="
Line 136... Line 130...
136
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
130
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
131
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
132
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
139
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
 
134
 
-
 
135
case "${UNAME_SYSTEM}" in
-
 
136
Linux|GNU|GNU/*)
-
 
137
	# If the system lacks a compiler, then just pick glibc.
-
 
138
	# We could probably try harder.
-
 
139
	LIBC=gnu
-
 
140
 
-
 
141
	eval $set_cc_for_build
-
 
142
	cat <<-EOF > $dummy.c
-
 
143
	#include <features.h>
-
 
144
	#if defined(__UCLIBC__)
-
 
145
	LIBC=uclibc
-
 
146
	#elif defined(__dietlibc__)
-
 
147
	LIBC=dietlibc
-
 
148
	#else
-
 
149
	LIBC=gnu
-
 
150
	#endif
-
 
151
	EOF
-
 
152
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
-
 
153
	;;
-
 
154
esac
-
 
155
 
141
# Note: order is significant - the case branches are not exclusive.
156
# Note: order is significant - the case branches are not exclusive.
142
 
157
 
143
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
158
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144
    *:NetBSD:*:*)
159
    *:NetBSD:*:*)
145
	# NetBSD (nbsd) targets should (where applicable) match one or
160
	# NetBSD (nbsd) targets should (where applicable) match one or
Line 304... Line 319...
304
	echo powerpc-ibm-os400
319
	echo powerpc-ibm-os400
305
	exit ;;
320
	exit ;;
306
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
321
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
307
	echo arm-acorn-riscix${UNAME_RELEASE}
322
	echo arm-acorn-riscix${UNAME_RELEASE}
308
	exit ;;
323
	exit ;;
309
    arm:riscos:*:*|arm:RISCOS:*:*)
324
    arm*:riscos:*:*|arm*:RISCOS:*:*)
310
	echo arm-unknown-riscos
325
	echo arm-unknown-riscos
311
	exit ;;
326
	exit ;;
312
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
327
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
313
	echo hppa1.1-hitachi-hiuxmpp
328
	echo hppa1.1-hitachi-hiuxmpp
314
	exit ;;
329
	exit ;;
Line 857... Line 872...
857
    prep*:SunOS:5.*:*)
872
    prep*:SunOS:5.*:*)
858
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
873
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
859
	exit ;;
874
	exit ;;
860
    *:GNU:*:*)
875
    *:GNU:*:*)
861
	# the GNU system
876
	# the GNU system
862
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
877
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
863
	exit ;;
878
	exit ;;
864
    *:GNU/*:*:*)
879
    *:GNU/*:*:*)
865
	# other systems with GNU libc and userland
880
	# other systems with GNU libc and userland
866
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
881
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
867
	exit ;;
882
	exit ;;
868
    i*86:Minix:*:*)
883
    i*86:Minix:*:*)
869
	echo ${UNAME_MACHINE}-pc-minix
884
	echo ${UNAME_MACHINE}-pc-minix
870
	exit ;;
885
	exit ;;
871
    aarch64:Linux:*:*)
886
    aarch64:Linux:*:*)
872
	echo ${UNAME_MACHINE}-unknown-linux-gnu
887
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
873
	exit ;;
888
	exit ;;
874
    aarch64_be:Linux:*:*)
889
    aarch64_be:Linux:*:*)
875
	UNAME_MACHINE=aarch64_be
890
	UNAME_MACHINE=aarch64_be
876
	echo ${UNAME_MACHINE}-unknown-linux-gnu
891
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
877
	exit ;;
892
	exit ;;
878
    alpha:Linux:*:*)
893
    alpha:Linux:*:*)
879
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
880
	  EV5)   UNAME_MACHINE=alphaev5 ;;
895
	  EV5)   UNAME_MACHINE=alphaev5 ;;
881
	  EV56)  UNAME_MACHINE=alphaev56 ;;
896
	  EV56)  UNAME_MACHINE=alphaev56 ;;
Line 884... Line 899...
884
	  EV6)   UNAME_MACHINE=alphaev6 ;;
899
	  EV6)   UNAME_MACHINE=alphaev6 ;;
885
	  EV67)  UNAME_MACHINE=alphaev67 ;;
900
	  EV67)  UNAME_MACHINE=alphaev67 ;;
886
	  EV68*) UNAME_MACHINE=alphaev68 ;;
901
	  EV68*) UNAME_MACHINE=alphaev68 ;;
887
	esac
902
	esac
888
	objdump --private-headers /bin/sh | grep -q ld.so.1
903
	objdump --private-headers /bin/sh | grep -q ld.so.1
889
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
904
	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
890
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
905
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
-
 
906
	exit ;;
-
 
907
    arc:Linux:*:* | arceb:Linux:*:*)
-
 
908
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
891
	exit ;;
909
	exit ;;
892
    arm*:Linux:*:*)
910
    arm*:Linux:*:*)
893
	eval $set_cc_for_build
911
	eval $set_cc_for_build
894
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
912
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
895
	    | grep -q __ARM_EABI__
913
	    | grep -q __ARM_EABI__
896
	then
914
	then
897
	    echo ${UNAME_MACHINE}-unknown-linux-gnu
915
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
898
	else
916
	else
899
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
917
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
900
		| grep -q __ARM_PCS_VFP
918
		| grep -q __ARM_PCS_VFP
901
	    then
919
	    then
902
		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
920
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
903
	    else
921
	    else
904
		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
922
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
905
	    fi
923
	    fi
906
	fi
924
	fi
907
	exit ;;
925
	exit ;;
908
    avr32*:Linux:*:*)
926
    avr32*:Linux:*:*)
909
	echo ${UNAME_MACHINE}-unknown-linux-gnu
927
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
910
	exit ;;
928
	exit ;;
911
    cris:Linux:*:*)
929
    cris:Linux:*:*)
912
	echo ${UNAME_MACHINE}-axis-linux-gnu
930
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
913
	exit ;;
931
	exit ;;
914
    crisv32:Linux:*:*)
932
    crisv32:Linux:*:*)
915
	echo ${UNAME_MACHINE}-axis-linux-gnu
933
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
916
	exit ;;
934
	exit ;;
917
    frv:Linux:*:*)
935
    frv:Linux:*:*)
918
	echo ${UNAME_MACHINE}-unknown-linux-gnu
936
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
919
	exit ;;
937
	exit ;;
920
    hexagon:Linux:*:*)
938
    hexagon:Linux:*:*)
921
	echo ${UNAME_MACHINE}-unknown-linux-gnu
939
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
922
	exit ;;
940
	exit ;;
923
    i*86:Linux:*:*)
941
    i*86:Linux:*:*)
924
	LIBC=gnu
-
 
925
	eval $set_cc_for_build
-
 
926
	sed 's/^	//' << EOF >$dummy.c
-
 
927
	#ifdef __dietlibc__
-
 
928
	LIBC=dietlibc
-
 
929
	#endif
-
 
930
EOF
-
 
931
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
-
 
932
	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
942
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
933
	exit ;;
943
	exit ;;
934
    ia64:Linux:*:*)
944
    ia64:Linux:*:*)
935
	echo ${UNAME_MACHINE}-unknown-linux-gnu
945
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
936
	exit ;;
946
	exit ;;
937
    m32r*:Linux:*:*)
947
    m32r*:Linux:*:*)
938
	echo ${UNAME_MACHINE}-unknown-linux-gnu
948
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
939
	exit ;;
949
	exit ;;
940
    m68*:Linux:*:*)
950
    m68*:Linux:*:*)
941
	echo ${UNAME_MACHINE}-unknown-linux-gnu
951
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
942
	exit ;;
952
	exit ;;
943
    mips:Linux:*:* | mips64:Linux:*:*)
953
    mips:Linux:*:* | mips64:Linux:*:*)
944
	eval $set_cc_for_build
954
	eval $set_cc_for_build
945
	sed 's/^	//' << EOF >$dummy.c
955
	sed 's/^	//' << EOF >$dummy.c
946
	#undef CPU
956
	#undef CPU
Line 955... Line 965...
955
	CPU=
965
	CPU=
956
	#endif
966
	#endif
957
	#endif
967
	#endif
958
EOF
968
EOF
959
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
969
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
960
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
970
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
961
	;;
971
	;;
-
 
972
    or1k:Linux:*:*)
-
 
973
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
-
 
974
	exit ;;
962
    or32:Linux:*:*)
975
    or32:Linux:*:*)
963
	echo ${UNAME_MACHINE}-unknown-linux-gnu
976
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
964
	exit ;;
977
	exit ;;
965
    padre:Linux:*:*)
978
    padre:Linux:*:*)
966
	echo sparc-unknown-linux-gnu
979
	echo sparc-unknown-linux-${LIBC}
967
	exit ;;
980
	exit ;;
968
    parisc64:Linux:*:* | hppa64:Linux:*:*)
981
    parisc64:Linux:*:* | hppa64:Linux:*:*)
969
	echo hppa64-unknown-linux-gnu
982
	echo hppa64-unknown-linux-${LIBC}
970
	exit ;;
983
	exit ;;
971
    parisc:Linux:*:* | hppa:Linux:*:*)
984
    parisc:Linux:*:* | hppa:Linux:*:*)
972
	# Look for CPU level
985
	# Look for CPU level
973
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
986
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
974
	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
987
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
975
	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
988
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
976
	  *)    echo hppa-unknown-linux-gnu ;;
989
	  *)    echo hppa-unknown-linux-${LIBC} ;;
977
	esac
990
	esac
978
	exit ;;
991
	exit ;;
979
    ppc64:Linux:*:*)
992
    ppc64:Linux:*:*)
980
	echo powerpc64-unknown-linux-gnu
993
	echo powerpc64-unknown-linux-${LIBC}
981
	exit ;;
994
	exit ;;
982
    ppc:Linux:*:*)
995
    ppc:Linux:*:*)
983
	echo powerpc-unknown-linux-gnu
996
	echo powerpc-unknown-linux-${LIBC}
-
 
997
	exit ;;
-
 
998
    ppc64le:Linux:*:*)
-
 
999
	echo powerpc64le-unknown-linux-${LIBC}
-
 
1000
	exit ;;
-
 
1001
    ppcle:Linux:*:*)
-
 
1002
	echo powerpcle-unknown-linux-${LIBC}
984
	exit ;;
1003
	exit ;;
985
    s390:Linux:*:* | s390x:Linux:*:*)
1004
    s390:Linux:*:* | s390x:Linux:*:*)
986
	echo ${UNAME_MACHINE}-ibm-linux
1005
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
987
	exit ;;
1006
	exit ;;
988
    sh64*:Linux:*:*)
1007
    sh64*:Linux:*:*)
989
	echo ${UNAME_MACHINE}-unknown-linux-gnu
1008
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
990
	exit ;;
1009
	exit ;;
991
    sh*:Linux:*:*)
1010
    sh*:Linux:*:*)
992
	echo ${UNAME_MACHINE}-unknown-linux-gnu
1011
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
993
	exit ;;
1012
	exit ;;
994
    sparc:Linux:*:* | sparc64:Linux:*:*)
1013
    sparc:Linux:*:* | sparc64:Linux:*:*)
995
	echo ${UNAME_MACHINE}-unknown-linux-gnu
1014
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
996
	exit ;;
1015
	exit ;;
997
    tile*:Linux:*:*)
1016
    tile*:Linux:*:*)
998
	echo ${UNAME_MACHINE}-unknown-linux-gnu
1017
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
999
	exit ;;
1018
	exit ;;
1000
    vax:Linux:*:*)
1019
    vax:Linux:*:*)
1001
	echo ${UNAME_MACHINE}-dec-linux-gnu
1020
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1002
	exit ;;
1021
	exit ;;
1003
    x86_64:Linux:*:*)
1022
    x86_64:Linux:*:*)
1004
	echo ${UNAME_MACHINE}-unknown-linux-gnu
1023
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1005
	exit ;;
1024
	exit ;;
1006
    xtensa*:Linux:*:*)
1025
    xtensa*:Linux:*:*)
1007
	echo ${UNAME_MACHINE}-unknown-linux-gnu
1026
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1008
	exit ;;
1027
	exit ;;
1009
    i*86:DYNIX/ptx:4*:*)
1028
    i*86:DYNIX/ptx:4*:*)
1010
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1029
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1011
	# earlier versions are messed up and put the nodename in both
1030
	# earlier versions are messed up and put the nodename in both
1012
	# sysname and nodename.
1031
	# sysname and nodename.
Line 1206... Line 1225...
1206
	echo i586-pc-beos
1225
	echo i586-pc-beos
1207
	exit ;;
1226
	exit ;;
1208
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
1227
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
1209
	echo i586-pc-haiku
1228
	echo i586-pc-haiku
1210
	exit ;;
1229
	exit ;;
-
 
1230
    x86_64:Haiku:*:*)
-
 
1231
	echo x86_64-unknown-haiku
-
 
1232
	exit ;;
1211
    SX-4:SUPER-UX:*:*)
1233
    SX-4:SUPER-UX:*:*)
1212
	echo sx4-nec-superux${UNAME_RELEASE}
1234
	echo sx4-nec-superux${UNAME_RELEASE}
1213
	exit ;;
1235
	exit ;;
1214
    SX-5:SUPER-UX:*:*)
1236
    SX-5:SUPER-UX:*:*)
1215
	echo sx5-nec-superux${UNAME_RELEASE}
1237
	echo sx5-nec-superux${UNAME_RELEASE}
Line 1232... Line 1254...
1232
    *:Rhapsody:*:*)
1254
    *:Rhapsody:*:*)
1233
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1255
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1234
	exit ;;
1256
	exit ;;
1235
    *:Darwin:*:*)
1257
    *:Darwin:*:*)
1236
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1258
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
-
 
1259
	eval $set_cc_for_build
-
 
1260
	if test "$UNAME_PROCESSOR" = unknown ; then
1237
	case $UNAME_PROCESSOR in
1261
	    UNAME_PROCESSOR=powerpc
1238
	    i386)
1262
	fi
1239
		eval $set_cc_for_build
-
 
1240
		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1263
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1241
		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1264
	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1242
		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1265
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1243
		      grep IS_64BIT_ARCH >/dev/null
1266
		grep IS_64BIT_ARCH >/dev/null
1244
		  then
1267
	    then
-
 
1268
		case $UNAME_PROCESSOR in
1245
		      UNAME_PROCESSOR="x86_64"
1269
		    i386) UNAME_PROCESSOR=x86_64 ;;
-
 
1270
		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
1246
		  fi
1271
		esac
1247
		fi ;;
1272
	    fi
1248
	    unknown) UNAME_PROCESSOR=powerpc ;;
-
 
1249
	esac
1273
	fi
1250
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1274
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1251
	exit ;;
1275
	exit ;;
1252
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
1276
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
1253
	UNAME_PROCESSOR=`uname -p`
1277
	UNAME_PROCESSOR=`uname -p`
1254
	if test "$UNAME_PROCESSOR" = "x86"; then
1278
	if test "$UNAME_PROCESSOR" = "x86"; then