1#! /bin/sh 2# Configuration validation subroutine script. 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 |
6timestamp='2004-02-23' |
7 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 10# can handle that machine. It does not imply ALL GNU software can. 11# 12# This file is free software; you can redistribute it and/or modify 13# it under the terms of the GNU General Public License as published by 14# the Free Software Foundation; either version 2 of the License, or --- 98 unchanged lines hidden (view full) --- 113 *) echo "$me: too many arguments$help" >&2 114 exit 1;; 115esac 116 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. 119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120case $maybe_os in |
121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
123 os=-$maybe_os 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 125 ;; 126 *) 127 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 128 if [ $basic_machine != $1 ] 129 then os=`echo $1 | sed 's/.*-/-/'` 130 else os=; fi --- 227 unchanged lines hidden (view full) --- 358 ;; 359 3b*) 360 basic_machine=we32k-att 361 ;; 362 a29khif) 363 basic_machine=a29k-amd 364 os=-udi 365 ;; |
366 abacus) 367 basic_machine=abacus-unknown 368 ;; |
369 adobe68k) 370 basic_machine=m68010-adobe 371 os=-scout 372 ;; 373 alliant | fx80) 374 basic_machine=fx80-alliant 375 ;; 376 altos | altos3068) 377 basic_machine=m68k-altos 378 ;; 379 am29k) 380 basic_machine=a29k-none 381 os=-bsd 382 ;; 383 amd64) 384 basic_machine=x86_64-pc 385 ;; |
386 amd64-*) 387 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 388 ;; |
389 amdahl) 390 basic_machine=580-amdahl 391 os=-sysv 392 ;; 393 amiga | amiga-*) 394 basic_machine=m68k-unknown 395 ;; 396 amigaos | amigados) --- 43 unchanged lines hidden (view full) --- 440 convex-c38) 441 basic_machine=c38-convex 442 os=-bsd 443 ;; 444 cray | j90) 445 basic_machine=j90-cray 446 os=-unicos 447 ;; |
448 cr16c) 449 basic_machine=cr16c-unknown 450 os=-elf 451 ;; |
452 crds | unos) 453 basic_machine=m68k-crds 454 ;; 455 cris | cris-* | etrax*) 456 basic_machine=cris-axis 457 ;; |
458 crx) 459 basic_machine=crx-unknown 460 os=-elf 461 ;; |
462 da30 | da30-*) 463 basic_machine=m68k-da30 464 ;; 465 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 466 basic_machine=mips-dec 467 ;; 468 decsystem10* | dec10*) 469 basic_machine=pdp10-dec --- 283 unchanged lines hidden (view full) --- 753 op50n-* | op60c-*) 754 basic_machine=hppa1.1-oki 755 os=-proelf 756 ;; 757 or32 | or32-*) 758 basic_machine=or32-unknown 759 os=-coff 760 ;; |
761 os400) 762 basic_machine=powerpc-ibm 763 os=-os400 764 ;; |
765 OSE68000 | ose68000) 766 basic_machine=m68000-ericsson 767 os=-ose 768 ;; 769 os68k) 770 basic_machine=m68k-none 771 os=-os68k 772 ;; --- 204 unchanged lines hidden (view full) --- 977 ;; 978 toad1) 979 basic_machine=pdp10-xkl 980 os=-tops20 981 ;; 982 tower | tower-32) 983 basic_machine=m68k-ncr 984 ;; |
985 tpf) 986 basic_machine=s390x-ibm 987 os=-tpf 988 ;; |
989 udi29k) 990 basic_machine=a29k-amd 991 os=-udi 992 ;; 993 ultra3) 994 basic_machine=a29k-nyu 995 os=-sym1 996 ;; --- 152 unchanged lines hidden (view full) --- 1149 # -sysv* is not here because it comes later, after sysvr4. 1150 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1151 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1152 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1153 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1154 | -aos* \ 1155 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1156 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1157 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1158 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1159 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1160 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1161 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1162 | -chorusos* | -chorusrdb* \ 1163 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1164 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1165 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1166 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1167 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1168 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1169 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1170 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) |
1171 # Remember, each alternative MUST END IN *, to match a version number. 1172 ;; 1173 -qnx*) 1174 case $basic_machine in 1175 x86-* | i*86-*) 1176 ;; 1177 *) 1178 os=-nto$os --- 22 unchanged lines hidden (view full) --- 1201 os=`echo $os | sed -e 's|sunos5|solaris2|'` 1202 ;; 1203 -sunos6*) 1204 os=`echo $os | sed -e 's|sunos6|solaris3|'` 1205 ;; 1206 -opened*) 1207 os=-openedition 1208 ;; |
1209 -os400*) 1210 os=-os400 1211 ;; |
1212 -wince*) 1213 os=-wince 1214 ;; 1215 -osfrose*) 1216 os=-osfrose 1217 ;; 1218 -osf*) 1219 os=-osf --- 5 unchanged lines hidden (view full) --- 1225 os=-bsd 1226 ;; 1227 -acis*) 1228 os=-aos 1229 ;; 1230 -atheos*) 1231 os=-atheos 1232 ;; |
1233 -syllable*) 1234 os=-syllable 1235 ;; |
1236 -386bsd) 1237 os=-bsd 1238 ;; 1239 -ctix* | -uts*) 1240 os=-sysv 1241 ;; 1242 -nova*) 1243 os=-rtmk-nova --- 6 unchanged lines hidden (view full) --- 1250 ;; 1251 # Preserve the version number of sinix5. 1252 -sinix5.*) 1253 os=`echo $os | sed -e 's|sinix|sysv|'` 1254 ;; 1255 -sinix*) 1256 os=-sysv4 1257 ;; |
1258 -tpf*) 1259 os=-tpf 1260 ;; |
1261 -triton*) 1262 os=-sysv3 1263 ;; 1264 -oss*) 1265 os=-sysv3 1266 ;; 1267 -svr4) 1268 os=-sysv4 --- 232 unchanged lines hidden (view full) --- 1501 vendor=omron 1502 ;; 1503 -genix*) 1504 vendor=ns 1505 ;; 1506 -mvs* | -opened*) 1507 vendor=ibm 1508 ;; |
1509 -os400*) 1510 vendor=ibm 1511 ;; |
1512 -ptx*) 1513 vendor=sequent 1514 ;; |
1515 -tpf*) 1516 vendor=ibm 1517 ;; |
1518 -vxsim* | -vxworks* | -windiss*) 1519 vendor=wrs 1520 ;; 1521 -aux*) 1522 vendor=apple 1523 ;; 1524 -hms*) 1525 vendor=hitachi --- 24 unchanged lines hidden --- |