KMatplot – a gnuplot-like tool for plotting data sets in either two or three dimensions
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.
 
 
 
 
 
 

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