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.

1332 lines
26 KiB

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