Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1537 lines
30 KiB

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