PageRenderTime 360ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/js/build/autoconf/config.sub

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