config.sub 29 KB

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