config.sub
上传用户:weiyuanprp
上传日期:2020-05-20
资源大小:1169k
文件大小:32k
源码类别:

传真(Fax)编程

开发平台:

C/C++

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