update-autoconf.patch 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876
  1. diff -Naur ruby-1.9.3-p551/tool/config.guess ruby-1.9.3-p551+ppc64le/tool/config.guess
  2. --- ruby-1.9.3-p551/tool/config.guess 2010-09-26 01:25:34.000000000 +0000
  3. +++ ruby-1.9.3-p551+ppc64le/tool/config.guess 2016-04-15 05:09:52.078012270 +0000
  4. @@ -1,14 +1,12 @@
  5. #! /bin/sh
  6. # Attempt to guess a canonical system name.
  7. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  8. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  9. -# Free Software Foundation, Inc.
  10. +# Copyright 1992-2016 Free Software Foundation, Inc.
  11. -timestamp='2009-11-20'
  12. +timestamp='2016-04-02'
  13. # This file is free software; you can redistribute it and/or modify it
  14. # under the terms of the GNU General Public License as published by
  15. -# the Free Software Foundation; either version 2 of the License, or
  16. +# the Free Software Foundation; either version 3 of the License, or
  17. # (at your option) any later version.
  18. #
  19. # This program is distributed in the hope that it will be useful, but
  20. @@ -17,26 +15,22 @@
  21. # General Public License for more details.
  22. #
  23. # You should have received a copy of the GNU General Public License
  24. -# along with this program; if not, write to the Free Software
  25. -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  26. -# 02110-1301, USA.
  27. +# along with this program; if not, see <http://www.gnu.org/licenses/>.
  28. #
  29. # As a special exception to the GNU General Public License, if you
  30. # distribute this file as part of a program that contains a
  31. # configuration script generated by Autoconf, you may include it under
  32. -# the same distribution terms that you use for the rest of that program.
  33. -
  34. -
  35. -# Originally written by Per Bothner. Please send patches (context
  36. -# diff format) to <config-patches@gnu.org> and include a ChangeLog
  37. -# entry.
  38. +# the same distribution terms that you use for the rest of that
  39. +# program. This Exception is an additional permission under section 7
  40. +# of the GNU General Public License, version 3 ("GPLv3").
  41. #
  42. -# This script attempts to guess a canonical system name similar to
  43. -# config.sub. If it succeeds, it prints the system name on stdout, and
  44. -# exits with 0. Otherwise, it exits with 1.
  45. +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
  46. #
  47. # You can get the latest version of this script from:
  48. -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  49. +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
  50. +#
  51. +# Please send patches to <config-patches@gnu.org>.
  52. +
  53. me=`echo "$0" | sed -e 's,.*/,,'`
  54. @@ -56,8 +50,7 @@
  55. GNU config.guess ($timestamp)
  56. Originally written by Per Bothner.
  57. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  58. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  59. +Copyright 1992-2016 Free Software Foundation, Inc.
  60. This is free software; see the source for copying conditions. There is NO
  61. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  62. @@ -139,12 +132,33 @@
  63. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  64. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  65. +case "${UNAME_SYSTEM}" in
  66. +Linux|GNU|GNU/*)
  67. + # If the system lacks a compiler, then just pick glibc.
  68. + # We could probably try harder.
  69. + LIBC=gnu
  70. +
  71. + eval $set_cc_for_build
  72. + cat <<-EOF > $dummy.c
  73. + #include <features.h>
  74. + #if defined(__UCLIBC__)
  75. + LIBC=uclibc
  76. + #elif defined(__dietlibc__)
  77. + LIBC=dietlibc
  78. + #else
  79. + LIBC=gnu
  80. + #endif
  81. + EOF
  82. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
  83. + ;;
  84. +esac
  85. +
  86. # Note: order is significant - the case branches are not exclusive.
  87. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  88. *:NetBSD:*:*)
  89. # NetBSD (nbsd) targets should (where applicable) match one or
  90. - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  91. + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
  92. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  93. # switched to ELF, *-*-netbsd* would select the old
  94. # object file format. This provides both forward
  95. @@ -154,20 +168,27 @@
  96. # Note: NetBSD doesn't particularly care about the vendor
  97. # portion of the name. We always set it to "unknown".
  98. sysctl="sysctl -n hw.machine_arch"
  99. - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  100. - /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  101. + UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
  102. + /sbin/$sysctl 2>/dev/null || \
  103. + /usr/sbin/$sysctl 2>/dev/null || \
  104. + echo unknown)`
  105. case "${UNAME_MACHINE_ARCH}" in
  106. armeb) machine=armeb-unknown ;;
  107. arm*) machine=arm-unknown ;;
  108. sh3el) machine=shl-unknown ;;
  109. sh3eb) machine=sh-unknown ;;
  110. sh5el) machine=sh5le-unknown ;;
  111. + earmv*)
  112. + arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
  113. + endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
  114. + machine=${arch}${endian}-unknown
  115. + ;;
  116. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  117. esac
  118. # The Operating System including object format, if it has switched
  119. # to ELF recently, or will in the future.
  120. case "${UNAME_MACHINE_ARCH}" in
  121. - arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  122. + arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
  123. eval $set_cc_for_build
  124. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  125. | grep -q __ELF__
  126. @@ -180,7 +201,14 @@
  127. fi
  128. ;;
  129. *)
  130. - os=netbsd
  131. + os=netbsd
  132. + ;;
  133. + esac
  134. + # Determine ABI tags.
  135. + case "${UNAME_MACHINE_ARCH}" in
  136. + earm*)
  137. + expr='s/^earmv[0-9]/-eabi/;s/eb$//'
  138. + abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
  139. ;;
  140. esac
  141. # The OS release
  142. @@ -193,18 +221,26 @@
  143. release='-gnu'
  144. ;;
  145. *)
  146. - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  147. + release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
  148. ;;
  149. esac
  150. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  151. # contains redundant information, the shorter form:
  152. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  153. - echo "${machine}-${os}${release}"
  154. + echo "${machine}-${os}${release}${abi}"
  155. + exit ;;
  156. + *:Bitrig:*:*)
  157. + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
  158. + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
  159. exit ;;
  160. *:OpenBSD:*:*)
  161. UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  162. echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  163. exit ;;
  164. + *:LibertyBSD:*:*)
  165. + UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
  166. + echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
  167. + exit ;;
  168. *:ekkoBSD:*:*)
  169. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  170. exit ;;
  171. @@ -217,13 +253,16 @@
  172. *:MirBSD:*:*)
  173. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  174. exit ;;
  175. + *:Sortix:*:*)
  176. + echo ${UNAME_MACHINE}-unknown-sortix
  177. + exit ;;
  178. alpha:OSF1:*:*)
  179. case $UNAME_RELEASE in
  180. *4.0)
  181. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  182. ;;
  183. *5.*)
  184. - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  185. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  186. ;;
  187. esac
  188. # According to Compaq, /usr/sbin/psrinfo has been available on
  189. @@ -233,43 +272,46 @@
  190. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  191. case "$ALPHA_CPU_TYPE" in
  192. "EV4 (21064)")
  193. - UNAME_MACHINE="alpha" ;;
  194. + UNAME_MACHINE=alpha ;;
  195. "EV4.5 (21064)")
  196. - UNAME_MACHINE="alpha" ;;
  197. + UNAME_MACHINE=alpha ;;
  198. "LCA4 (21066/21068)")
  199. - UNAME_MACHINE="alpha" ;;
  200. + UNAME_MACHINE=alpha ;;
  201. "EV5 (21164)")
  202. - UNAME_MACHINE="alphaev5" ;;
  203. + UNAME_MACHINE=alphaev5 ;;
  204. "EV5.6 (21164A)")
  205. - UNAME_MACHINE="alphaev56" ;;
  206. + UNAME_MACHINE=alphaev56 ;;
  207. "EV5.6 (21164PC)")
  208. - UNAME_MACHINE="alphapca56" ;;
  209. + UNAME_MACHINE=alphapca56 ;;
  210. "EV5.7 (21164PC)")
  211. - UNAME_MACHINE="alphapca57" ;;
  212. + UNAME_MACHINE=alphapca57 ;;
  213. "EV6 (21264)")
  214. - UNAME_MACHINE="alphaev6" ;;
  215. + UNAME_MACHINE=alphaev6 ;;
  216. "EV6.7 (21264A)")
  217. - UNAME_MACHINE="alphaev67" ;;
  218. + UNAME_MACHINE=alphaev67 ;;
  219. "EV6.8CB (21264C)")
  220. - UNAME_MACHINE="alphaev68" ;;
  221. + UNAME_MACHINE=alphaev68 ;;
  222. "EV6.8AL (21264B)")
  223. - UNAME_MACHINE="alphaev68" ;;
  224. + UNAME_MACHINE=alphaev68 ;;
  225. "EV6.8CX (21264D)")
  226. - UNAME_MACHINE="alphaev68" ;;
  227. + UNAME_MACHINE=alphaev68 ;;
  228. "EV6.9A (21264/EV69A)")
  229. - UNAME_MACHINE="alphaev69" ;;
  230. + UNAME_MACHINE=alphaev69 ;;
  231. "EV7 (21364)")
  232. - UNAME_MACHINE="alphaev7" ;;
  233. + UNAME_MACHINE=alphaev7 ;;
  234. "EV7.9 (21364A)")
  235. - UNAME_MACHINE="alphaev79" ;;
  236. + UNAME_MACHINE=alphaev79 ;;
  237. esac
  238. # A Pn.n version is a patched version.
  239. # A Vn.n version is a released version.
  240. # A Tn.n version is a released field test version.
  241. # A Xn.n version is an unreleased experimental baselevel.
  242. # 1.2 uses "1.2" for uname -r.
  243. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  244. - exit ;;
  245. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
  246. + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
  247. + exitcode=$?
  248. + trap '' 0
  249. + exit $exitcode ;;
  250. Alpha\ *:Windows_NT*:*)
  251. # How do we know it's Interix rather than the generic POSIX subsystem?
  252. # Should we change UNAME_MACHINE based on the output of uname instead
  253. @@ -295,12 +337,12 @@
  254. echo s390-ibm-zvmoe
  255. exit ;;
  256. *:OS400:*:*)
  257. - echo powerpc-ibm-os400
  258. + echo powerpc-ibm-os400
  259. exit ;;
  260. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  261. echo arm-acorn-riscix${UNAME_RELEASE}
  262. exit ;;
  263. - arm:riscos:*:*|arm:RISCOS:*:*)
  264. + arm*:riscos:*:*|arm*:RISCOS:*:*)
  265. echo arm-unknown-riscos
  266. exit ;;
  267. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  268. @@ -338,16 +380,16 @@
  269. exit ;;
  270. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  271. eval $set_cc_for_build
  272. - SUN_ARCH="i386"
  273. + SUN_ARCH=i386
  274. # If there is a compiler, see if it is configured for 64-bit objects.
  275. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  276. # This test works for both compilers.
  277. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  278. + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
  279. if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  280. - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  281. + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
  282. grep IS_64BIT_ARCH >/dev/null
  283. then
  284. - SUN_ARCH="x86_64"
  285. + SUN_ARCH=x86_64
  286. fi
  287. fi
  288. echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  289. @@ -372,7 +414,7 @@
  290. exit ;;
  291. sun*:*:4.2BSD:*)
  292. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  293. - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  294. + test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
  295. case "`/bin/arch`" in
  296. sun3)
  297. echo m68k-sun-sunos${UNAME_RELEASE}
  298. @@ -394,23 +436,23 @@
  299. # MiNT. But MiNT is downward compatible to TOS, so this should
  300. # be no problem.
  301. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  302. - echo m68k-atari-mint${UNAME_RELEASE}
  303. + echo m68k-atari-mint${UNAME_RELEASE}
  304. exit ;;
  305. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  306. echo m68k-atari-mint${UNAME_RELEASE}
  307. - exit ;;
  308. + exit ;;
  309. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  310. - echo m68k-atari-mint${UNAME_RELEASE}
  311. + echo m68k-atari-mint${UNAME_RELEASE}
  312. exit ;;
  313. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  314. - echo m68k-milan-mint${UNAME_RELEASE}
  315. - exit ;;
  316. + echo m68k-milan-mint${UNAME_RELEASE}
  317. + exit ;;
  318. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  319. - echo m68k-hades-mint${UNAME_RELEASE}
  320. - exit ;;
  321. + echo m68k-hades-mint${UNAME_RELEASE}
  322. + exit ;;
  323. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  324. - echo m68k-unknown-mint${UNAME_RELEASE}
  325. - exit ;;
  326. + echo m68k-unknown-mint${UNAME_RELEASE}
  327. + exit ;;
  328. m68k:machten:*:*)
  329. echo m68k-apple-machten${UNAME_RELEASE}
  330. exit ;;
  331. @@ -480,8 +522,8 @@
  332. echo m88k-motorola-sysv3
  333. exit ;;
  334. AViiON:dgux:*:*)
  335. - # DG/UX returns AViiON for all architectures
  336. - UNAME_PROCESSOR=`/usr/bin/uname -p`
  337. + # DG/UX returns AViiON for all architectures
  338. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  339. if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  340. then
  341. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  342. @@ -494,7 +536,7 @@
  343. else
  344. echo i586-dg-dgux${UNAME_RELEASE}
  345. fi
  346. - exit ;;
  347. + exit ;;
  348. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  349. echo m88k-dolphin-sysv3
  350. exit ;;
  351. @@ -551,15 +593,16 @@
  352. echo rs6000-ibm-aix3.2
  353. fi
  354. exit ;;
  355. - *:AIX:*:[456])
  356. + *:AIX:*:[4567])
  357. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  358. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  359. IBM_ARCH=rs6000
  360. else
  361. IBM_ARCH=powerpc
  362. fi
  363. - if [ -x /usr/bin/oslevel ] ; then
  364. - IBM_REV=`/usr/bin/oslevel`
  365. + if [ -x /usr/bin/lslpp ] ; then
  366. + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
  367. + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
  368. else
  369. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  370. fi
  371. @@ -594,58 +637,58 @@
  372. 9000/[678][0-9][0-9])
  373. if [ -x /usr/bin/getconf ]; then
  374. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  375. - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  376. - case "${sc_cpu_version}" in
  377. - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  378. - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  379. - 532) # CPU_PA_RISC2_0
  380. - case "${sc_kernel_bits}" in
  381. - 32) HP_ARCH="hppa2.0n" ;;
  382. - 64) HP_ARCH="hppa2.0w" ;;
  383. - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  384. - esac ;;
  385. - esac
  386. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  387. + case "${sc_cpu_version}" in
  388. + 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
  389. + 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
  390. + 532) # CPU_PA_RISC2_0
  391. + case "${sc_kernel_bits}" in
  392. + 32) HP_ARCH=hppa2.0n ;;
  393. + 64) HP_ARCH=hppa2.0w ;;
  394. + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
  395. + esac ;;
  396. + esac
  397. fi
  398. if [ "${HP_ARCH}" = "" ]; then
  399. eval $set_cc_for_build
  400. - sed 's/^ //' << EOF >$dummy.c
  401. + sed 's/^ //' << EOF >$dummy.c
  402. - #define _HPUX_SOURCE
  403. - #include <stdlib.h>
  404. - #include <unistd.h>
  405. -
  406. - int main ()
  407. - {
  408. - #if defined(_SC_KERNEL_BITS)
  409. - long bits = sysconf(_SC_KERNEL_BITS);
  410. - #endif
  411. - long cpu = sysconf (_SC_CPU_VERSION);
  412. -
  413. - switch (cpu)
  414. - {
  415. - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  416. - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  417. - case CPU_PA_RISC2_0:
  418. - #if defined(_SC_KERNEL_BITS)
  419. - switch (bits)
  420. - {
  421. - case 64: puts ("hppa2.0w"); break;
  422. - case 32: puts ("hppa2.0n"); break;
  423. - default: puts ("hppa2.0"); break;
  424. - } break;
  425. - #else /* !defined(_SC_KERNEL_BITS) */
  426. - puts ("hppa2.0"); break;
  427. - #endif
  428. - default: puts ("hppa1.0"); break;
  429. - }
  430. - exit (0);
  431. - }
  432. + #define _HPUX_SOURCE
  433. + #include <stdlib.h>
  434. + #include <unistd.h>
  435. +
  436. + int main ()
  437. + {
  438. + #if defined(_SC_KERNEL_BITS)
  439. + long bits = sysconf(_SC_KERNEL_BITS);
  440. + #endif
  441. + long cpu = sysconf (_SC_CPU_VERSION);
  442. +
  443. + switch (cpu)
  444. + {
  445. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  446. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  447. + case CPU_PA_RISC2_0:
  448. + #if defined(_SC_KERNEL_BITS)
  449. + switch (bits)
  450. + {
  451. + case 64: puts ("hppa2.0w"); break;
  452. + case 32: puts ("hppa2.0n"); break;
  453. + default: puts ("hppa2.0"); break;
  454. + } break;
  455. + #else /* !defined(_SC_KERNEL_BITS) */
  456. + puts ("hppa2.0"); break;
  457. + #endif
  458. + default: puts ("hppa1.0"); break;
  459. + }
  460. + exit (0);
  461. + }
  462. EOF
  463. - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  464. + (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  465. test -z "$HP_ARCH" && HP_ARCH=hppa
  466. fi ;;
  467. esac
  468. - if [ ${HP_ARCH} = "hppa2.0w" ]
  469. + if [ ${HP_ARCH} = hppa2.0w ]
  470. then
  471. eval $set_cc_for_build
  472. @@ -658,12 +701,12 @@
  473. # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  474. # => hppa64-hp-hpux11.23
  475. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  476. + if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
  477. grep -q __LP64__
  478. then
  479. - HP_ARCH="hppa2.0w"
  480. + HP_ARCH=hppa2.0w
  481. else
  482. - HP_ARCH="hppa64"
  483. + HP_ARCH=hppa64
  484. fi
  485. fi
  486. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  487. @@ -730,22 +773,22 @@
  488. exit ;;
  489. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  490. echo c1-convex-bsd
  491. - exit ;;
  492. + exit ;;
  493. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  494. if getsysinfo -f scalar_acc
  495. then echo c32-convex-bsd
  496. else echo c2-convex-bsd
  497. fi
  498. - exit ;;
  499. + exit ;;
  500. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  501. echo c34-convex-bsd
  502. - exit ;;
  503. + exit ;;
  504. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  505. echo c38-convex-bsd
  506. - exit ;;
  507. + exit ;;
  508. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  509. echo c4-convex-bsd
  510. - exit ;;
  511. + exit ;;
  512. CRAY*Y-MP:*:*:*)
  513. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  514. exit ;;
  515. @@ -768,15 +811,15 @@
  516. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  517. exit ;;
  518. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  519. - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  520. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  521. - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  522. - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  523. - exit ;;
  524. + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
  525. + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
  526. + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  527. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  528. + exit ;;
  529. 5000:UNIX_System_V:4.*:*)
  530. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  531. - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  532. - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  533. + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
  534. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
  535. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  536. exit ;;
  537. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  538. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  539. @@ -788,30 +831,35 @@
  540. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  541. exit ;;
  542. *:FreeBSD:*:*)
  543. - case ${UNAME_MACHINE} in
  544. - pc98)
  545. - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  546. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  547. + case ${UNAME_PROCESSOR} in
  548. amd64)
  549. echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  550. *)
  551. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  552. + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  553. esac
  554. exit ;;
  555. i*:CYGWIN*:*)
  556. echo ${UNAME_MACHINE}-pc-cygwin
  557. exit ;;
  558. + *:MINGW64*:*)
  559. + echo ${UNAME_MACHINE}-pc-mingw64
  560. + exit ;;
  561. *:MINGW*:*)
  562. echo ${UNAME_MACHINE}-pc-mingw32
  563. exit ;;
  564. + *:MSYS*:*)
  565. + echo ${UNAME_MACHINE}-pc-msys
  566. + exit ;;
  567. i*:windows32*:*)
  568. - # uname -m includes "-pc" on this system.
  569. - echo ${UNAME_MACHINE}-mingw32
  570. + # uname -m includes "-pc" on this system.
  571. + echo ${UNAME_MACHINE}-mingw32
  572. exit ;;
  573. i*:PW*:*)
  574. echo ${UNAME_MACHINE}-pc-pw32
  575. exit ;;
  576. *:Interix*:*)
  577. - case ${UNAME_MACHINE} in
  578. + case ${UNAME_MACHINE} in
  579. x86)
  580. echo i586-pc-interix${UNAME_RELEASE}
  581. exit ;;
  582. @@ -848,15 +896,22 @@
  583. exit ;;
  584. *:GNU:*:*)
  585. # the GNU system
  586. - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  587. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  588. exit ;;
  589. *:GNU/*:*:*)
  590. # other systems with GNU libc and userland
  591. - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  592. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
  593. exit ;;
  594. i*86:Minix:*:*)
  595. echo ${UNAME_MACHINE}-pc-minix
  596. exit ;;
  597. + aarch64:Linux:*:*)
  598. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  599. + exit ;;
  600. + aarch64_be:Linux:*:*)
  601. + UNAME_MACHINE=aarch64_be
  602. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  603. + exit ;;
  604. alpha:Linux:*:*)
  605. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  606. EV5) UNAME_MACHINE=alphaev5 ;;
  607. @@ -866,52 +921,62 @@
  608. EV6) UNAME_MACHINE=alphaev6 ;;
  609. EV67) UNAME_MACHINE=alphaev67 ;;
  610. EV68*) UNAME_MACHINE=alphaev68 ;;
  611. - esac
  612. + esac
  613. objdump --private-headers /bin/sh | grep -q ld.so.1
  614. - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  615. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  616. + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
  617. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  618. + exit ;;
  619. + arc:Linux:*:* | arceb:Linux:*:*)
  620. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  621. exit ;;
  622. arm*:Linux:*:*)
  623. eval $set_cc_for_build
  624. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  625. | grep -q __ARM_EABI__
  626. then
  627. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  628. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  629. else
  630. - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  631. + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
  632. + | grep -q __ARM_PCS_VFP
  633. + then
  634. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  635. + else
  636. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
  637. + fi
  638. fi
  639. exit ;;
  640. avr32*:Linux:*:*)
  641. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  642. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  643. exit ;;
  644. cris:Linux:*:*)
  645. - echo cris-axis-linux-gnu
  646. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  647. exit ;;
  648. crisv32:Linux:*:*)
  649. - echo crisv32-axis-linux-gnu
  650. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  651. + exit ;;
  652. + e2k:Linux:*:*)
  653. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  654. exit ;;
  655. frv:Linux:*:*)
  656. - echo frv-unknown-linux-gnu
  657. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  658. + exit ;;
  659. + hexagon:Linux:*:*)
  660. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  661. exit ;;
  662. i*86:Linux:*:*)
  663. - LIBC=gnu
  664. - eval $set_cc_for_build
  665. - sed 's/^ //' << EOF >$dummy.c
  666. - #ifdef __dietlibc__
  667. - LIBC=dietlibc
  668. - #endif
  669. -EOF
  670. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  671. - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  672. + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  673. exit ;;
  674. ia64:Linux:*:*)
  675. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  676. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  677. + exit ;;
  678. + k1om:Linux:*:*)
  679. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  680. exit ;;
  681. m32r*:Linux:*:*)
  682. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  683. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  684. exit ;;
  685. m68*:Linux:*:*)
  686. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  687. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  688. exit ;;
  689. mips:Linux:*:* | mips64:Linux:*:*)
  690. eval $set_cc_for_build
  691. @@ -930,51 +995,63 @@
  692. #endif
  693. EOF
  694. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
  695. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  696. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  697. ;;
  698. - or32:Linux:*:*)
  699. - echo or32-unknown-linux-gnu
  700. + openrisc*:Linux:*:*)
  701. + echo or1k-unknown-linux-${LIBC}
  702. + exit ;;
  703. + or32:Linux:*:* | or1k*:Linux:*:*)
  704. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  705. exit ;;
  706. padre:Linux:*:*)
  707. - echo sparc-unknown-linux-gnu
  708. + echo sparc-unknown-linux-${LIBC}
  709. exit ;;
  710. parisc64:Linux:*:* | hppa64:Linux:*:*)
  711. - echo hppa64-unknown-linux-gnu
  712. + echo hppa64-unknown-linux-${LIBC}
  713. exit ;;
  714. parisc:Linux:*:* | hppa:Linux:*:*)
  715. # Look for CPU level
  716. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  717. - PA7*) echo hppa1.1-unknown-linux-gnu ;;
  718. - PA8*) echo hppa2.0-unknown-linux-gnu ;;
  719. - *) echo hppa-unknown-linux-gnu ;;
  720. + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  721. + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  722. + *) echo hppa-unknown-linux-${LIBC} ;;
  723. esac
  724. exit ;;
  725. ppc64:Linux:*:*)
  726. - echo powerpc64-unknown-linux-gnu
  727. + echo powerpc64-unknown-linux-${LIBC}
  728. exit ;;
  729. ppc:Linux:*:*)
  730. - echo powerpc-unknown-linux-gnu
  731. + echo powerpc-unknown-linux-${LIBC}
  732. + exit ;;
  733. + ppc64le:Linux:*:*)
  734. + echo powerpc64le-unknown-linux-${LIBC}
  735. + exit ;;
  736. + ppcle:Linux:*:*)
  737. + echo powerpcle-unknown-linux-${LIBC}
  738. exit ;;
  739. s390:Linux:*:* | s390x:Linux:*:*)
  740. - echo ${UNAME_MACHINE}-ibm-linux
  741. + echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
  742. exit ;;
  743. sh64*:Linux:*:*)
  744. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  745. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  746. exit ;;
  747. sh*:Linux:*:*)
  748. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  749. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  750. exit ;;
  751. sparc:Linux:*:* | sparc64:Linux:*:*)
  752. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  753. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  754. + exit ;;
  755. + tile*:Linux:*:*)
  756. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  757. exit ;;
  758. vax:Linux:*:*)
  759. - echo ${UNAME_MACHINE}-dec-linux-gnu
  760. + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  761. exit ;;
  762. x86_64:Linux:*:*)
  763. - echo x86_64-unknown-linux-gnu
  764. + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  765. exit ;;
  766. xtensa*:Linux:*:*)
  767. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  768. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  769. exit ;;
  770. i*86:DYNIX/ptx:4*:*)
  771. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  772. @@ -983,11 +1060,11 @@
  773. echo i386-sequent-sysv4
  774. exit ;;
  775. i*86:UNIX_SV:4.2MP:2.*)
  776. - # Unixware is an offshoot of SVR4, but it has its own version
  777. - # number series starting with 2...
  778. - # I am not positive that other SVR4 systems won't match this,
  779. + # Unixware is an offshoot of SVR4, but it has its own version
  780. + # number series starting with 2...
  781. + # I am not positive that other SVR4 systems won't match this,
  782. # I just have to hope. -- rms.
  783. - # Use sysv4.2uw... so that sysv4* matches it.
  784. + # Use sysv4.2uw... so that sysv4* matches it.
  785. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  786. exit ;;
  787. i*86:OS/2:*:*)
  788. @@ -1019,7 +1096,7 @@
  789. fi
  790. exit ;;
  791. i*86:*:5:[678]*)
  792. - # UnixWare 7.x, OpenUNIX and OpenServer 6.
  793. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  794. case `/bin/uname -X | grep "^Machine"` in
  795. *486*) UNAME_MACHINE=i486 ;;
  796. *Pentium) UNAME_MACHINE=i586 ;;
  797. @@ -1047,13 +1124,13 @@
  798. exit ;;
  799. pc:*:*:*)
  800. # Left here for compatibility:
  801. - # uname -m prints for DJGPP always 'pc', but it prints nothing about
  802. - # the processor, so we play safe by assuming i586.
  803. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  804. + # the processor, so we play safe by assuming i586.
  805. # Note: whatever this is, it MUST be the same as what config.sub
  806. - # prints for the "djgpp" host, or else GDB configury will decide that
  807. + # prints for the "djgpp" host, or else GDB configure will decide that
  808. # this is a cross-build.
  809. echo i586-pc-msdosdjgpp
  810. - exit ;;
  811. + exit ;;
  812. Intel:Mach:3*:*)
  813. echo i386-pc-mach3
  814. exit ;;
  815. @@ -1088,8 +1165,8 @@
  816. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  817. && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  818. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  819. - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  820. - && { echo i486-ncr-sysv4; exit; } ;;
  821. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  822. + && { echo i486-ncr-sysv4; exit; } ;;
  823. NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  824. OS_REL='.3'
  825. test -r /etc/.relid \
  826. @@ -1132,10 +1209,10 @@
  827. echo ns32k-sni-sysv
  828. fi
  829. exit ;;
  830. - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  831. - # says <Richard.M.Bartel@ccMail.Census.GOV>
  832. - echo i586-unisys-sysv4
  833. - exit ;;
  834. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  835. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  836. + echo i586-unisys-sysv4
  837. + exit ;;
  838. *:UNIX_System_V:4*:FTX*)
  839. # From Gerald Hewes <hewes@openmarket.com>.
  840. # How about differentiating between stratus architectures? -djm
  841. @@ -1161,11 +1238,11 @@
  842. exit ;;
  843. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  844. if [ -d /usr/nec ]; then
  845. - echo mips-nec-sysv${UNAME_RELEASE}
  846. + echo mips-nec-sysv${UNAME_RELEASE}
  847. else
  848. - echo mips-unknown-sysv${UNAME_RELEASE}
  849. + echo mips-unknown-sysv${UNAME_RELEASE}
  850. fi
  851. - exit ;;
  852. + exit ;;
  853. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  854. echo powerpc-be-beos
  855. exit ;;
  856. @@ -1178,6 +1255,9 @@
  857. BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  858. echo i586-pc-haiku
  859. exit ;;
  860. + x86_64:Haiku:*:*)
  861. + echo x86_64-unknown-haiku
  862. + exit ;;
  863. SX-4:SUPER-UX:*:*)
  864. echo sx4-nec-superux${UNAME_RELEASE}
  865. exit ;;
  866. @@ -1196,6 +1276,9 @@
  867. SX-8R:SUPER-UX:*:*)
  868. echo sx8r-nec-superux${UNAME_RELEASE}
  869. exit ;;
  870. + SX-ACE:SUPER-UX:*:*)
  871. + echo sxace-nec-superux${UNAME_RELEASE}
  872. + exit ;;
  873. Power*:Rhapsody:*:*)
  874. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  875. exit ;;
  876. @@ -1204,24 +1287,36 @@
  877. exit ;;
  878. *:Darwin:*:*)
  879. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  880. - case $UNAME_PROCESSOR in
  881. - i386)
  882. - eval $set_cc_for_build
  883. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  884. - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  885. - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  886. - grep IS_64BIT_ARCH >/dev/null
  887. - then
  888. - UNAME_PROCESSOR="x86_64"
  889. - fi
  890. - fi ;;
  891. - unknown) UNAME_PROCESSOR=powerpc ;;
  892. - esac
  893. + eval $set_cc_for_build
  894. + if test "$UNAME_PROCESSOR" = unknown ; then
  895. + UNAME_PROCESSOR=powerpc
  896. + fi
  897. + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
  898. + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
  899. + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  900. + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
  901. + grep IS_64BIT_ARCH >/dev/null
  902. + then
  903. + case $UNAME_PROCESSOR in
  904. + i386) UNAME_PROCESSOR=x86_64 ;;
  905. + powerpc) UNAME_PROCESSOR=powerpc64 ;;
  906. + esac
  907. + fi
  908. + fi
  909. + elif test "$UNAME_PROCESSOR" = i386 ; then
  910. + # Avoid executing cc on OS X 10.9, as it ships with a stub
  911. + # that puts up a graphical alert prompting to install
  912. + # developer tools. Any system running Mac OS X 10.7 or
  913. + # later (Darwin 11 and later) is required to have a 64-bit
  914. + # processor. This is not true of the ARM version of Darwin
  915. + # that Apple uses in portable devices.
  916. + UNAME_PROCESSOR=x86_64
  917. + fi
  918. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  919. exit ;;
  920. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  921. UNAME_PROCESSOR=`uname -p`
  922. - if test "$UNAME_PROCESSOR" = "x86"; then
  923. + if test "$UNAME_PROCESSOR" = x86; then
  924. UNAME_PROCESSOR=i386
  925. UNAME_MACHINE=pc
  926. fi
  927. @@ -1230,7 +1325,10 @@
  928. *:QNX:*:4*)
  929. echo i386-pc-qnx
  930. exit ;;
  931. - NSE-?:NONSTOP_KERNEL:*:*)
  932. + NEO-?:NONSTOP_KERNEL:*:*)
  933. + echo neo-tandem-nsk${UNAME_RELEASE}
  934. + exit ;;
  935. + NSE-*:NONSTOP_KERNEL:*:*)
  936. echo nse-tandem-nsk${UNAME_RELEASE}
  937. exit ;;
  938. NSR-?:NONSTOP_KERNEL:*:*)
  939. @@ -1249,7 +1347,7 @@
  940. # "uname -m" is not consistent, so use $cputype instead. 386
  941. # is converted to i386 for consistency with other x86
  942. # operating systems.
  943. - if test "$cputype" = "386"; then
  944. + if test "$cputype" = 386; then
  945. UNAME_MACHINE=i386
  946. else
  947. UNAME_MACHINE="$cputype"
  948. @@ -1275,13 +1373,13 @@
  949. echo pdp10-unknown-its
  950. exit ;;
  951. SEI:*:*:SEIUX)
  952. - echo mips-sei-seiux${UNAME_RELEASE}
  953. + echo mips-sei-seiux${UNAME_RELEASE}
  954. exit ;;
  955. *:DragonFly:*:*)
  956. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  957. exit ;;
  958. *:*VMS:*:*)
  959. - UNAME_MACHINE=`(uname -p) 2>/dev/null`
  960. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  961. case "${UNAME_MACHINE}" in
  962. A*) echo alpha-dec-vms ; exit ;;
  963. I*) echo ia64-dec-vms ; exit ;;
  964. @@ -1291,7 +1389,7 @@
  965. echo i386-pc-xenix
  966. exit ;;
  967. i*86:skyos:*:*)
  968. - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  969. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
  970. exit ;;
  971. i*86:rdos:*:*)
  972. echo ${UNAME_MACHINE}-pc-rdos
  973. @@ -1299,158 +1397,13 @@
  974. i*86:AROS:*:*)
  975. echo ${UNAME_MACHINE}-pc-aros
  976. exit ;;
  977. -esac
  978. -
  979. -#echo '(No uname command or uname output not recognized.)' 1>&2
  980. -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  981. -
  982. -eval $set_cc_for_build
  983. -cat >$dummy.c <<EOF
  984. -#ifdef _SEQUENT_
  985. -# include <sys/types.h>
  986. -# include <sys/utsname.h>
  987. -#endif
  988. -main ()
  989. -{
  990. -#if defined (sony)
  991. -#if defined (MIPSEB)
  992. - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  993. - I don't know.... */
  994. - printf ("mips-sony-bsd\n"); exit (0);
  995. -#else
  996. -#include <sys/param.h>
  997. - printf ("m68k-sony-newsos%s\n",
  998. -#ifdef NEWSOS4
  999. - "4"
  1000. -#else
  1001. - ""
  1002. -#endif
  1003. - ); exit (0);
  1004. -#endif
  1005. -#endif
  1006. -
  1007. -#if defined (__arm) && defined (__acorn) && defined (__unix)
  1008. - printf ("arm-acorn-riscix\n"); exit (0);
  1009. -#endif
  1010. -
  1011. -#if defined (hp300) && !defined (hpux)
  1012. - printf ("m68k-hp-bsd\n"); exit (0);
  1013. -#endif
  1014. -
  1015. -#if defined (NeXT)
  1016. -#if !defined (__ARCHITECTURE__)
  1017. -#define __ARCHITECTURE__ "m68k"
  1018. -#endif
  1019. - int version;
  1020. - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1021. - if (version < 4)
  1022. - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1023. - else
  1024. - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1025. - exit (0);
  1026. -#endif
  1027. -
  1028. -#if defined (MULTIMAX) || defined (n16)
  1029. -#if defined (UMAXV)
  1030. - printf ("ns32k-encore-sysv\n"); exit (0);
  1031. -#else
  1032. -#if defined (CMU)
  1033. - printf ("ns32k-encore-mach\n"); exit (0);
  1034. -#else
  1035. - printf ("ns32k-encore-bsd\n"); exit (0);
  1036. -#endif
  1037. -#endif
  1038. -#endif
  1039. -
  1040. -#if defined (__386BSD__)
  1041. - printf ("i386-pc-bsd\n"); exit (0);
  1042. -#endif
  1043. -
  1044. -#if defined (sequent)
  1045. -#if defined (i386)
  1046. - printf ("i386-sequent-dynix\n"); exit (0);
  1047. -#endif
  1048. -#if defined (ns32000)
  1049. - printf ("ns32k-sequent-dynix\n"); exit (0);
  1050. -#endif
  1051. -#endif
  1052. -
  1053. -#if defined (_SEQUENT_)
  1054. - struct utsname un;
  1055. -
  1056. - uname(&un);
  1057. -
  1058. - if (strncmp(un.version, "V2", 2) == 0) {
  1059. - printf ("i386-sequent-ptx2\n"); exit (0);
  1060. - }
  1061. - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  1062. - printf ("i386-sequent-ptx1\n"); exit (0);
  1063. - }
  1064. - printf ("i386-sequent-ptx\n"); exit (0);
  1065. -
  1066. -#endif
  1067. -
  1068. -#if defined (vax)
  1069. -# if !defined (ultrix)
  1070. -# include <sys/param.h>
  1071. -# if defined (BSD)
  1072. -# if BSD == 43
  1073. - printf ("vax-dec-bsd4.3\n"); exit (0);
  1074. -# else
  1075. -# if BSD == 199006
  1076. - printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1077. -# else
  1078. - printf ("vax-dec-bsd\n"); exit (0);
  1079. -# endif
  1080. -# endif
  1081. -# else
  1082. - printf ("vax-dec-bsd\n"); exit (0);
  1083. -# endif
  1084. -# else
  1085. - printf ("vax-dec-ultrix\n"); exit (0);
  1086. -# endif
  1087. -#endif
  1088. -
  1089. -#if defined (alliant) && defined (i860)
  1090. - printf ("i860-alliant-bsd\n"); exit (0);
  1091. -#endif
  1092. -
  1093. - exit (1);
  1094. -}
  1095. -EOF
  1096. -
  1097. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  1098. - { echo "$SYSTEM_NAME"; exit; }
  1099. -
  1100. -# Apollos put the system type in the environment.
  1101. -
  1102. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  1103. -
  1104. -# Convex versions that predate uname can use getsysinfo(1)
  1105. -
  1106. -if [ -x /usr/convex/getsysinfo ]
  1107. -then
  1108. - case `getsysinfo -f cpu_type` in
  1109. - c1*)
  1110. - echo c1-convex-bsd
  1111. - exit ;;
  1112. - c2*)
  1113. - if getsysinfo -f scalar_acc
  1114. - then echo c32-convex-bsd
  1115. - else echo c2-convex-bsd
  1116. - fi
  1117. - exit ;;
  1118. - c34*)
  1119. - echo c34-convex-bsd
  1120. - exit ;;
  1121. - c38*)
  1122. - echo c38-convex-bsd
  1123. + x86_64:VMkernel:*:*)
  1124. + echo ${UNAME_MACHINE}-unknown-esx
  1125. exit ;;
  1126. - c4*)
  1127. - echo c4-convex-bsd
  1128. + amd64:Isilon\ OneFS:*:*)
  1129. + echo x86_64-unknown-onefs
  1130. exit ;;
  1131. - esac
  1132. -fi
  1133. +esac
  1134. cat >&2 <<EOF
  1135. $0: unable to guess system type
  1136. @@ -1459,9 +1412,9 @@
  1137. the operating system you are using. It is advised that you
  1138. download the most up to date version of the config scripts from
  1139. - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  1140. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
  1141. and
  1142. - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  1143. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
  1144. If the version you run ($0) is already up to date, please
  1145. send the following data and any information you think might be
  1146. diff -Naur ruby-1.9.3-p551/tool/config.sub ruby-1.9.3-p551+ppc64le/tool/config.sub
  1147. --- ruby-1.9.3-p551/tool/config.sub 2010-10-03 15:06:23.000000000 +0000
  1148. +++ ruby-1.9.3-p551+ppc64le/tool/config.sub 2016-04-15 05:09:41.237756446 +0000
  1149. @@ -1,38 +1,31 @@
  1150. #! /bin/sh
  1151. # Configuration validation subroutine script.
  1152. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  1153. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  1154. -# Free Software Foundation, Inc.
  1155. -
  1156. -timestamp='2009-11-20'
  1157. -
  1158. -# This file is (in principle) common to ALL GNU software.
  1159. -# The presence of a machine in this file suggests that SOME GNU software
  1160. -# can handle that machine. It does not imply ALL GNU software can.
  1161. -#
  1162. -# This file is free software; you can redistribute it and/or modify
  1163. -# it under the terms of the GNU General Public License as published by
  1164. -# the Free Software Foundation; either version 2 of the License, or
  1165. +# Copyright 1992-2016 Free Software Foundation, Inc.
  1166. +
  1167. +timestamp='2016-03-30'
  1168. +
  1169. +# This file is free software; you can redistribute it and/or modify it
  1170. +# under the terms of the GNU General Public License as published by
  1171. +# the Free Software Foundation; either version 3 of the License, or
  1172. # (at your option) any later version.
  1173. #
  1174. -# This program is distributed in the hope that it will be useful,
  1175. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1176. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1177. -# GNU General Public License for more details.
  1178. +# This program is distributed in the hope that it will be useful, but
  1179. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  1180. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1181. +# General Public License for more details.
  1182. #
  1183. # You should have received a copy of the GNU General Public License
  1184. -# along with this program; if not, write to the Free Software
  1185. -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  1186. -# 02110-1301, USA.
  1187. +# along with this program; if not, see <http://www.gnu.org/licenses/>.
  1188. #
  1189. # As a special exception to the GNU General Public License, if you
  1190. # distribute this file as part of a program that contains a
  1191. # configuration script generated by Autoconf, you may include it under
  1192. -# the same distribution terms that you use for the rest of that program.
  1193. +# the same distribution terms that you use for the rest of that
  1194. +# program. This Exception is an additional permission under section 7
  1195. +# of the GNU General Public License, version 3 ("GPLv3").
  1196. -# Please send patches to <config-patches@gnu.org>. Submit a context
  1197. -# diff and a properly formatted GNU ChangeLog entry.
  1198. +# Please send patches to <config-patches@gnu.org>.
  1199. #
  1200. # Configuration subroutine to validate and canonicalize a configuration type.
  1201. # Supply the specified configuration type as an argument.
  1202. @@ -40,7 +33,7 @@
  1203. # Otherwise, we print the canonical config type on stdout and succeed.
  1204. # You can get the latest version of this script from:
  1205. -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  1206. +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
  1207. # This file is supposed to be the same for all GNU packages
  1208. # and recognize all the CPU types, system types and aliases
  1209. @@ -60,8 +53,7 @@
  1210. me=`echo "$0" | sed -e 's,.*/,,'`
  1211. usage="\
  1212. -Usage: $0 [OPTION] CPU-MFR-OPSYS
  1213. - $0 [OPTION] ALIAS
  1214. +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
  1215. Canonicalize a configuration name.
  1216. @@ -75,8 +67,7 @@
  1217. version="\
  1218. GNU config.sub ($timestamp)
  1219. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  1220. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1221. +Copyright 1992-2016 Free Software Foundation, Inc.
  1222. This is free software; see the source for copying conditions. There is NO
  1223. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  1224. @@ -123,13 +114,18 @@
  1225. # Here we must recognize all the valid KERNEL-OS combinations.
  1226. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  1227. case $maybe_os in
  1228. - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  1229. - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  1230. + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
  1231. + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  1232. + knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
  1233. kopensolaris*-gnu* | \
  1234. storm-chaos* | os2-emx* | rtmk-nova*)
  1235. os=-$maybe_os
  1236. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  1237. ;;
  1238. + android-linux)
  1239. + os=-linux-android
  1240. + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
  1241. + ;;
  1242. *)
  1243. basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  1244. if [ $basic_machine != $1 ]
  1245. @@ -152,12 +148,12 @@
  1246. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  1247. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  1248. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  1249. - -apple | -axis | -knuth | -cray | -microblaze)
  1250. + -apple | -axis | -knuth | -cray | -microblaze*)
  1251. os=
  1252. basic_machine=$1
  1253. ;;
  1254. - -bluegene*)
  1255. - os=-cnk
  1256. + -bluegene*)
  1257. + os=-cnk
  1258. ;;
  1259. -sim | -cisco | -oki | -wec | -winbond)
  1260. os=
  1261. @@ -173,10 +169,10 @@
  1262. os=-chorusos
  1263. basic_machine=$1
  1264. ;;
  1265. - -chorusrdb)
  1266. - os=-chorusrdb
  1267. + -chorusrdb)
  1268. + os=-chorusrdb
  1269. basic_machine=$1
  1270. - ;;
  1271. + ;;
  1272. -hiux*)
  1273. os=-hiuxwe2
  1274. ;;
  1275. @@ -221,6 +217,12 @@
  1276. -isc*)
  1277. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  1278. ;;
  1279. + -lynx*178)
  1280. + os=-lynxos178
  1281. + ;;
  1282. + -lynx*5)
  1283. + os=-lynxos5
  1284. + ;;
  1285. -lynx*)
  1286. os=-lynxos
  1287. ;;
  1288. @@ -245,20 +247,29 @@
  1289. # Some are omitted here because they have special meanings below.
  1290. 1750a | 580 \
  1291. | a29k \
  1292. + | aarch64 | aarch64_be \
  1293. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  1294. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  1295. | am33_2.0 \
  1296. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  1297. + | arc | arceb \
  1298. + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
  1299. + | avr | avr32 \
  1300. + | ba \
  1301. + | be32 | be64 \
  1302. | bfin \
  1303. - | c4x | clipper \
  1304. + | c4x | c8051 | clipper \
  1305. | d10v | d30v | dlx | dsp16xx \
  1306. - | fido | fr30 | frv \
  1307. + | e2k | epiphany \
  1308. + | fido | fr30 | frv | ft32 \
  1309. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  1310. + | hexagon \
  1311. | i370 | i860 | i960 | ia64 \
  1312. | ip2k | iq2000 \
  1313. + | k1om \
  1314. + | le32 | le64 \
  1315. | lm32 \
  1316. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  1317. - | maxq | mb | microblaze | mcore | mep | metag \
  1318. + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
  1319. | mips | mipsbe | mipseb | mipsel | mipsle \
  1320. | mips16 \
  1321. | mips64 | mips64el \
  1322. @@ -272,38 +283,55 @@
  1323. | mips64vr5900 | mips64vr5900el \
  1324. | mipsisa32 | mipsisa32el \
  1325. | mipsisa32r2 | mipsisa32r2el \
  1326. + | mipsisa32r6 | mipsisa32r6el \
  1327. | mipsisa64 | mipsisa64el \
  1328. | mipsisa64r2 | mipsisa64r2el \
  1329. + | mipsisa64r6 | mipsisa64r6el \
  1330. | mipsisa64sb1 | mipsisa64sb1el \
  1331. | mipsisa64sr71k | mipsisa64sr71kel \
  1332. + | mipsr5900 | mipsr5900el \
  1333. | mipstx39 | mipstx39el \
  1334. | mn10200 | mn10300 \
  1335. | moxie \
  1336. | mt \
  1337. | msp430 \
  1338. - | nios | nios2 \
  1339. + | nds32 | nds32le | nds32be \
  1340. + | nios | nios2 | nios2eb | nios2el \
  1341. | ns16k | ns32k \
  1342. - | or32 \
  1343. + | open8 | or1k | or1knd | or32 \
  1344. | pdp10 | pdp11 | pj | pjl \
  1345. - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  1346. + | powerpc | powerpc64 | powerpc64le | powerpcle \
  1347. | pyramid \
  1348. - | rx \
  1349. + | riscv32 | riscv64 \
  1350. + | rl78 | rx \
  1351. | score \
  1352. - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  1353. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  1354. | sh64 | sh64le \
  1355. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  1356. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  1357. - | spu | strongarm \
  1358. - | tahoe | thumb | tic4x | tic80 | tron \
  1359. + | spu \
  1360. + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
  1361. | ubicom32 \
  1362. - | v850 | v850e \
  1363. + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
  1364. + | visium \
  1365. | we32k \
  1366. - | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  1367. + | x86 | xc16x | xstormy16 | xtensa \
  1368. | z8k | z80)
  1369. basic_machine=$basic_machine-unknown
  1370. ;;
  1371. - m6811 | m68hc11 | m6812 | m68hc12 | picochip)
  1372. - # Motorola 68HC11/12.
  1373. + c54x)
  1374. + basic_machine=tic54x-unknown
  1375. + ;;
  1376. + c55x)
  1377. + basic_machine=tic55x-unknown
  1378. + ;;
  1379. + c6x)
  1380. + basic_machine=tic6x-unknown
  1381. + ;;
  1382. + leon|leon[3-9])
  1383. + basic_machine=sparc-$basic_machine
  1384. + ;;
  1385. + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
  1386. basic_machine=$basic_machine-unknown
  1387. os=-none
  1388. ;;
  1389. @@ -313,6 +341,21 @@
  1390. basic_machine=mt-unknown
  1391. ;;
  1392. + strongarm | thumb | xscale)
  1393. + basic_machine=arm-unknown
  1394. + ;;
  1395. + xgate)
  1396. + basic_machine=$basic_machine-unknown
  1397. + os=-none
  1398. + ;;
  1399. + xscaleeb)
  1400. + basic_machine=armeb-unknown
  1401. + ;;
  1402. +
  1403. + xscaleel)
  1404. + basic_machine=armel-unknown
  1405. + ;;
  1406. +
  1407. # We use `pc' rather than `unknown'
  1408. # because (1) that's what they normally are, and
  1409. # (2) the word "unknown" tends to confuse beginning users.
  1410. @@ -327,25 +370,32 @@
  1411. # Recognize the basic CPU types with company name.
  1412. 580-* \
  1413. | a29k-* \
  1414. + | aarch64-* | aarch64_be-* \
  1415. | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  1416. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  1417. - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  1418. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
  1419. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  1420. | avr-* | avr32-* \
  1421. + | ba-* \
  1422. + | be32-* | be64-* \
  1423. | bfin-* | bs2000-* \
  1424. - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  1425. - | clipper-* | craynv-* | cydra-* \
  1426. + | c[123]* | c30-* | [cjt]90-* | c4x-* \
  1427. + | c8051-* | clipper-* | craynv-* | cydra-* \
  1428. | d10v-* | d30v-* | dlx-* \
  1429. - | elxsi-* \
  1430. + | e2k-* | elxsi-* \
  1431. | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  1432. | h8300-* | h8500-* \
  1433. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  1434. + | hexagon-* \
  1435. | i*86-* | i860-* | i960-* | ia64-* \
  1436. | ip2k-* | iq2000-* \
  1437. + | k1om-* \
  1438. + | le32-* | le64-* \
  1439. | lm32-* \
  1440. | m32c-* | m32r-* | m32rle-* \
  1441. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  1442. - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
  1443. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  1444. + | microblaze-* | microblazeel-* \
  1445. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  1446. | mips16-* \
  1447. | mips64-* | mips64el-* \
  1448. @@ -359,33 +409,43 @@
  1449. | mips64vr5900-* | mips64vr5900el-* \
  1450. | mipsisa32-* | mipsisa32el-* \
  1451. | mipsisa32r2-* | mipsisa32r2el-* \
  1452. + | mipsisa32r6-* | mipsisa32r6el-* \
  1453. | mipsisa64-* | mipsisa64el-* \
  1454. | mipsisa64r2-* | mipsisa64r2el-* \
  1455. + | mipsisa64r6-* | mipsisa64r6el-* \
  1456. | mipsisa64sb1-* | mipsisa64sb1el-* \
  1457. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  1458. + | mipsr5900-* | mipsr5900el-* \
  1459. | mipstx39-* | mipstx39el-* \
  1460. | mmix-* \
  1461. | mt-* \
  1462. | msp430-* \
  1463. - | nios-* | nios2-* \
  1464. + | nds32-* | nds32le-* | nds32be-* \
  1465. + | nios-* | nios2-* | nios2eb-* | nios2el-* \
  1466. | none-* | np1-* | ns16k-* | ns32k-* \
  1467. + | open8-* \
  1468. + | or1k*-* \
  1469. | orion-* \
  1470. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  1471. - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  1472. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
  1473. | pyramid-* \
  1474. - | romp-* | rs6000-* | rx-* \
  1475. + | riscv32-* | riscv64-* \
  1476. + | rl78-* | romp-* | rs6000-* | rx-* \
  1477. | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  1478. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  1479. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  1480. | sparclite-* \
  1481. - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  1482. - | tahoe-* | thumb-* \
  1483. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  1484. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
  1485. + | tahoe-* \
  1486. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  1487. + | tile*-* \
  1488. | tron-* \
  1489. | ubicom32-* \
  1490. - | v850-* | v850e-* | vax-* \
  1491. + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
  1492. + | vax-* \
  1493. + | visium-* \
  1494. | we32k-* \
  1495. - | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  1496. + | x86-* | x86_64-* | xc16x-* | xps100-* \
  1497. | xstormy16-* | xtensa*-* \
  1498. | ymp-* \
  1499. | z8k-* | z80-*)
  1500. @@ -410,7 +470,7 @@
  1501. basic_machine=a29k-amd
  1502. os=-udi
  1503. ;;
  1504. - abacus)
  1505. + abacus)
  1506. basic_machine=abacus-unknown
  1507. ;;
  1508. adobe68k)
  1509. @@ -460,6 +520,9 @@
  1510. basic_machine=i386-pc
  1511. os=-aros
  1512. ;;
  1513. + asmjs)
  1514. + basic_machine=asmjs-unknown
  1515. + ;;
  1516. aux)
  1517. basic_machine=m68k-apple
  1518. os=-aux
  1519. @@ -480,11 +543,20 @@
  1520. basic_machine=powerpc-ibm
  1521. os=-cnk
  1522. ;;
  1523. + c54x-*)
  1524. + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
  1525. + ;;
  1526. + c55x-*)
  1527. + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
  1528. + ;;
  1529. + c6x-*)
  1530. + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
  1531. + ;;
  1532. c90)
  1533. basic_machine=c90-cray
  1534. os=-unicos
  1535. ;;
  1536. - cegcc)
  1537. + cegcc)
  1538. basic_machine=arm-unknown
  1539. os=-cegcc
  1540. ;;
  1541. @@ -516,7 +588,7 @@
  1542. basic_machine=craynv-cray
  1543. os=-unicosmp
  1544. ;;
  1545. - cr16)
  1546. + cr16 | cr16-*)
  1547. basic_machine=cr16-unknown
  1548. os=-elf
  1549. ;;
  1550. @@ -674,7 +746,6 @@
  1551. i370-ibm* | ibm*)
  1552. basic_machine=i370-ibm
  1553. ;;
  1554. -# I'm not sure what "Sysv32" means. Should this be sysv3.2?
  1555. i*86v32)
  1556. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  1557. os=-sysv32
  1558. @@ -713,6 +784,9 @@
  1559. basic_machine=m68k-isi
  1560. os=-sysv
  1561. ;;
  1562. + leon-*|leon[3-9]-*)
  1563. + basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
  1564. + ;;
  1565. m68knommu)
  1566. basic_machine=m68k-unknown
  1567. os=-linux
  1568. @@ -732,11 +806,15 @@
  1569. basic_machine=ns32k-utek
  1570. os=-sysv
  1571. ;;
  1572. - microblaze)
  1573. + microblaze*)
  1574. basic_machine=microblaze-xilinx
  1575. ;;
  1576. + mingw64)
  1577. + basic_machine=x86_64-pc
  1578. + os=-mingw64
  1579. + ;;
  1580. mingw32)
  1581. - basic_machine=i386-pc
  1582. + basic_machine=i686-pc
  1583. os=-mingw32
  1584. ;;
  1585. mingw32ce)
  1586. @@ -764,6 +842,10 @@
  1587. basic_machine=powerpc-unknown
  1588. os=-morphos
  1589. ;;
  1590. + moxiebox)
  1591. + basic_machine=moxie-unknown
  1592. + os=-moxiebox
  1593. + ;;
  1594. msdos)
  1595. basic_machine=i386-pc
  1596. os=-msdos
  1597. @@ -771,10 +853,18 @@
  1598. ms1-*)
  1599. basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  1600. ;;
  1601. + msys)
  1602. + basic_machine=i686-pc
  1603. + os=-msys
  1604. + ;;
  1605. mvs)
  1606. basic_machine=i370-ibm
  1607. os=-mvs
  1608. ;;
  1609. + nacl)
  1610. + basic_machine=le32-unknown
  1611. + os=-nacl
  1612. + ;;
  1613. ncr3000)
  1614. basic_machine=i486-ncr
  1615. os=-sysv4
  1616. @@ -839,6 +929,12 @@
  1617. np1)
  1618. basic_machine=np1-gould
  1619. ;;
  1620. + neo-tandem)
  1621. + basic_machine=neo-tandem
  1622. + ;;
  1623. + nse-tandem)
  1624. + basic_machine=nse-tandem
  1625. + ;;
  1626. nsr-tandem)
  1627. basic_machine=nsr-tandem
  1628. ;;
  1629. @@ -921,9 +1017,10 @@
  1630. ;;
  1631. power) basic_machine=power-ibm
  1632. ;;
  1633. - ppc) basic_machine=powerpc-unknown
  1634. + ppc | ppcbe) basic_machine=powerpc-unknown
  1635. ;;
  1636. - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  1637. + ppc-* | ppcbe-*)
  1638. + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  1639. ;;
  1640. ppcle | powerpclittle | ppc-le | powerpc-little)
  1641. basic_machine=powerpcle-unknown
  1642. @@ -948,7 +1045,11 @@
  1643. basic_machine=i586-unknown
  1644. os=-pw32
  1645. ;;
  1646. - rdos)
  1647. + rdos | rdos64)
  1648. + basic_machine=x86_64-pc
  1649. + os=-rdos
  1650. + ;;
  1651. + rdos32)
  1652. basic_machine=i386-pc
  1653. os=-rdos
  1654. ;;
  1655. @@ -1017,6 +1118,9 @@
  1656. basic_machine=i860-stratus
  1657. os=-sysv4
  1658. ;;
  1659. + strongarm-* | thumb-*)
  1660. + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
  1661. + ;;
  1662. sun2)
  1663. basic_machine=m68000-sun
  1664. ;;
  1665. @@ -1073,20 +1177,8 @@
  1666. basic_machine=t90-cray
  1667. os=-unicos
  1668. ;;
  1669. - tic54x | c54x*)
  1670. - basic_machine=tic54x-unknown
  1671. - os=-coff
  1672. - ;;
  1673. - tic55x | c55x*)
  1674. - basic_machine=tic55x-unknown
  1675. - os=-coff
  1676. - ;;
  1677. - tic6x | c6x*)
  1678. - basic_machine=tic6x-unknown
  1679. - os=-coff
  1680. - ;;
  1681. tile*)
  1682. - basic_machine=tile-unknown
  1683. + basic_machine=$basic_machine-unknown
  1684. os=-linux-gnu
  1685. ;;
  1686. tx39)
  1687. @@ -1156,6 +1248,9 @@
  1688. xps | xps100)
  1689. basic_machine=xps100-honeywell
  1690. ;;
  1691. + xscale-* | xscalee[bl]-*)
  1692. + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
  1693. + ;;
  1694. ymp)
  1695. basic_machine=ymp-cray
  1696. os=-unicos
  1697. @@ -1253,11 +1348,11 @@
  1698. if [ x"$os" != x"" ]
  1699. then
  1700. case $os in
  1701. - # First match some system type aliases
  1702. - # that might get confused with valid system types.
  1703. + # First match some system type aliases
  1704. + # that might get confused with valid system types.
  1705. # -solaris* is a basic system type, with this one exception.
  1706. - -auroraux)
  1707. - os=-auroraux
  1708. + -auroraux)
  1709. + os=-auroraux
  1710. ;;
  1711. -solaris1 | -solaris1.*)
  1712. os=`echo $os | sed -e 's|solaris1|sunos4|'`
  1713. @@ -1281,28 +1376,30 @@
  1714. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1715. | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  1716. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
  1717. - | -sym* | -kopensolaris* \
  1718. + | -sym* | -kopensolaris* | -plan9* \
  1719. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1720. - | -aos* | -aros* \
  1721. + | -aos* | -aros* | -cloudabi* | -sortix* \
  1722. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1723. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1724. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  1725. - | -openbsd* | -solidbsd* \
  1726. + | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
  1727. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  1728. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1729. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1730. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1731. | -chorusos* | -chorusrdb* | -cegcc* \
  1732. - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1733. - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  1734. - | -uxpv* | -beos* | -mpeix* | -udk* \
  1735. + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1736. + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
  1737. + | -linux-newlib* | -linux-musl* | -linux-uclibc* \
  1738. + | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
  1739. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  1740. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1741. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1742. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  1743. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  1744. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  1745. - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
  1746. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
  1747. + | -onefs* | -tirtos*)
  1748. # Remember, each alternative MUST END IN *, to match a version number.
  1749. ;;
  1750. -qnx*)
  1751. @@ -1341,7 +1438,7 @@
  1752. -opened*)
  1753. os=-openedition
  1754. ;;
  1755. - -os400*)
  1756. + -os400*)
  1757. os=-os400
  1758. ;;
  1759. -wince*)
  1760. @@ -1390,7 +1487,7 @@
  1761. -sinix*)
  1762. os=-sysv4
  1763. ;;
  1764. - -tpf*)
  1765. + -tpf*)
  1766. os=-tpf
  1767. ;;
  1768. -triton*)
  1769. @@ -1426,15 +1523,16 @@
  1770. -aros*)
  1771. os=-aros
  1772. ;;
  1773. - -kaos*)
  1774. - os=-kaos
  1775. - ;;
  1776. -zvmoe)
  1777. os=-zvmoe
  1778. ;;
  1779. -dicos*)
  1780. os=-dicos
  1781. ;;
  1782. + -nacl*)
  1783. + ;;
  1784. + -ios)
  1785. + ;;
  1786. -none)
  1787. ;;
  1788. *)
  1789. @@ -1457,10 +1555,10 @@
  1790. # system, and we'll never get to this point.
  1791. case $basic_machine in
  1792. - score-*)
  1793. + score-*)
  1794. os=-elf
  1795. ;;
  1796. - spu-*)
  1797. + spu-*)
  1798. os=-elf
  1799. ;;
  1800. *-acorn)
  1801. @@ -1472,8 +1570,23 @@
  1802. arm*-semi)
  1803. os=-aout
  1804. ;;
  1805. - c4x-* | tic4x-*)
  1806. - os=-coff
  1807. + c4x-* | tic4x-*)
  1808. + os=-coff
  1809. + ;;
  1810. + c8051-*)
  1811. + os=-elf
  1812. + ;;
  1813. + hexagon-*)
  1814. + os=-elf
  1815. + ;;
  1816. + tic54x-*)
  1817. + os=-coff
  1818. + ;;
  1819. + tic55x-*)
  1820. + os=-coff
  1821. + ;;
  1822. + tic6x-*)
  1823. + os=-coff
  1824. ;;
  1825. # This must come before the *-dec entry.
  1826. pdp10-*)
  1827. @@ -1493,14 +1606,11 @@
  1828. ;;
  1829. m68000-sun)
  1830. os=-sunos3
  1831. - # This also exists in the configure program, but was not the
  1832. - # default.
  1833. - # os=-sunos4
  1834. ;;
  1835. m68*-cisco)
  1836. os=-aout
  1837. ;;
  1838. - mep-*)
  1839. + mep-*)
  1840. os=-elf
  1841. ;;
  1842. mips*-cisco)
  1843. @@ -1527,7 +1637,7 @@
  1844. *-ibm)
  1845. os=-aix
  1846. ;;
  1847. - *-knuth)
  1848. + *-knuth)
  1849. os=-mmixware
  1850. ;;
  1851. *-wec)