The R Project SVN R

Rev

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

Rev 26749 Rev 28188
Line 1... Line 1...
1
#! /bin/sh
1
#! /bin/sh
2
# Configuration validation subroutine script.
2
# Configuration validation subroutine script.
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
 
5
 
6
timestamp='2003-08-18'
6
timestamp='2004-01-05'
7
 
7
 
8
# This file is (in principle) common to ALL GNU software.
8
# This file is (in principle) common to ALL GNU software.
9
# The presence of a machine in this file suggests that SOME GNU software
9
# The presence of a machine in this file suggests that SOME GNU software
10
# can handle that machine.  It does not imply ALL GNU software can.
10
# can handle that machine.  It does not imply ALL GNU software can.
11
#
11
#
Line 116... Line 116...
116
 
116
 
117
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
117
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
118
# Here we must recognize all the valid KERNEL-OS combinations.
118
# Here we must recognize all the valid KERNEL-OS combinations.
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
case $maybe_os in
120
case $maybe_os in
-
 
121
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
121
  nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122
    os=-$maybe_os
123
    os=-$maybe_os
123
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
    ;;
125
    ;;
125
  *)
126
  *)
126
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
127
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
Line 377... Line 378...
377
		os=-bsd
378
		os=-bsd
378
		;;
379
		;;
379
	amd64)
380
	amd64)
380
		basic_machine=x86_64-pc
381
		basic_machine=x86_64-pc
381
		;;
382
		;;
-
 
383
	amd64-*)
-
 
384
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
-
 
385
		;;
382
	amdahl)
386
	amdahl)
383
		basic_machine=580-amdahl
387
		basic_machine=580-amdahl
384
		os=-sysv
388
		os=-sysv
385
		;;
389
		;;
386
	amiga | amiga-*)
390
	amiga | amiga-*)
Line 741... Line 745...
741
		;;
745
		;;
742
	or32 | or32-*)
746
	or32 | or32-*)
743
		basic_machine=or32-unknown
747
		basic_machine=or32-unknown
744
		os=-coff
748
		os=-coff
745
		;;
749
		;;
-
 
750
	os400)
-
 
751
		basic_machine=powerpc-ibm
-
 
752
		os=-os400
-
 
753
		;;
746
	OSE68000 | ose68000)
754
	OSE68000 | ose68000)
747
		basic_machine=m68000-ericsson
755
		basic_machine=m68000-ericsson
748
		os=-ose
756
		os=-ose
749
		;;
757
		;;
750
	os68k)
758
	os68k)
Line 961... Line 969...
961
		os=-tops20
969
		os=-tops20
962
		;;
970
		;;
963
	tower | tower-32)
971
	tower | tower-32)
964
		basic_machine=m68k-ncr
972
		basic_machine=m68k-ncr
965
		;;
973
		;;
-
 
974
	tpf)
-
 
975
		basic_machine=s390x-ibm
-
 
976
		os=-tpf
-
 
977
		;;
966
	udi29k)
978
	udi29k)
967
		basic_machine=a29k-amd
979
		basic_machine=a29k-amd
968
		os=-udi
980
		os=-udi
969
		;;
981
		;;
970
	ultra3)
982
	ultra3)
Line 1129... Line 1141...
1129
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1141
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1130
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1142
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1131
	      | -aos* \
1143
	      | -aos* \
1132
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1144
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1133
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1145
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1134
	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
1146
	      | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
1135
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1147
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1136
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1148
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1137
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1149
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1138
	      | -chorusos* | -chorusrdb* \
1150
	      | -chorusos* | -chorusrdb* \
1139
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1151
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1140
	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1152
	      | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1141
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1153
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1142
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1154
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1143
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1155
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1144
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1156
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1145
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1157
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1146
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
1158
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1147
	# Remember, each alternative MUST END IN *, to match a version number.
1159
	# Remember, each alternative MUST END IN *, to match a version number.
1148
		;;
1160
		;;
1149
	-qnx*)
1161
	-qnx*)
1150
		case $basic_machine in
1162
		case $basic_machine in
1151
		    x86-* | i*86-*)
1163
		    x86-* | i*86-*)
Line 1180... Line 1192...
1180
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
1192
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
1181
		;;
1193
		;;
1182
	-opened*)
1194
	-opened*)
1183
		os=-openedition
1195
		os=-openedition
1184
		;;
1196
		;;
-
 
1197
        -os400*)
-
 
1198
		os=-os400
-
 
1199
		;;
1185
	-wince*)
1200
	-wince*)
1186
		os=-wince
1201
		os=-wince
1187
		;;
1202
		;;
1188
	-osfrose*)
1203
	-osfrose*)
1189
		os=-osfrose
1204
		os=-osfrose
Line 1201... Line 1216...
1201
		os=-aos
1216
		os=-aos
1202
		;;
1217
		;;
1203
	-atheos*)
1218
	-atheos*)
1204
		os=-atheos
1219
		os=-atheos
1205
		;;
1220
		;;
-
 
1221
	-syllable*)
-
 
1222
		os=-syllable
-
 
1223
		;;
1206
	-386bsd)
1224
	-386bsd)
1207
		os=-bsd
1225
		os=-bsd
1208
		;;
1226
		;;
1209
	-ctix* | -uts*)
1227
	-ctix* | -uts*)
1210
		os=-sysv
1228
		os=-sysv
Line 1223... Line 1241...
1223
		os=`echo $os | sed -e 's|sinix|sysv|'`
1241
		os=`echo $os | sed -e 's|sinix|sysv|'`
1224
		;;
1242
		;;
1225
	-sinix*)
1243
	-sinix*)
1226
		os=-sysv4
1244
		os=-sysv4
1227
		;;
1245
		;;
-
 
1246
        -tpf*)
-
 
1247
		os=-tpf
-
 
1248
		;;
1228
	-triton*)
1249
	-triton*)
1229
		os=-sysv3
1250
		os=-sysv3
1230
		;;
1251
		;;
1231
	-oss*)
1252
	-oss*)
1232
		os=-sysv3
1253
		os=-sysv3
Line 1471... Line 1492...
1471
				vendor=ns
1492
				vendor=ns
1472
				;;
1493
				;;
1473
			-mvs* | -opened*)
1494
			-mvs* | -opened*)
1474
				vendor=ibm
1495
				vendor=ibm
1475
				;;
1496
				;;
-
 
1497
			-os400*)
-
 
1498
				vendor=ibm
-
 
1499
				;;
1476
			-ptx*)
1500
			-ptx*)
1477
				vendor=sequent
1501
				vendor=sequent
1478
				;;
1502
				;;
-
 
1503
			-tpf*)
-
 
1504
				vendor=ibm
-
 
1505
				;;
1479
			-vxsim* | -vxworks* | -windiss*)
1506
			-vxsim* | -vxworks* | -windiss*)
1480
				vendor=wrs
1507
				vendor=wrs
1481
				;;
1508
				;;
1482
			-aux*)
1509
			-aux*)
1483
				vendor=apple
1510
				vendor=apple