config.sub 28 KB

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