the small playstation sound emulator

config.sub 32KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627
  1. #! /bin/sh
  2. # Configuration validation subroutine script.
  3. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  4. # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  5. # Inc.
  6. timestamp='2006-07-02'
  7. # This file is (in principle) common to ALL GNU software.
  8. # The presence of a machine in this file suggests that SOME GNU software
  9. # can handle that machine. It does not imply ALL GNU software can.
  10. #
  11. # This file is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. # GNU General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  24. # 02110-1301, USA.
  25. #
  26. # As a special exception to the GNU General Public License, if you
  27. # distribute this file as part of a program that contains a
  28. # configuration script generated by Autoconf, you may include it under
  29. # the same distribution terms that you use for the rest of that program.
  30. # Please send patches to <config-patches@gnu.org>. Submit a context
  31. # diff and a properly formatted ChangeLog entry.
  32. #
  33. # Configuration subroutine to validate and canonicalize a configuration type.
  34. # Supply the specified configuration type as an argument.
  35. # If it is invalid, we print an error message on stderr and exit with code 1.
  36. # Otherwise, we print the canonical config type on stdout and succeed.
  37. # This file is supposed to be the same for all GNU packages
  38. # and recognize all the CPU types, system types and aliases
  39. # that are meaningful with *any* GNU software.
  40. # Each package is responsible for reporting which valid configurations
  41. # it does not support. The user should be able to distinguish
  42. # a failure to support a valid configuration from a meaningless
  43. # configuration.
  44. # The goal of this file is to map all the various variations of a given
  45. # machine specification into a single specification in the form:
  46. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  47. # or in some cases, the newer four-part form:
  48. # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  49. # It is wrong to echo any other type of specification.
  50. me=`echo "$0" | sed -e 's,.*/,,'`
  51. usage="\
  52. Usage: $0 [OPTION] CPU-MFR-OPSYS
  53. $0 [OPTION] ALIAS
  54. Canonicalize a configuration name.
  55. Operation modes:
  56. -h, --help print this help, then exit
  57. -t, --time-stamp print date of last modification, then exit
  58. -v, --version print version number, then exit
  59. Report bugs and patches to <config-patches@gnu.org>."
  60. version="\
  61. GNU config.sub ($timestamp)
  62. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  63. Free Software Foundation, Inc.
  64. This is free software; see the source for copying conditions. There is NO
  65. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  66. help="
  67. Try \`$me --help' for more information."
  68. # Parse command line
  69. while test $# -gt 0 ; do
  70. case $1 in
  71. --time-stamp | --time* | -t )
  72. echo "$timestamp" ; exit ;;
  73. --version | -v )
  74. echo "$version" ; exit ;;
  75. --help | --h* | -h )
  76. echo "$usage"; exit ;;
  77. -- ) # Stop option processing
  78. shift; break ;;
  79. - ) # Use stdin as input.
  80. break ;;
  81. -* )
  82. echo "$me: invalid option $1$help"
  83. exit 1 ;;
  84. *local*)
  85. # First pass through any local machine types.
  86. echo $1
  87. exit ;;
  88. * )
  89. break ;;
  90. esac
  91. done
  92. case $# in
  93. 0) echo "$me: missing argument$help" >&2
  94. exit 1;;
  95. 1) ;;
  96. *) echo "$me: too many arguments$help" >&2
  97. exit 1;;
  98. esac
  99. # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  100. # Here we must recognize all the valid KERNEL-OS combinations.
  101. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  102. case $maybe_os in
  103. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  104. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  105. storm-chaos* | os2-emx* | rtmk-nova*)
  106. os=-$maybe_os
  107. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  108. ;;
  109. *)
  110. basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  111. if [ $basic_machine != $1 ]
  112. then os=`echo $1 | sed 's/.*-/-/'`
  113. else os=; fi
  114. ;;
  115. esac
  116. ### Let's recognize common machines as not being operating systems so
  117. ### that things like config.sub decstation-3100 work. We also
  118. ### recognize some manufacturers as not being operating systems, so we
  119. ### can provide default operating systems below.
  120. case $os in
  121. -sun*os*)
  122. # Prevent following clause from handling this invalid input.
  123. ;;
  124. -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  125. -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  126. -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  127. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  128. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  129. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  130. -apple | -axis | -knuth | -cray)
  131. os=
  132. basic_machine=$1
  133. ;;
  134. -sim | -cisco | -oki | -wec | -winbond)
  135. os=
  136. basic_machine=$1
  137. ;;
  138. -scout)
  139. ;;
  140. -wrs)
  141. os=-vxworks
  142. basic_machine=$1
  143. ;;
  144. -chorusos*)
  145. os=-chorusos
  146. basic_machine=$1
  147. ;;
  148. -chorusrdb)
  149. os=-chorusrdb
  150. basic_machine=$1
  151. ;;
  152. -hiux*)
  153. os=-hiuxwe2
  154. ;;
  155. -sco6)
  156. os=-sco5v6
  157. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  158. ;;
  159. -sco5)
  160. os=-sco3.2v5
  161. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  162. ;;
  163. -sco4)
  164. os=-sco3.2v4
  165. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  166. ;;
  167. -sco3.2.[4-9]*)
  168. os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  169. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  170. ;;
  171. -sco3.2v[4-9]*)
  172. # Don't forget version if it is 3.2v4 or newer.
  173. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  174. ;;
  175. -sco5v6*)
  176. # Don't forget version if it is 3.2v4 or newer.
  177. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  178. ;;
  179. -sco*)
  180. os=-sco3.2v2
  181. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  182. ;;
  183. -udk*)
  184. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  185. ;;
  186. -isc)
  187. os=-isc2.2
  188. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  189. ;;
  190. -clix*)
  191. basic_machine=clipper-intergraph
  192. ;;
  193. -isc*)
  194. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  195. ;;
  196. -lynx*)
  197. os=-lynxos
  198. ;;
  199. -ptx*)
  200. basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  201. ;;
  202. -windowsnt*)
  203. os=`echo $os | sed -e 's/windowsnt/winnt/'`
  204. ;;
  205. -psos*)
  206. os=-psos
  207. ;;
  208. -mint | -mint[0-9]*)
  209. basic_machine=m68k-atari
  210. os=-mint
  211. ;;
  212. esac
  213. # Decode aliases for certain CPU-COMPANY combinations.
  214. case $basic_machine in
  215. # Recognize the basic CPU types without company name.
  216. # Some are omitted here because they have special meanings below.
  217. 1750a | 580 \
  218. | a29k \
  219. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  220. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  221. | am33_2.0 \
  222. | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  223. | bfin \
  224. | c4x | clipper \
  225. | d10v | d30v | dlx | dsp16xx | dvp \
  226. | fr30 | frv \
  227. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  228. | i370 | i860 | i960 | ia64 \
  229. | ip2k | iq2000 \
  230. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  231. | maxq | mb | microblaze | mcore \
  232. | mips | mipsbe | mipseb | mipsel | mipsle \
  233. | mips16 \
  234. | mips64 | mips64el \
  235. | mips64vr | mips64vrel \
  236. | mips64orion | mips64orionel \
  237. | mips64vr4100 | mips64vr4100el \
  238. | mips64vr4300 | mips64vr4300el \
  239. | mips64vr5000 | mips64vr5000el \
  240. | mips64vr5900 | mips64vr5900el \
  241. | mipsisa32 | mipsisa32el \
  242. | mipsisa32r2 | mipsisa32r2el \
  243. | mipsisa64 | mipsisa64el \
  244. | mipsisa64r2 | mipsisa64r2el \
  245. | mipsisa64sb1 | mipsisa64sb1el \
  246. | mipsisa64sr71k | mipsisa64sr71kel \
  247. | mipstx39 | mipstx39el \
  248. | mn10200 | mn10300 \
  249. | mt \
  250. | msp430 \
  251. | nios | nios2 \
  252. | ns16k | ns32k \
  253. | or32 \
  254. | pdp10 | pdp11 | pj | pjl \
  255. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  256. | pyramid \
  257. | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  258. | sh64 | sh64le \
  259. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  260. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  261. | spu | strongarm \
  262. | tahoe | thumb | tic4x | tic80 | tron \
  263. | v850 | v850e \
  264. | we32k \
  265. | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
  266. | z8k)
  267. basic_machine=$basic_machine-unknown
  268. ;;
  269. m6811 | m68hc11 | m6812 | m68hc12)
  270. # Motorola 68HC11/12.
  271. basic_machine=$basic_machine-unknown
  272. os=-none
  273. ;;
  274. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  275. ;;
  276. ms1)
  277. basic_machine=mt-unknown
  278. ;;
  279. # We use `pc' rather than `unknown'
  280. # because (1) that's what they normally are, and
  281. # (2) the word "unknown" tends to confuse beginning users.
  282. i*86 | x86_64)
  283. basic_machine=$basic_machine-pc
  284. ;;
  285. # Object if more than one company name word.
  286. *-*-*)
  287. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  288. exit 1
  289. ;;
  290. # Recognize the basic CPU types with company name.
  291. 580-* \
  292. | a29k-* \
  293. | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  294. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  295. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  296. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  297. | avr-* | avr32-* \
  298. | bfin-* | bs2000-* \
  299. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  300. | clipper-* | craynv-* | cydra-* \
  301. | d10v-* | d30v-* | dlx-* \
  302. | elxsi-* \
  303. | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  304. | h8300-* | h8500-* \
  305. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  306. | i*86-* | i860-* | i960-* | ia64-* \
  307. | ip2k-* | iq2000-* \
  308. | m32c-* | m32r-* | m32rle-* \
  309. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  310. | m88110-* | m88k-* | maxq-* | mcore-* \
  311. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  312. | mips16-* \
  313. | mips64-* | mips64el-* \
  314. | mips64vr-* | mips64vrel-* \
  315. | mips64orion-* | mips64orionel-* \
  316. | mips64vr4100-* | mips64vr4100el-* \
  317. | mips64vr4300-* | mips64vr4300el-* \
  318. | mips64vr5000-* | mips64vr5000el-* \
  319. | mips64vr5900-* | mips64vr5900el-* \
  320. | mipsisa32-* | mipsisa32el-* \
  321. | mipsisa32r2-* | mipsisa32r2el-* \
  322. | mipsisa64-* | mipsisa64el-* \
  323. | mipsisa64r2-* | mipsisa64r2el-* \
  324. | mipsisa64sb1-* | mipsisa64sb1el-* \
  325. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  326. | mipstx39-* | mipstx39el-* \
  327. | mmix-* \
  328. | mt-* \
  329. | msp430-* \
  330. | nios-* | nios2-* \
  331. | none-* | np1-* | ns16k-* | ns32k-* \
  332. | orion-* \
  333. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  334. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  335. | pyramid-* \
  336. | romp-* | rs6000-* \
  337. | sh-* | sh[1234]-* | sh[24]a-* | sh[24]a*eb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  338. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  339. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  340. | sparclite-* \
  341. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  342. | tahoe-* | thumb-* \
  343. | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  344. | tron-* \
  345. | v850-* | v850e-* | vax-* \
  346. | we32k-* \
  347. | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
  348. | xstormy16-* | xtensa-* \
  349. | ymp-* \
  350. | z8k-*)
  351. ;;
  352. # Recognize the various machine names and aliases which stand
  353. # for a CPU type and a company and sometimes even an OS.
  354. 386bsd)
  355. basic_machine=i386-unknown
  356. os=-bsd
  357. ;;
  358. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  359. basic_machine=m68000-att
  360. ;;
  361. 3b*)
  362. basic_machine=we32k-att
  363. ;;
  364. a29khif)
  365. basic_machine=a29k-amd
  366. os=-udi
  367. ;;
  368. abacus)
  369. basic_machine=abacus-unknown
  370. ;;
  371. adobe68k)
  372. basic_machine=m68010-adobe
  373. os=-scout
  374. ;;
  375. alliant | fx80)
  376. basic_machine=fx80-alliant
  377. ;;
  378. altos | altos3068)
  379. basic_machine=m68k-altos
  380. ;;
  381. am29k)
  382. basic_machine=a29k-none
  383. os=-bsd
  384. ;;
  385. amd64)
  386. basic_machine=x86_64-pc
  387. ;;
  388. amd64-*)
  389. basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  390. ;;
  391. amdahl)
  392. basic_machine=580-amdahl
  393. os=-sysv
  394. ;;
  395. amiga | amiga-*)
  396. basic_machine=m68k-unknown
  397. ;;
  398. amigaos | amigados)
  399. basic_machine=m68k-unknown
  400. os=-amigaos
  401. ;;
  402. amigaunix | amix)
  403. basic_machine=m68k-unknown
  404. os=-sysv4
  405. ;;
  406. apollo68)
  407. basic_machine=m68k-apollo
  408. os=-sysv
  409. ;;
  410. apollo68bsd)
  411. basic_machine=m68k-apollo
  412. os=-bsd
  413. ;;
  414. aux)
  415. basic_machine=m68k-apple
  416. os=-aux
  417. ;;
  418. balance)
  419. basic_machine=ns32k-sequent
  420. os=-dynix
  421. ;;
  422. c90)
  423. basic_machine=c90-cray
  424. os=-unicos
  425. ;;
  426. convex-c1)
  427. basic_machine=c1-convex
  428. os=-bsd
  429. ;;
  430. convex-c2)
  431. basic_machine=c2-convex
  432. os=-bsd
  433. ;;
  434. convex-c32)
  435. basic_machine=c32-convex
  436. os=-bsd
  437. ;;
  438. convex-c34)
  439. basic_machine=c34-convex
  440. os=-bsd
  441. ;;
  442. convex-c38)
  443. basic_machine=c38-convex
  444. os=-bsd
  445. ;;
  446. cray | j90)
  447. basic_machine=j90-cray
  448. os=-unicos
  449. ;;
  450. craynv)
  451. basic_machine=craynv-cray
  452. os=-unicosmp
  453. ;;
  454. cr16c)
  455. basic_machine=cr16c-unknown
  456. os=-elf
  457. ;;
  458. crds | unos)
  459. basic_machine=m68k-crds
  460. ;;
  461. crisv32 | crisv32-* | etraxfs*)
  462. basic_machine=crisv32-axis
  463. ;;
  464. cris | cris-* | etrax*)
  465. basic_machine=cris-axis
  466. ;;
  467. crx)
  468. basic_machine=crx-unknown
  469. os=-elf
  470. ;;
  471. da30 | da30-*)
  472. basic_machine=m68k-da30
  473. ;;
  474. decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  475. basic_machine=mips-dec
  476. ;;
  477. decsystem10* | dec10*)
  478. basic_machine=pdp10-dec
  479. os=-tops10
  480. ;;
  481. decsystem20* | dec20*)
  482. basic_machine=pdp10-dec
  483. os=-tops20
  484. ;;
  485. delta | 3300 | motorola-3300 | motorola-delta \
  486. | 3300-motorola | delta-motorola)
  487. basic_machine=m68k-motorola
  488. ;;
  489. delta88)
  490. basic_machine=m88k-motorola
  491. os=-sysv3
  492. ;;
  493. djgpp)
  494. basic_machine=i586-pc
  495. os=-msdosdjgpp
  496. ;;
  497. dpx20 | dpx20-*)
  498. basic_machine=rs6000-bull
  499. os=-bosx
  500. ;;
  501. dpx2* | dpx2*-bull)
  502. basic_machine=m68k-bull
  503. os=-sysv3
  504. ;;
  505. ebmon29k)
  506. basic_machine=a29k-amd
  507. os=-ebmon
  508. ;;
  509. elxsi)
  510. basic_machine=elxsi-elxsi
  511. os=-bsd
  512. ;;
  513. encore | umax | mmax)
  514. basic_machine=ns32k-encore
  515. ;;
  516. es1800 | OSE68k | ose68k | ose | OSE)
  517. basic_machine=m68k-ericsson
  518. os=-ose
  519. ;;
  520. fx2800)
  521. basic_machine=i860-alliant
  522. ;;
  523. genix)
  524. basic_machine=ns32k-ns
  525. ;;
  526. gmicro)
  527. basic_machine=tron-gmicro
  528. os=-sysv
  529. ;;
  530. go32)
  531. basic_machine=i386-pc
  532. os=-go32
  533. ;;
  534. h3050r* | hiux*)
  535. basic_machine=hppa1.1-hitachi
  536. os=-hiuxwe2
  537. ;;
  538. h8300hms)
  539. basic_machine=h8300-hitachi
  540. os=-hms
  541. ;;
  542. h8300xray)
  543. basic_machine=h8300-hitachi
  544. os=-xray
  545. ;;
  546. h8500hms)
  547. basic_machine=h8500-hitachi
  548. os=-hms
  549. ;;
  550. harris)
  551. basic_machine=m88k-harris
  552. os=-sysv3
  553. ;;
  554. hp300-*)
  555. basic_machine=m68k-hp
  556. ;;
  557. hp300bsd)
  558. basic_machine=m68k-hp
  559. os=-bsd
  560. ;;
  561. hp300hpux)
  562. basic_machine=m68k-hp
  563. os=-hpux
  564. ;;
  565. hp3k9[0-9][0-9] | hp9[0-9][0-9])
  566. basic_machine=hppa1.0-hp
  567. ;;
  568. hp9k2[0-9][0-9] | hp9k31[0-9])
  569. basic_machine=m68000-hp
  570. ;;
  571. hp9k3[2-9][0-9])
  572. basic_machine=m68k-hp
  573. ;;
  574. hp9k6[0-9][0-9] | hp6[0-9][0-9])
  575. basic_machine=hppa1.0-hp
  576. ;;
  577. hp9k7[0-79][0-9] | hp7[0-79][0-9])
  578. basic_machine=hppa1.1-hp
  579. ;;
  580. hp9k78[0-9] | hp78[0-9])
  581. # FIXME: really hppa2.0-hp
  582. basic_machine=hppa1.1-hp
  583. ;;
  584. hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  585. # FIXME: really hppa2.0-hp
  586. basic_machine=hppa1.1-hp
  587. ;;
  588. hp9k8[0-9][13679] | hp8[0-9][13679])
  589. basic_machine=hppa1.1-hp
  590. ;;
  591. hp9k8[0-9][0-9] | hp8[0-9][0-9])
  592. basic_machine=hppa1.0-hp
  593. ;;
  594. hppa-next)
  595. os=-nextstep3
  596. ;;
  597. hppaosf)
  598. basic_machine=hppa1.1-hp
  599. os=-osf
  600. ;;
  601. hppro)
  602. basic_machine=hppa1.1-hp
  603. os=-proelf
  604. ;;
  605. i370-ibm* | ibm*)
  606. basic_machine=i370-ibm
  607. ;;
  608. # I'm not sure what "Sysv32" means. Should this be sysv3.2?
  609. i*86v32)
  610. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  611. os=-sysv32
  612. ;;
  613. i*86v4*)
  614. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  615. os=-sysv4
  616. ;;
  617. i*86v)
  618. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  619. os=-sysv
  620. ;;
  621. i*86sol2)
  622. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  623. os=-solaris2
  624. ;;
  625. i386mach)
  626. basic_machine=i386-mach
  627. os=-mach
  628. ;;
  629. i386-vsta | vsta)
  630. basic_machine=i386-unknown
  631. os=-vsta
  632. ;;
  633. iris | iris4d)
  634. basic_machine=mips-sgi
  635. case $os in
  636. -irix*)
  637. ;;
  638. *)
  639. os=-irix4
  640. ;;
  641. esac
  642. ;;
  643. isi68 | isi)
  644. basic_machine=m68k-isi
  645. os=-sysv
  646. ;;
  647. m88k-omron*)
  648. basic_machine=m88k-omron
  649. ;;
  650. magnum | m3230)
  651. basic_machine=mips-mips
  652. os=-sysv
  653. ;;
  654. merlin)
  655. basic_machine=ns32k-utek
  656. os=-sysv
  657. ;;
  658. mingw32)
  659. basic_machine=i386-pc
  660. os=-mingw32
  661. ;;
  662. miniframe)
  663. basic_machine=m68000-convergent
  664. ;;
  665. *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  666. basic_machine=m68k-atari
  667. os=-mint
  668. ;;
  669. mipsEE* | ee | ps2)
  670. basic_machine=mips64r5900el-scei
  671. case $os in
  672. -linux*)
  673. ;;
  674. *)
  675. os=-elf
  676. ;;
  677. esac
  678. ;;
  679. iop)
  680. basic_machine=mipsel-scei
  681. os=-irx
  682. ;;
  683. dvp)
  684. basic_machine=dvp-scei
  685. os=-elf
  686. ;;
  687. mips3*-*)
  688. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  689. ;;
  690. mips3*)
  691. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  692. ;;
  693. monitor)
  694. basic_machine=m68k-rom68k
  695. os=-coff
  696. ;;
  697. morphos)
  698. basic_machine=powerpc-unknown
  699. os=-morphos
  700. ;;
  701. msdos)
  702. basic_machine=i386-pc
  703. os=-msdos
  704. ;;
  705. ms1-*)
  706. basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  707. ;;
  708. mvs)
  709. basic_machine=i370-ibm
  710. os=-mvs
  711. ;;
  712. ncr3000)
  713. basic_machine=i486-ncr
  714. os=-sysv4
  715. ;;
  716. netbsd386)
  717. basic_machine=i386-unknown
  718. os=-netbsd
  719. ;;
  720. netwinder)
  721. basic_machine=armv4l-rebel
  722. os=-linux
  723. ;;
  724. news | news700 | news800 | news900)
  725. basic_machine=m68k-sony
  726. os=-newsos
  727. ;;
  728. news1000)
  729. basic_machine=m68030-sony
  730. os=-newsos
  731. ;;
  732. news-3600 | risc-news)
  733. basic_machine=mips-sony
  734. os=-newsos
  735. ;;
  736. necv70)
  737. basic_machine=v70-nec
  738. os=-sysv
  739. ;;
  740. next | m*-next )
  741. basic_machine=m68k-next
  742. case $os in
  743. -nextstep* )
  744. ;;
  745. -ns2*)
  746. os=-nextstep2
  747. ;;
  748. *)
  749. os=-nextstep3
  750. ;;
  751. esac
  752. ;;
  753. nh3000)
  754. basic_machine=m68k-harris
  755. os=-cxux
  756. ;;
  757. nh[45]000)
  758. basic_machine=m88k-harris
  759. os=-cxux
  760. ;;
  761. nindy960)
  762. basic_machine=i960-intel
  763. os=-nindy
  764. ;;
  765. mon960)
  766. basic_machine=i960-intel
  767. os=-mon960
  768. ;;
  769. nonstopux)
  770. basic_machine=mips-compaq
  771. os=-nonstopux
  772. ;;
  773. np1)
  774. basic_machine=np1-gould
  775. ;;
  776. nsr-tandem)
  777. basic_machine=nsr-tandem
  778. ;;
  779. op50n-* | op60c-*)
  780. basic_machine=hppa1.1-oki
  781. os=-proelf
  782. ;;
  783. openrisc | openrisc-*)
  784. basic_machine=or32-unknown
  785. ;;
  786. os400)
  787. basic_machine=powerpc-ibm
  788. os=-os400
  789. ;;
  790. OSE68000 | ose68000)
  791. basic_machine=m68000-ericsson
  792. os=-ose
  793. ;;
  794. os68k)
  795. basic_machine=m68k-none
  796. os=-os68k
  797. ;;
  798. pa-hitachi)
  799. basic_machine=hppa1.1-hitachi
  800. os=-hiuxwe2
  801. ;;
  802. paragon)
  803. basic_machine=i860-intel
  804. os=-osf
  805. ;;
  806. pbd)
  807. basic_machine=sparc-tti
  808. ;;
  809. pbb)
  810. basic_machine=m68k-tti
  811. ;;
  812. pc532 | pc532-*)
  813. basic_machine=ns32k-pc532
  814. ;;
  815. pc98)
  816. basic_machine=i386-pc
  817. ;;
  818. pc98-*)
  819. basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  820. ;;
  821. pentium | p5 | k5 | k6 | nexgen | viac3)
  822. basic_machine=i586-pc
  823. ;;
  824. pentiumpro | p6 | 6x86 | athlon | athlon_*)
  825. basic_machine=i686-pc
  826. ;;
  827. pentiumii | pentium2 | pentiumiii | pentium3)
  828. basic_machine=i686-pc
  829. ;;
  830. pentium4)
  831. basic_machine=i786-pc
  832. ;;
  833. pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  834. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  835. ;;
  836. pentiumpro-* | p6-* | 6x86-* | athlon-*)
  837. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  838. ;;
  839. pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  840. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  841. ;;
  842. pentium4-*)
  843. basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  844. ;;
  845. pn)
  846. basic_machine=pn-gould
  847. ;;
  848. power) basic_machine=power-ibm
  849. ;;
  850. ppc) basic_machine=powerpc-unknown
  851. ;;
  852. ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  853. ;;
  854. ppcle | powerpclittle | ppc-le | powerpc-little)
  855. basic_machine=powerpcle-unknown
  856. ;;
  857. ppcle-* | powerpclittle-*)
  858. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  859. ;;
  860. ppc64) basic_machine=powerpc64-unknown
  861. ;;
  862. ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  863. ;;
  864. ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  865. basic_machine=powerpc64le-unknown
  866. ;;
  867. ppc64le-* | powerpc64little-*)
  868. basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  869. ;;
  870. ps2)
  871. basic_machine=i386-ibm
  872. ;;
  873. pw32)
  874. basic_machine=i586-unknown
  875. os=-pw32
  876. ;;
  877. rdos)
  878. basic_machine=i386-pc
  879. os=-rdos
  880. ;;
  881. rom68k)
  882. basic_machine=m68k-rom68k
  883. os=-coff
  884. ;;
  885. rm[46]00)
  886. basic_machine=mips-siemens
  887. ;;
  888. rtpc | rtpc-*)
  889. basic_machine=romp-ibm
  890. ;;
  891. s390 | s390-*)
  892. basic_machine=s390-ibm
  893. ;;
  894. s390x | s390x-*)
  895. basic_machine=s390x-ibm
  896. ;;
  897. sa29200)
  898. basic_machine=a29k-amd
  899. os=-udi
  900. ;;
  901. sb1)
  902. basic_machine=mipsisa64sb1-unknown
  903. ;;
  904. sb1el)
  905. basic_machine=mipsisa64sb1el-unknown
  906. ;;
  907. sei)
  908. basic_machine=mips-sei
  909. os=-seiux
  910. ;;
  911. sequent)
  912. basic_machine=i386-sequent
  913. ;;
  914. sh)
  915. basic_machine=sh-hitachi
  916. os=-hms
  917. ;;
  918. sh64)
  919. basic_machine=sh64-unknown
  920. ;;
  921. sparclite-wrs | simso-wrs)
  922. basic_machine=sparclite-wrs
  923. os=-vxworks
  924. ;;
  925. sps7)
  926. basic_machine=m68k-bull
  927. os=-sysv2
  928. ;;
  929. spur)
  930. basic_machine=spur-unknown
  931. ;;
  932. st2000)
  933. basic_machine=m68k-tandem
  934. ;;
  935. stratus)
  936. basic_machine=i860-stratus
  937. os=-sysv4
  938. ;;
  939. sun2)
  940. basic_machine=m68000-sun
  941. ;;
  942. sun2os3)
  943. basic_machine=m68000-sun
  944. os=-sunos3
  945. ;;
  946. sun2os4)
  947. basic_machine=m68000-sun
  948. os=-sunos4
  949. ;;
  950. sun3os3)
  951. basic_machine=m68k-sun
  952. os=-sunos3
  953. ;;
  954. sun3os4)
  955. basic_machine=m68k-sun
  956. os=-sunos4
  957. ;;
  958. sun4os3)
  959. basic_machine=sparc-sun
  960. os=-sunos3
  961. ;;
  962. sun4os4)
  963. basic_machine=sparc-sun
  964. os=-sunos4
  965. ;;
  966. sun4sol2)
  967. basic_machine=sparc-sun
  968. os=-solaris2
  969. ;;
  970. sun3 | sun3-*)
  971. basic_machine=m68k-sun
  972. ;;
  973. sun4)
  974. basic_machine=sparc-sun
  975. ;;
  976. sun386 | sun386i | roadrunner)
  977. basic_machine=i386-sun
  978. ;;
  979. sv1)
  980. basic_machine=sv1-cray
  981. os=-unicos
  982. ;;
  983. symmetry)
  984. basic_machine=i386-sequent
  985. os=-dynix
  986. ;;
  987. t3e)
  988. basic_machine=alphaev5-cray
  989. os=-unicos
  990. ;;
  991. t90)
  992. basic_machine=t90-cray
  993. os=-unicos
  994. ;;
  995. tic54x | c54x*)
  996. basic_machine=tic54x-unknown
  997. os=-coff
  998. ;;
  999. tic55x | c55x*)
  1000. basic_machine=tic55x-unknown
  1001. os=-coff
  1002. ;;
  1003. tic6x | c6x*)
  1004. basic_machine=tic6x-unknown
  1005. os=-coff
  1006. ;;
  1007. tx39)
  1008. basic_machine=mipstx39-unknown
  1009. ;;
  1010. tx39el)
  1011. basic_machine=mipstx39el-unknown
  1012. ;;
  1013. toad1)
  1014. basic_machine=pdp10-xkl
  1015. os=-tops20
  1016. ;;
  1017. tower | tower-32)
  1018. basic_machine=m68k-ncr
  1019. ;;
  1020. tpf)
  1021. basic_machine=s390x-ibm
  1022. os=-tpf
  1023. ;;
  1024. udi29k)
  1025. basic_machine=a29k-amd
  1026. os=-udi
  1027. ;;
  1028. ultra3)
  1029. basic_machine=a29k-nyu
  1030. os=-sym1
  1031. ;;
  1032. v810 | necv810)
  1033. basic_machine=v810-nec
  1034. os=-none
  1035. ;;
  1036. vaxv)
  1037. basic_machine=vax-dec
  1038. os=-sysv
  1039. ;;
  1040. vms)
  1041. basic_machine=vax-dec
  1042. os=-vms
  1043. ;;
  1044. vpp*|vx|vx-*)
  1045. basic_machine=f301-fujitsu
  1046. ;;
  1047. vxworks960)
  1048. basic_machine=i960-wrs
  1049. os=-vxworks
  1050. ;;
  1051. vxworks68)
  1052. basic_machine=m68k-wrs
  1053. os=-vxworks
  1054. ;;
  1055. vxworks29k)
  1056. basic_machine=a29k-wrs
  1057. os=-vxworks
  1058. ;;
  1059. w65*)
  1060. basic_machine=w65-wdc
  1061. os=-none
  1062. ;;
  1063. w89k-*)
  1064. basic_machine=hppa1.1-winbond
  1065. os=-proelf
  1066. ;;
  1067. xbox)
  1068. basic_machine=i686-pc
  1069. os=-mingw32
  1070. ;;
  1071. xps | xps100)
  1072. basic_machine=xps100-honeywell
  1073. ;;
  1074. ymp)
  1075. basic_machine=ymp-cray
  1076. os=-unicos
  1077. ;;
  1078. z8k-*-coff)
  1079. basic_machine=z8k-unknown
  1080. os=-sim
  1081. ;;
  1082. none)
  1083. basic_machine=none-none
  1084. os=-none
  1085. ;;
  1086. # Here we handle the default manufacturer of certain CPU types. It is in
  1087. # some cases the only manufacturer, in others, it is the most popular.
  1088. w89k)
  1089. basic_machine=hppa1.1-winbond
  1090. ;;
  1091. op50n)
  1092. basic_machine=hppa1.1-oki
  1093. ;;
  1094. op60c)
  1095. basic_machine=hppa1.1-oki
  1096. ;;
  1097. romp)
  1098. basic_machine=romp-ibm
  1099. ;;
  1100. mmix)
  1101. basic_machine=mmix-knuth
  1102. ;;
  1103. rs6000)
  1104. basic_machine=rs6000-ibm
  1105. ;;
  1106. vax)
  1107. basic_machine=vax-dec
  1108. ;;
  1109. pdp10)
  1110. # there are many clones, so DEC is not a safe bet
  1111. basic_machine=pdp10-unknown
  1112. ;;
  1113. pdp11)
  1114. basic_machine=pdp11-dec
  1115. ;;
  1116. we32k)
  1117. basic_machine=we32k-att
  1118. ;;
  1119. sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  1120. basic_machine=sh-unknown
  1121. ;;
  1122. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  1123. basic_machine=sparc-sun
  1124. ;;
  1125. cydra)
  1126. basic_machine=cydra-cydrome
  1127. ;;
  1128. orion)
  1129. basic_machine=orion-highlevel
  1130. ;;
  1131. orion105)
  1132. basic_machine=clipper-highlevel
  1133. ;;
  1134. mac | mpw | mac-mpw)
  1135. basic_machine=m68k-apple
  1136. ;;
  1137. pmac | pmac-mpw)
  1138. basic_machine=powerpc-apple
  1139. ;;
  1140. *-unknown)
  1141. # Make sure to match an already-canonicalized machine name.
  1142. ;;
  1143. *)
  1144. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  1145. exit 1
  1146. ;;
  1147. esac
  1148. # Here we canonicalize certain aliases for manufacturers.
  1149. case $basic_machine in
  1150. *-digital*)
  1151. basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  1152. ;;
  1153. *-commodore*)
  1154. basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  1155. ;;
  1156. *)
  1157. ;;
  1158. esac
  1159. # Decode manufacturer-specific aliases for certain operating systems.
  1160. if [ x"$os" != x"" ]
  1161. then
  1162. case $os in
  1163. # First match some system type aliases
  1164. # that might get confused with valid system types.
  1165. # -solaris* is a basic system type, with this one exception.
  1166. -solaris1 | -solaris1.*)
  1167. os=`echo $os | sed -e 's|solaris1|sunos4|'`
  1168. ;;
  1169. -solaris)
  1170. os=-solaris2
  1171. ;;
  1172. -svr4*)
  1173. os=-sysv4
  1174. ;;
  1175. -unixware*)
  1176. os=-sysv4.2uw
  1177. ;;
  1178. -gnu/linux*)
  1179. os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  1180. ;;
  1181. # First accept the basic system types.
  1182. # The portable systems comes first.
  1183. # Each alternative MUST END IN A *, to match a version number.
  1184. # -sysv* is not here because it comes later, after sysvr4.
  1185. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1186. | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  1187. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  1188. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1189. | -aos* \
  1190. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1191. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1192. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  1193. | -openbsd* | -solidbsd* \
  1194. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  1195. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1196. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1197. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1198. | -chorusos* | -chorusrdb* \
  1199. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1200. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  1201. | -uxpv* | -beos* | -mpeix* | -udk* \
  1202. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  1203. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1204. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1205. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  1206. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  1207. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  1208. | -skyos* | -haiku* | -rdos* | -toppers* | -irx*)
  1209. # Remember, each alternative MUST END IN *, to match a version number.
  1210. ;;
  1211. -qnx*)
  1212. case $basic_machine in
  1213. x86-* | i*86-*)
  1214. ;;
  1215. *)
  1216. os=-nto$os
  1217. ;;
  1218. esac
  1219. ;;
  1220. -nto-qnx*)
  1221. ;;
  1222. -nto*)
  1223. os=`echo $os | sed -e 's|nto|nto-qnx|'`
  1224. ;;
  1225. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  1226. | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  1227. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  1228. ;;
  1229. -mac*)
  1230. os=`echo $os | sed -e 's|mac|macos|'`
  1231. ;;
  1232. -linux-dietlibc)
  1233. os=-linux-dietlibc
  1234. ;;
  1235. -linux*)
  1236. os=`echo $os | sed -e 's|linux|linux-gnu|'`
  1237. ;;
  1238. -sunos5*)
  1239. os=`echo $os | sed -e 's|sunos5|solaris2|'`
  1240. ;;
  1241. -sunos6*)
  1242. os=`echo $os | sed -e 's|sunos6|solaris3|'`
  1243. ;;
  1244. -opened*)
  1245. os=-openedition
  1246. ;;
  1247. -os400*)
  1248. os=-os400
  1249. ;;
  1250. -wince*)
  1251. os=-wince
  1252. ;;
  1253. -osfrose*)
  1254. os=-osfrose
  1255. ;;
  1256. -osf*)
  1257. os=-osf
  1258. ;;
  1259. -utek*)
  1260. os=-bsd
  1261. ;;
  1262. -dynix*)
  1263. os=-bsd
  1264. ;;
  1265. -acis*)
  1266. os=-aos
  1267. ;;
  1268. -atheos*)
  1269. os=-atheos
  1270. ;;
  1271. -syllable*)
  1272. os=-syllable
  1273. ;;
  1274. -386bsd)
  1275. os=-bsd
  1276. ;;
  1277. -ctix* | -uts*)
  1278. os=-sysv
  1279. ;;
  1280. -nova*)
  1281. os=-rtmk-nova
  1282. ;;
  1283. -ns2 )
  1284. os=-nextstep2
  1285. ;;
  1286. -nsk*)
  1287. os=-nsk
  1288. ;;
  1289. # Preserve the version number of sinix5.
  1290. -sinix5.*)
  1291. os=`echo $os | sed -e 's|sinix|sysv|'`
  1292. ;;
  1293. -sinix*)
  1294. os=-sysv4
  1295. ;;
  1296. -tpf*)
  1297. os=-tpf
  1298. ;;
  1299. -triton*)
  1300. os=-sysv3
  1301. ;;
  1302. -oss*)
  1303. os=-sysv3
  1304. ;;
  1305. -svr4)
  1306. os=-sysv4
  1307. ;;
  1308. -svr3)
  1309. os=-sysv3
  1310. ;;
  1311. -sysvr4)
  1312. os=-sysv4
  1313. ;;
  1314. # This must come after -sysvr4.
  1315. -sysv*)
  1316. ;;
  1317. -ose*)
  1318. os=-ose
  1319. ;;
  1320. -es1800*)
  1321. os=-ose
  1322. ;;
  1323. -xenix)
  1324. os=-xenix
  1325. ;;
  1326. -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1327. os=-mint
  1328. ;;
  1329. -aros*)
  1330. os=-aros
  1331. ;;
  1332. -kaos*)
  1333. os=-kaos
  1334. ;;
  1335. -zvmoe)
  1336. os=-zvmoe
  1337. ;;
  1338. -none)
  1339. ;;
  1340. *)
  1341. # Get rid of the `-' at the beginning of $os.
  1342. os=`echo $os | sed 's/[^-]*-//'`
  1343. echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  1344. exit 1
  1345. ;;
  1346. esac
  1347. else
  1348. # Here we handle the default operating systems that come with various machines.
  1349. # The value should be what the vendor currently ships out the door with their
  1350. # machine or put another way, the most popular os provided with the machine.
  1351. # Note that if you're going to try to match "-MANUFACTURER" here (say,
  1352. # "-sun"), then you have to tell the case statement up towards the top
  1353. # that MANUFACTURER isn't an operating system. Otherwise, code above
  1354. # will signal an error saying that MANUFACTURER isn't an operating
  1355. # system, and we'll never get to this point.
  1356. case $basic_machine in
  1357. spu-*)
  1358. os=-elf
  1359. ;;
  1360. *-acorn)
  1361. os=-riscix1.2
  1362. ;;
  1363. arm*-rebel)
  1364. os=-linux
  1365. ;;
  1366. arm*-semi)
  1367. os=-aout
  1368. ;;
  1369. c4x-* | tic4x-*)
  1370. os=-coff
  1371. ;;
  1372. # This must come before the *-dec entry.
  1373. pdp10-*)
  1374. os=-tops20
  1375. ;;
  1376. pdp11-*)
  1377. os=-none
  1378. ;;
  1379. *-dec | vax-*)
  1380. os=-ultrix4.2
  1381. ;;
  1382. m68*-apollo)
  1383. os=-domain
  1384. ;;
  1385. i386-sun)
  1386. os=-sunos4.0.2
  1387. ;;
  1388. m68000-sun)
  1389. os=-sunos3
  1390. # This also exists in the configure program, but was not the
  1391. # default.
  1392. # os=-sunos4
  1393. ;;
  1394. m68*-cisco)
  1395. os=-aout
  1396. ;;
  1397. mips*-cisco)
  1398. os=-elf
  1399. ;;
  1400. mips*-*)
  1401. os=-elf
  1402. ;;
  1403. or32-*)
  1404. os=-coff
  1405. ;;
  1406. *-tti) # must be before sparc entry or we get the wrong os.
  1407. os=-sysv3
  1408. ;;
  1409. sparc-* | *-sun)
  1410. os=-sunos4.1.1
  1411. ;;
  1412. *-be)
  1413. os=-beos
  1414. ;;
  1415. *-haiku)
  1416. os=-haiku
  1417. ;;
  1418. *-ibm)
  1419. os=-aix
  1420. ;;
  1421. *-knuth)
  1422. os=-mmixware
  1423. ;;
  1424. *-wec)
  1425. os=-proelf
  1426. ;;
  1427. *-winbond)
  1428. os=-proelf
  1429. ;;
  1430. *-oki)
  1431. os=-proelf
  1432. ;;
  1433. *-hp)
  1434. os=-hpux
  1435. ;;
  1436. *-hitachi)
  1437. os=-hiux
  1438. ;;
  1439. i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  1440. os=-sysv
  1441. ;;
  1442. *-cbm)
  1443. os=-amigaos
  1444. ;;
  1445. *-dg)
  1446. os=-dgux
  1447. ;;
  1448. *-dolphin)
  1449. os=-sysv3
  1450. ;;
  1451. m68k-ccur)
  1452. os=-rtu
  1453. ;;
  1454. m88k-omron*)
  1455. os=-luna
  1456. ;;
  1457. *-next )
  1458. os=-nextstep
  1459. ;;
  1460. *-sequent)
  1461. os=-ptx
  1462. ;;
  1463. *-crds)
  1464. os=-unos
  1465. ;;
  1466. *-ns)
  1467. os=-genix
  1468. ;;
  1469. i370-*)
  1470. os=-mvs
  1471. ;;
  1472. *-next)
  1473. os=-nextstep3
  1474. ;;
  1475. *-gould)
  1476. os=-sysv
  1477. ;;
  1478. *-highlevel)
  1479. os=-bsd
  1480. ;;
  1481. *-encore)
  1482. os=-bsd
  1483. ;;
  1484. *-sgi)
  1485. os=-irix
  1486. ;;
  1487. *-siemens)
  1488. os=-sysv4
  1489. ;;
  1490. *-masscomp)
  1491. os=-rtu
  1492. ;;
  1493. f30[01]-fujitsu | f700-fujitsu)
  1494. os=-uxpv
  1495. ;;
  1496. *-rom68k)
  1497. os=-coff
  1498. ;;
  1499. *-*bug)
  1500. os=-coff
  1501. ;;
  1502. *-apple)
  1503. os=-macos
  1504. ;;
  1505. *-atari*)
  1506. os=-mint
  1507. ;;
  1508. *)
  1509. os=-none
  1510. ;;
  1511. esac
  1512. fi
  1513. # Here we handle the case where we know the os, and the CPU type, but not the
  1514. # manufacturer. We pick the logical manufacturer.
  1515. vendor=unknown
  1516. case $basic_machine in
  1517. *-unknown)
  1518. case $os in
  1519. -riscix*)
  1520. vendor=acorn
  1521. ;;
  1522. -sunos*)
  1523. vendor=sun
  1524. ;;
  1525. -aix*)
  1526. vendor=ibm
  1527. ;;
  1528. -beos*)
  1529. vendor=be
  1530. ;;
  1531. -hpux*)
  1532. vendor=hp
  1533. ;;
  1534. -mpeix*)
  1535. vendor=hp
  1536. ;;
  1537. -hiux*)
  1538. vendor=hitachi
  1539. ;;
  1540. -unos*)
  1541. vendor=crds
  1542. ;;
  1543. -dgux*)
  1544. vendor=dg
  1545. ;;
  1546. -luna*)
  1547. vendor=omron
  1548. ;;
  1549. -genix*)
  1550. vendor=ns
  1551. ;;
  1552. -mvs* | -opened*)
  1553. vendor=ibm
  1554. ;;
  1555. -os400*)
  1556. vendor=ibm
  1557. ;;
  1558. -ptx*)
  1559. vendor=sequent
  1560. ;;
  1561. -tpf*)
  1562. vendor=ibm
  1563. ;;
  1564. -vxsim* | -vxworks* | -windiss*)
  1565. vendor=wrs
  1566. ;;
  1567. -aux*)
  1568. vendor=apple
  1569. ;;
  1570. -hms*)
  1571. vendor=hitachi
  1572. ;;
  1573. -mpw* | -macos*)
  1574. vendor=apple
  1575. ;;
  1576. -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1577. vendor=atari
  1578. ;;
  1579. -vos*)
  1580. vendor=stratus
  1581. ;;
  1582. esac
  1583. basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  1584. ;;
  1585. esac
  1586. echo $basic_machine$os
  1587. exit
  1588. # Local variables:
  1589. # eval: (add-hook 'write-file-hooks 'time-stamp)
  1590. # time-stamp-start: "timestamp='"
  1591. # time-stamp-format: "%:y-%02m-%02d"
  1592. # time-stamp-end: "'"
  1593. # End: