config.sub 28 KB

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