Нет описания https://github.com/Netsukuku/netsukuku
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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