jpeg-6b-config_guess.patch 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854
  1. diff -urN jpeg.old/config.guess jpeg.dev/config.guess
  2. --- jpeg.old/config.guess 1998-03-25 16:25:38.000000000 +0100
  3. +++ jpeg.dev/config.guess 2006-04-21 16:22:05.000000000 +0200
  4. @@ -1,7 +1,10 @@
  5. #! /bin/sh
  6. # Attempt to guess a canonical system name.
  7. -# Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
  8. -#
  9. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  10. +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  11. +
  12. +timestamp='2004-11-12'
  13. +
  14. # This file is free software; you can redistribute it and/or modify it
  15. # under the terms of the GNU General Public License as published by
  16. # the Free Software Foundation; either version 2 of the License, or
  17. @@ -21,125 +24,314 @@
  18. # configuration script generated by Autoconf, you may include it under
  19. # the same distribution terms that you use for the rest of that program.
  20. -# Written by Per Bothner <bothner@cygnus.com>.
  21. -# The master version of this file is at the FSF in /home/gd/gnu/lib.
  22. +# Originally written by Per Bothner <per@bothner.com>.
  23. +# Please send patches to <config-patches@gnu.org>. Submit a context
  24. +# diff and a properly formatted ChangeLog entry.
  25. #
  26. # This script attempts to guess a canonical system name similar to
  27. # config.sub. If it succeeds, it prints the system name on stdout, and
  28. # exits with 0. Otherwise, it exits with 1.
  29. #
  30. # The plan is that this can be called by configure scripts if you
  31. -# don't specify an explicit system type (host/target name).
  32. -#
  33. -# Only a few systems have been added to this list; please add others
  34. -# (but try to keep the structure clean).
  35. -#
  36. +# don't specify an explicit build system type.
  37. +
  38. +me=`echo "$0" | sed -e 's,.*/,,'`
  39. +
  40. +usage="\
  41. +Usage: $0 [OPTION]
  42. +
  43. +Output the configuration name of the system \`$me' is run on.
  44. +
  45. +Operation modes:
  46. + -h, --help print this help, then exit
  47. + -t, --time-stamp print date of last modification, then exit
  48. + -v, --version print version number, then exit
  49. +
  50. +Report bugs and patches to <config-patches@gnu.org>."
  51. +
  52. +version="\
  53. +GNU config.guess ($timestamp)
  54. +
  55. +Originally written by Per Bothner.
  56. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  57. +Free Software Foundation, Inc.
  58. +
  59. +This is free software; see the source for copying conditions. There is NO
  60. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  61. +
  62. +help="
  63. +Try \`$me --help' for more information."
  64. +
  65. +# Parse command line
  66. +while test $# -gt 0 ; do
  67. + case $1 in
  68. + --time-stamp | --time* | -t )
  69. + echo "$timestamp" ; exit 0 ;;
  70. + --version | -v )
  71. + echo "$version" ; exit 0 ;;
  72. + --help | --h* | -h )
  73. + echo "$usage"; exit 0 ;;
  74. + -- ) # Stop option processing
  75. + shift; break ;;
  76. + - ) # Use stdin as input.
  77. + break ;;
  78. + -* )
  79. + echo "$me: invalid option $1$help" >&2
  80. + exit 1 ;;
  81. + * )
  82. + break ;;
  83. + esac
  84. +done
  85. +
  86. +if test $# != 0; then
  87. + echo "$me: too many arguments$help" >&2
  88. + exit 1
  89. +fi
  90. +
  91. +trap 'exit 1' 1 2 15
  92. +
  93. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  94. +# compiler to aid in system detection is discouraged as it requires
  95. +# temporary files to be created and, as you can see below, it is a
  96. +# headache to deal with in a portable fashion.
  97. +
  98. +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  99. +# use `HOST_CC' if defined, but it is deprecated.
  100. +
  101. +# Portable tmp directory creation inspired by the Autoconf team.
  102. +
  103. +set_cc_for_build='
  104. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  105. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  106. +: ${TMPDIR=/tmp} ;
  107. + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  108. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  109. + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  110. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  111. +dummy=$tmp/dummy ;
  112. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  113. +case $CC_FOR_BUILD,$HOST_CC,$CC in
  114. + ,,) echo "int x;" > $dummy.c ;
  115. + for c in cc gcc c89 c99 ; do
  116. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  117. + CC_FOR_BUILD="$c"; break ;
  118. + fi ;
  119. + done ;
  120. + if test x"$CC_FOR_BUILD" = x ; then
  121. + CC_FOR_BUILD=no_compiler_found ;
  122. + fi
  123. + ;;
  124. + ,,*) CC_FOR_BUILD=$CC ;;
  125. + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  126. +esac ;'
  127. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  128. -# (ghazi@noc.rutgers.edu 8/24/94.)
  129. +# (ghazi@noc.rutgers.edu 1994-08-24)
  130. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  131. PATH=$PATH:/.attbin ; export PATH
  132. fi
  133. UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  134. UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  135. -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  136. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  137. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  138. -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
  139. -
  140. # Note: order is significant - the case branches are not exclusive.
  141. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  142. + *:NetBSD:*:*)
  143. + # NetBSD (nbsd) targets should (where applicable) match one or
  144. + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  145. + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  146. + # switched to ELF, *-*-netbsd* would select the old
  147. + # object file format. This provides both forward
  148. + # compatibility and a consistent mechanism for selecting the
  149. + # object file format.
  150. + #
  151. + # Note: NetBSD doesn't particularly care about the vendor
  152. + # portion of the name. We always set it to "unknown".
  153. + sysctl="sysctl -n hw.machine_arch"
  154. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  155. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  156. + case "${UNAME_MACHINE_ARCH}" in
  157. + armeb) machine=armeb-unknown ;;
  158. + arm*) machine=arm-unknown ;;
  159. + sh3el) machine=shl-unknown ;;
  160. + sh3eb) machine=sh-unknown ;;
  161. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  162. + esac
  163. + # The Operating System including object format, if it has switched
  164. + # to ELF recently, or will in the future.
  165. + case "${UNAME_MACHINE_ARCH}" in
  166. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  167. + eval $set_cc_for_build
  168. + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  169. + | grep __ELF__ >/dev/null
  170. + then
  171. + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  172. + # Return netbsd for either. FIX?
  173. + os=netbsd
  174. + else
  175. + os=netbsdelf
  176. + fi
  177. + ;;
  178. + *)
  179. + os=netbsd
  180. + ;;
  181. + esac
  182. + # The OS release
  183. + # Debian GNU/NetBSD machines have a different userland, and
  184. + # thus, need a distinct triplet. However, they do not need
  185. + # kernel version information, so it can be replaced with a
  186. + # suitable tag, in the style of linux-gnu.
  187. + case "${UNAME_VERSION}" in
  188. + Debian*)
  189. + release='-gnu'
  190. + ;;
  191. + *)
  192. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  193. + ;;
  194. + esac
  195. + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  196. + # contains redundant information, the shorter form:
  197. + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  198. + echo "${machine}-${os}${release}"
  199. + exit 0 ;;
  200. + amd64:OpenBSD:*:*)
  201. + echo x86_64-unknown-openbsd${UNAME_RELEASE}
  202. + exit 0 ;;
  203. + amiga:OpenBSD:*:*)
  204. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  205. + exit 0 ;;
  206. + cats:OpenBSD:*:*)
  207. + echo arm-unknown-openbsd${UNAME_RELEASE}
  208. + exit 0 ;;
  209. + hp300:OpenBSD:*:*)
  210. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  211. + exit 0 ;;
  212. + luna88k:OpenBSD:*:*)
  213. + echo m88k-unknown-openbsd${UNAME_RELEASE}
  214. + exit 0 ;;
  215. + mac68k:OpenBSD:*:*)
  216. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  217. + exit 0 ;;
  218. + macppc:OpenBSD:*:*)
  219. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  220. + exit 0 ;;
  221. + mvme68k:OpenBSD:*:*)
  222. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  223. + exit 0 ;;
  224. + mvme88k:OpenBSD:*:*)
  225. + echo m88k-unknown-openbsd${UNAME_RELEASE}
  226. + exit 0 ;;
  227. + mvmeppc:OpenBSD:*:*)
  228. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  229. + exit 0 ;;
  230. + sgi:OpenBSD:*:*)
  231. + echo mips64-unknown-openbsd${UNAME_RELEASE}
  232. + exit 0 ;;
  233. + sun3:OpenBSD:*:*)
  234. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  235. + exit 0 ;;
  236. + *:OpenBSD:*:*)
  237. + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  238. + exit 0 ;;
  239. + *:ekkoBSD:*:*)
  240. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  241. + exit 0 ;;
  242. + macppc:MirBSD:*:*)
  243. + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  244. + exit 0 ;;
  245. + *:MirBSD:*:*)
  246. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  247. + exit 0 ;;
  248. alpha:OSF1:*:*)
  249. - if test $UNAME_RELEASE = "V4.0"; then
  250. + case $UNAME_RELEASE in
  251. + *4.0)
  252. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  253. - fi
  254. + ;;
  255. + *5.*)
  256. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  257. + ;;
  258. + esac
  259. + # According to Compaq, /usr/sbin/psrinfo has been available on
  260. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  261. + # covers most systems running today. This code pipes the CPU
  262. + # types through head -n 1, so we only detect the type of CPU 0.
  263. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  264. + case "$ALPHA_CPU_TYPE" in
  265. + "EV4 (21064)")
  266. + UNAME_MACHINE="alpha" ;;
  267. + "EV4.5 (21064)")
  268. + UNAME_MACHINE="alpha" ;;
  269. + "LCA4 (21066/21068)")
  270. + UNAME_MACHINE="alpha" ;;
  271. + "EV5 (21164)")
  272. + UNAME_MACHINE="alphaev5" ;;
  273. + "EV5.6 (21164A)")
  274. + UNAME_MACHINE="alphaev56" ;;
  275. + "EV5.6 (21164PC)")
  276. + UNAME_MACHINE="alphapca56" ;;
  277. + "EV5.7 (21164PC)")
  278. + UNAME_MACHINE="alphapca57" ;;
  279. + "EV6 (21264)")
  280. + UNAME_MACHINE="alphaev6" ;;
  281. + "EV6.7 (21264A)")
  282. + UNAME_MACHINE="alphaev67" ;;
  283. + "EV6.8CB (21264C)")
  284. + UNAME_MACHINE="alphaev68" ;;
  285. + "EV6.8AL (21264B)")
  286. + UNAME_MACHINE="alphaev68" ;;
  287. + "EV6.8CX (21264D)")
  288. + UNAME_MACHINE="alphaev68" ;;
  289. + "EV6.9A (21264/EV69A)")
  290. + UNAME_MACHINE="alphaev69" ;;
  291. + "EV7 (21364)")
  292. + UNAME_MACHINE="alphaev7" ;;
  293. + "EV7.9 (21364A)")
  294. + UNAME_MACHINE="alphaev79" ;;
  295. + esac
  296. + # A Pn.n version is a patched version.
  297. # A Vn.n version is a released version.
  298. # A Tn.n version is a released field test version.
  299. # A Xn.n version is an unreleased experimental baselevel.
  300. # 1.2 uses "1.2" for uname -r.
  301. - cat <<EOF >dummy.s
  302. - .globl main
  303. - .ent main
  304. -main:
  305. - .frame \$30,0,\$26,0
  306. - .prologue 0
  307. - .long 0x47e03d80 # implver $0
  308. - lda \$2,259
  309. - .long 0x47e20c21 # amask $2,$1
  310. - srl \$1,8,\$2
  311. - sll \$2,2,\$2
  312. - sll \$0,3,\$0
  313. - addl \$1,\$0,\$0
  314. - addl \$2,\$0,\$0
  315. - ret \$31,(\$26),1
  316. - .end main
  317. -EOF
  318. - ${CC-cc} dummy.s -o dummy 2>/dev/null
  319. - if test "$?" = 0 ; then
  320. - ./dummy
  321. - case "$?" in
  322. - 7)
  323. - UNAME_MACHINE="alpha"
  324. - ;;
  325. - 15)
  326. - UNAME_MACHINE="alphaev5"
  327. - ;;
  328. - 14)
  329. - UNAME_MACHINE="alphaev56"
  330. - ;;
  331. - 10)
  332. - UNAME_MACHINE="alphapca56"
  333. - ;;
  334. - 16)
  335. - UNAME_MACHINE="alphaev6"
  336. - ;;
  337. - esac
  338. - fi
  339. - rm -f dummy.s dummy
  340. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
  341. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  342. + exit 0 ;;
  343. + Alpha\ *:Windows_NT*:*)
  344. + # How do we know it's Interix rather than the generic POSIX subsystem?
  345. + # Should we change UNAME_MACHINE based on the output of uname instead
  346. + # of the specific Alpha model?
  347. + echo alpha-pc-interix
  348. exit 0 ;;
  349. 21064:Windows_NT:50:3)
  350. echo alpha-dec-winnt3.5
  351. exit 0 ;;
  352. Amiga*:UNIX_System_V:4.0:*)
  353. - echo m68k-cbm-sysv4
  354. + echo m68k-unknown-sysv4
  355. exit 0;;
  356. - amiga:NetBSD:*:*)
  357. - echo m68k-cbm-netbsd${UNAME_RELEASE}
  358. - exit 0 ;;
  359. - amiga:OpenBSD:*:*)
  360. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  361. - exit 0 ;;
  362. - arc64:OpenBSD:*:*)
  363. - echo mips64el-unknown-openbsd${UNAME_RELEASE}
  364. + *:[Aa]miga[Oo][Ss]:*:*)
  365. + echo ${UNAME_MACHINE}-unknown-amigaos
  366. exit 0 ;;
  367. - arc:OpenBSD:*:*)
  368. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  369. + *:[Mm]orph[Oo][Ss]:*:*)
  370. + echo ${UNAME_MACHINE}-unknown-morphos
  371. exit 0 ;;
  372. - hkmips:OpenBSD:*:*)
  373. - echo mips-unknown-openbsd${UNAME_RELEASE}
  374. + *:OS/390:*:*)
  375. + echo i370-ibm-openedition
  376. exit 0 ;;
  377. - pmax:OpenBSD:*:*)
  378. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  379. - exit 0 ;;
  380. - sgi:OpenBSD:*:*)
  381. - echo mips-unknown-openbsd${UNAME_RELEASE}
  382. + *:z/VM:*:*)
  383. + echo s390-ibm-zvmoe
  384. exit 0 ;;
  385. - wgrisc:OpenBSD:*:*)
  386. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  387. + *:OS400:*:*)
  388. + echo powerpc-ibm-os400
  389. exit 0 ;;
  390. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  391. echo arm-acorn-riscix${UNAME_RELEASE}
  392. exit 0;;
  393. - arm32:NetBSD:*:*)
  394. - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  395. - exit 0 ;;
  396. - SR2?01:HI-UX/MPP:*:*)
  397. + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  398. echo hppa1.1-hitachi-hiuxmpp
  399. exit 0;;
  400. - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
  401. + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  402. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  403. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  404. echo pyramid-pyramid-sysv3
  405. @@ -147,9 +339,19 @@
  406. echo pyramid-pyramid-bsd
  407. fi
  408. exit 0 ;;
  409. - NILE:*:*:dcosx)
  410. + NILE*:*:*:dcosx)
  411. echo pyramid-pyramid-svr4
  412. exit 0 ;;
  413. + DRS?6000:unix:4.0:6*)
  414. + echo sparc-icl-nx6
  415. + exit 0 ;;
  416. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  417. + case `/usr/bin/uname -p` in
  418. + sparc) echo sparc-icl-nx7 && exit 0 ;;
  419. + esac ;;
  420. + sun4H:SunOS:5.*:*)
  421. + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  422. + exit 0 ;;
  423. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  424. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  425. exit 0 ;;
  426. @@ -175,7 +377,7 @@
  427. echo m68k-sun-sunos${UNAME_RELEASE}
  428. exit 0 ;;
  429. sun*:*:4.2BSD:*)
  430. - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  431. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  432. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  433. case "`/bin/arch`" in
  434. sun3)
  435. @@ -189,29 +391,34 @@
  436. aushp:SunOS:*:*)
  437. echo sparc-auspex-sunos${UNAME_RELEASE}
  438. exit 0 ;;
  439. - atari*:NetBSD:*:*)
  440. - echo m68k-atari-netbsd${UNAME_RELEASE}
  441. + # The situation for MiNT is a little confusing. The machine name
  442. + # can be virtually everything (everything which is not
  443. + # "atarist" or "atariste" at least should have a processor
  444. + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  445. + # to the lowercase version "mint" (or "freemint"). Finally
  446. + # the system name "TOS" denotes a system which is actually not
  447. + # MiNT. But MiNT is downward compatible to TOS, so this should
  448. + # be no problem.
  449. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  450. + echo m68k-atari-mint${UNAME_RELEASE}
  451. exit 0 ;;
  452. - atari*:OpenBSD:*:*)
  453. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  454. - exit 0 ;;
  455. - sun3*:NetBSD:*:*)
  456. - echo m68k-sun-netbsd${UNAME_RELEASE}
  457. - exit 0 ;;
  458. - sun3*:OpenBSD:*:*)
  459. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  460. - exit 0 ;;
  461. - mac68k:NetBSD:*:*)
  462. - echo m68k-apple-netbsd${UNAME_RELEASE}
  463. - exit 0 ;;
  464. - mac68k:OpenBSD:*:*)
  465. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  466. - exit 0 ;;
  467. - mvme68k:OpenBSD:*:*)
  468. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  469. + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  470. + echo m68k-atari-mint${UNAME_RELEASE}
  471. + exit 0 ;;
  472. + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  473. + echo m68k-atari-mint${UNAME_RELEASE}
  474. exit 0 ;;
  475. - mvme88k:OpenBSD:*:*)
  476. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  477. + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  478. + echo m68k-milan-mint${UNAME_RELEASE}
  479. + exit 0 ;;
  480. + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  481. + echo m68k-hades-mint${UNAME_RELEASE}
  482. + exit 0 ;;
  483. + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  484. + echo m68k-unknown-mint${UNAME_RELEASE}
  485. + exit 0 ;;
  486. + m68k:machten:*:*)
  487. + echo m68k-apple-machten${UNAME_RELEASE}
  488. exit 0 ;;
  489. powerpc:machten:*:*)
  490. echo powerpc-apple-machten${UNAME_RELEASE}
  491. @@ -225,12 +432,18 @@
  492. VAX*:ULTRIX*:*:*)
  493. echo vax-dec-ultrix${UNAME_RELEASE}
  494. exit 0 ;;
  495. - 2020:CLIX:*:*)
  496. + 2020:CLIX:*:* | 2430:CLIX:*:*)
  497. echo clipper-intergraph-clix${UNAME_RELEASE}
  498. exit 0 ;;
  499. mips:*:*:UMIPS | mips:*:*:RISCos)
  500. - sed 's/^ //' << EOF >dummy.c
  501. - int main (argc, argv) int argc; char **argv; {
  502. + eval $set_cc_for_build
  503. + sed 's/^ //' << EOF >$dummy.c
  504. +#ifdef __cplusplus
  505. +#include <stdio.h> /* for printf() prototype */
  506. + int main (int argc, char *argv[]) {
  507. +#else
  508. + int main (argc, argv) int argc; char *argv[]; {
  509. +#endif
  510. #if defined (host_mips) && defined (MIPSEB)
  511. #if defined (SYSTYPE_SYSV)
  512. printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  513. @@ -245,12 +458,20 @@
  514. exit (-1);
  515. }
  516. EOF
  517. - ${CC-cc} dummy.c -o dummy \
  518. - && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  519. - && rm dummy.c dummy && exit 0
  520. - rm -f dummy.c dummy
  521. + $CC_FOR_BUILD -o $dummy $dummy.c \
  522. + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  523. + && exit 0
  524. echo mips-mips-riscos${UNAME_RELEASE}
  525. exit 0 ;;
  526. + Motorola:PowerMAX_OS:*:*)
  527. + echo powerpc-motorola-powermax
  528. + exit 0 ;;
  529. + Motorola:*:4.3:PL8-*)
  530. + echo powerpc-harris-powermax
  531. + exit 0 ;;
  532. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  533. + echo powerpc-harris-powermax
  534. + exit 0 ;;
  535. Night_Hawk:Power_UNIX:*:*)
  536. echo powerpc-harris-powerunix
  537. exit 0 ;;
  538. @@ -266,15 +487,18 @@
  539. AViiON:dgux:*:*)
  540. # DG/UX returns AViiON for all architectures
  541. UNAME_PROCESSOR=`/usr/bin/uname -p`
  542. - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
  543. - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
  544. - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
  545. + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  546. + then
  547. + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  548. + [ ${TARGET_BINARY_INTERFACE}x = x ]
  549. + then
  550. echo m88k-dg-dgux${UNAME_RELEASE}
  551. - else
  552. + else
  553. echo m88k-dg-dguxbcs${UNAME_RELEASE}
  554. + fi
  555. + else
  556. + echo i586-dg-dgux${UNAME_RELEASE}
  557. fi
  558. - else echo i586-dg-dgux${UNAME_RELEASE}
  559. - fi
  560. exit 0 ;;
  561. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  562. echo m88k-dolphin-sysv3
  563. @@ -295,12 +519,21 @@
  564. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  565. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  566. exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  567. - i?86:AIX:*:*)
  568. + i*86:AIX:*:*)
  569. echo i386-ibm-aix
  570. exit 0 ;;
  571. + ia64:AIX:*:*)
  572. + if [ -x /usr/bin/oslevel ] ; then
  573. + IBM_REV=`/usr/bin/oslevel`
  574. + else
  575. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  576. + fi
  577. + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  578. + exit 0 ;;
  579. *:AIX:2:3)
  580. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  581. - sed 's/^ //' << EOF >dummy.c
  582. + eval $set_cc_for_build
  583. + sed 's/^ //' << EOF >$dummy.c
  584. #include <sys/systemcfg.h>
  585. main()
  586. @@ -311,8 +544,7 @@
  587. exit(0);
  588. }
  589. EOF
  590. - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  591. - rm -f dummy.c dummy
  592. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  593. echo rs6000-ibm-aix3.2.5
  594. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  595. echo rs6000-ibm-aix3.2.4
  596. @@ -320,8 +552,9 @@
  597. echo rs6000-ibm-aix3.2
  598. fi
  599. exit 0 ;;
  600. - *:AIX:*:4)
  601. - if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
  602. + *:AIX:*:[45])
  603. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  604. + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  605. IBM_ARCH=rs6000
  606. else
  607. IBM_ARCH=powerpc
  608. @@ -329,7 +562,7 @@
  609. if [ -x /usr/bin/oslevel ] ; then
  610. IBM_REV=`/usr/bin/oslevel`
  611. else
  612. - IBM_REV=4.${UNAME_RELEASE}
  613. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  614. fi
  615. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  616. exit 0 ;;
  617. @@ -339,7 +572,7 @@
  618. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  619. echo romp-ibm-bsd4.4
  620. exit 0 ;;
  621. - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
  622. + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  623. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  624. exit 0 ;; # report: romp-ibm BSD 4.3
  625. *:BOSX:*:*)
  626. @@ -354,18 +587,85 @@
  627. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  628. echo m68k-hp-bsd4.4
  629. exit 0 ;;
  630. - 9000/[3478]??:HP-UX:*:*)
  631. + 9000/[34678]??:HP-UX:*:*)
  632. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  633. case "${UNAME_MACHINE}" in
  634. 9000/31? ) HP_ARCH=m68000 ;;
  635. 9000/[34]?? ) HP_ARCH=m68k ;;
  636. - 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
  637. - 9000/8?? ) HP_ARCH=hppa1.0 ;;
  638. + 9000/[678][0-9][0-9])
  639. + if [ -x /usr/bin/getconf ]; then
  640. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  641. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  642. + case "${sc_cpu_version}" in
  643. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  644. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  645. + 532) # CPU_PA_RISC2_0
  646. + case "${sc_kernel_bits}" in
  647. + 32) HP_ARCH="hppa2.0n" ;;
  648. + 64) HP_ARCH="hppa2.0w" ;;
  649. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  650. + esac ;;
  651. + esac
  652. + fi
  653. + if [ "${HP_ARCH}" = "" ]; then
  654. + eval $set_cc_for_build
  655. + sed 's/^ //' << EOF >$dummy.c
  656. +
  657. + #define _HPUX_SOURCE
  658. + #include <stdlib.h>
  659. + #include <unistd.h>
  660. +
  661. + int main ()
  662. + {
  663. + #if defined(_SC_KERNEL_BITS)
  664. + long bits = sysconf(_SC_KERNEL_BITS);
  665. + #endif
  666. + long cpu = sysconf (_SC_CPU_VERSION);
  667. +
  668. + switch (cpu)
  669. + {
  670. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  671. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  672. + case CPU_PA_RISC2_0:
  673. + #if defined(_SC_KERNEL_BITS)
  674. + switch (bits)
  675. + {
  676. + case 64: puts ("hppa2.0w"); break;
  677. + case 32: puts ("hppa2.0n"); break;
  678. + default: puts ("hppa2.0"); break;
  679. + } break;
  680. + #else /* !defined(_SC_KERNEL_BITS) */
  681. + puts ("hppa2.0"); break;
  682. + #endif
  683. + default: puts ("hppa1.0"); break;
  684. + }
  685. + exit (0);
  686. + }
  687. +EOF
  688. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  689. + test -z "$HP_ARCH" && HP_ARCH=hppa
  690. + fi ;;
  691. esac
  692. - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  693. + if [ ${HP_ARCH} = "hppa2.0w" ]
  694. + then
  695. + # avoid double evaluation of $set_cc_for_build
  696. + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  697. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  698. + then
  699. + HP_ARCH="hppa2.0w"
  700. + else
  701. + HP_ARCH="hppa64"
  702. + fi
  703. + fi
  704. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  705. exit 0 ;;
  706. + ia64:HP-UX:*:*)
  707. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  708. + echo ia64-hp-hpux${HPUX_REV}
  709. + exit 0 ;;
  710. 3050*:HI-UX:*:*)
  711. - sed 's/^ //' << EOF >dummy.c
  712. + eval $set_cc_for_build
  713. + sed 's/^ //' << EOF >$dummy.c
  714. #include <unistd.h>
  715. int
  716. main ()
  717. @@ -390,8 +690,7 @@
  718. exit (0);
  719. }
  720. EOF
  721. - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  722. - rm -f dummy.c dummy
  723. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  724. echo unknown-hitachi-hiuxwe2
  725. exit 0 ;;
  726. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  727. @@ -400,13 +699,16 @@
  728. 9000/8??:4.3bsd:*:*)
  729. echo hppa1.0-hp-bsd
  730. exit 0 ;;
  731. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  732. + echo hppa1.0-hp-mpeix
  733. + exit 0 ;;
  734. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  735. echo hppa1.1-hp-osf
  736. exit 0 ;;
  737. hp8??:OSF1:*:*)
  738. echo hppa1.0-hp-osf
  739. exit 0 ;;
  740. - i?86:OSF1:*:*)
  741. + i*86:OSF1:*:*)
  742. if [ -x /usr/sbin/sysversion ] ; then
  743. echo ${UNAME_MACHINE}-unknown-osf1mk
  744. else
  745. @@ -434,196 +736,259 @@
  746. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  747. echo c4-convex-bsd
  748. exit 0 ;;
  749. - CRAY*X-MP:*:*:*)
  750. - echo xmp-cray-unicos
  751. - exit 0 ;;
  752. CRAY*Y-MP:*:*:*)
  753. - echo ymp-cray-unicos${UNAME_RELEASE}
  754. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  755. exit 0 ;;
  756. CRAY*[A-Z]90:*:*:*)
  757. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  758. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  759. - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
  760. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  761. + -e 's/\.[^.]*$/.X/'
  762. exit 0 ;;
  763. CRAY*TS:*:*:*)
  764. - echo t90-cray-unicos${UNAME_RELEASE}
  765. + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  766. exit 0 ;;
  767. - CRAY-2:*:*:*)
  768. - echo cray2-cray-unicos
  769. - exit 0 ;;
  770. - F300:UNIX_System_V:*:*)
  771. - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
  772. + CRAY*T3E:*:*:*)
  773. + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  774. + exit 0 ;;
  775. + CRAY*SV1:*:*:*)
  776. + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  777. + exit 0 ;;
  778. + *:UNICOS/mp:*:*)
  779. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  780. + exit 0 ;;
  781. + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  782. + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  783. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  784. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  785. - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  786. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  787. exit 0 ;;
  788. - F301:UNIX_System_V:*:*)
  789. - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
  790. - exit 0 ;;
  791. - hp3[0-9][05]:NetBSD:*:*)
  792. - echo m68k-hp-netbsd${UNAME_RELEASE}
  793. + 5000:UNIX_System_V:4.*:*)
  794. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  795. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  796. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  797. exit 0 ;;
  798. - hp300:OpenBSD:*:*)
  799. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  800. - exit 0 ;;
  801. - i?86:BSD/386:*:* | *:BSD/OS:*:*)
  802. + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  803. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  804. exit 0 ;;
  805. - *:FreeBSD:*:*)
  806. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  807. + sparc*:BSD/OS:*:*)
  808. + echo sparc-unknown-bsdi${UNAME_RELEASE}
  809. exit 0 ;;
  810. - *:NetBSD:*:*)
  811. - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  812. + *:BSD/OS:*:*)
  813. + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  814. exit 0 ;;
  815. - *:OpenBSD:*:*)
  816. - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  817. + *:FreeBSD:*:*)
  818. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  819. exit 0 ;;
  820. i*:CYGWIN*:*)
  821. - echo i386-pc-cygwin32
  822. + echo ${UNAME_MACHINE}-pc-cygwin
  823. exit 0 ;;
  824. i*:MINGW*:*)
  825. - echo i386-pc-mingw32
  826. + echo ${UNAME_MACHINE}-pc-mingw32
  827. + exit 0 ;;
  828. + i*:PW*:*)
  829. + echo ${UNAME_MACHINE}-pc-pw32
  830. + exit 0 ;;
  831. + x86:Interix*:[34]*)
  832. + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  833. + exit 0 ;;
  834. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  835. + echo i${UNAME_MACHINE}-pc-mks
  836. + exit 0 ;;
  837. + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  838. + # How do we know it's Interix rather than the generic POSIX subsystem?
  839. + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  840. + # UNAME_MACHINE based on the output of uname instead of i386?
  841. + echo i586-pc-interix
  842. + exit 0 ;;
  843. + i*:UWIN*:*)
  844. + echo ${UNAME_MACHINE}-pc-uwin
  845. exit 0 ;;
  846. p*:CYGWIN*:*)
  847. - echo powerpcle-unknown-cygwin32
  848. + echo powerpcle-unknown-cygwin
  849. exit 0 ;;
  850. prep*:SunOS:5.*:*)
  851. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  852. exit 0 ;;
  853. *:GNU:*:*)
  854. + # the GNU system
  855. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  856. exit 0 ;;
  857. - *:Linux:*:*)
  858. + *:GNU/*:*:*)
  859. + # other systems with GNU libc and userland
  860. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  861. + exit 0 ;;
  862. + i*86:Minix:*:*)
  863. + echo ${UNAME_MACHINE}-pc-minix
  864. + exit 0 ;;
  865. + arm*:Linux:*:*)
  866. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  867. + exit 0 ;;
  868. + cris:Linux:*:*)
  869. + echo cris-axis-linux-gnu
  870. + exit 0 ;;
  871. + crisv32:Linux:*:*)
  872. + echo crisv32-axis-linux-gnu
  873. + exit 0 ;;
  874. + frv:Linux:*:*)
  875. + echo frv-unknown-linux-gnu
  876. + exit 0 ;;
  877. + ia64:Linux:*:*)
  878. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  879. + exit 0 ;;
  880. + m32r*:Linux:*:*)
  881. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  882. + exit 0 ;;
  883. + m68*:Linux:*:*)
  884. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  885. + exit 0 ;;
  886. + mips:Linux:*:*)
  887. + eval $set_cc_for_build
  888. + sed 's/^ //' << EOF >$dummy.c
  889. + #undef CPU
  890. + #undef mips
  891. + #undef mipsel
  892. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  893. + CPU=mipsel
  894. + #else
  895. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  896. + CPU=mips
  897. + #else
  898. + CPU=
  899. + #endif
  900. + #endif
  901. +EOF
  902. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  903. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  904. + ;;
  905. + mips64:Linux:*:*)
  906. + eval $set_cc_for_build
  907. + sed 's/^ //' << EOF >$dummy.c
  908. + #undef CPU
  909. + #undef mips64
  910. + #undef mips64el
  911. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  912. + CPU=mips64el
  913. + #else
  914. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  915. + CPU=mips64
  916. + #else
  917. + CPU=
  918. + #endif
  919. + #endif
  920. +EOF
  921. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  922. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  923. + ;;
  924. + ppc:Linux:*:*)
  925. + echo powerpc-unknown-linux-gnu
  926. + exit 0 ;;
  927. + ppc64:Linux:*:*)
  928. + echo powerpc64-unknown-linux-gnu
  929. + exit 0 ;;
  930. + alpha:Linux:*:*)
  931. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  932. + EV5) UNAME_MACHINE=alphaev5 ;;
  933. + EV56) UNAME_MACHINE=alphaev56 ;;
  934. + PCA56) UNAME_MACHINE=alphapca56 ;;
  935. + PCA57) UNAME_MACHINE=alphapca56 ;;
  936. + EV6) UNAME_MACHINE=alphaev6 ;;
  937. + EV67) UNAME_MACHINE=alphaev67 ;;
  938. + EV68*) UNAME_MACHINE=alphaev68 ;;
  939. + esac
  940. + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  941. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  942. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  943. + exit 0 ;;
  944. + parisc:Linux:*:* | hppa:Linux:*:*)
  945. + # Look for CPU level
  946. + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  947. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  948. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  949. + *) echo hppa-unknown-linux-gnu ;;
  950. + esac
  951. + exit 0 ;;
  952. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  953. + echo hppa64-unknown-linux-gnu
  954. + exit 0 ;;
  955. + s390:Linux:*:* | s390x:Linux:*:*)
  956. + echo ${UNAME_MACHINE}-ibm-linux
  957. + exit 0 ;;
  958. + sh64*:Linux:*:*)
  959. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  960. + exit 0 ;;
  961. + sh*:Linux:*:*)
  962. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  963. + exit 0 ;;
  964. + sparc:Linux:*:* | sparc64:Linux:*:*)
  965. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  966. + exit 0 ;;
  967. + x86_64:Linux:*:*)
  968. + echo x86_64-unknown-linux-gnu
  969. + exit 0 ;;
  970. + i*86:Linux:*:*)
  971. # The BFD linker knows what the default object file format is, so
  972. - # first see if it will tell us.
  973. - ld_help_string=`ld --help 2>&1`
  974. - ld_supported_emulations=`echo $ld_help_string \
  975. - | sed -ne '/supported emulations:/!d
  976. + # first see if it will tell us. cd to the root directory to prevent
  977. + # problems with other programs or directories called `ld' in the path.
  978. + # Set LC_ALL=C to ensure ld outputs messages in English.
  979. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  980. + | sed -ne '/supported targets:/!d
  981. s/[ ][ ]*/ /g
  982. - s/.*supported emulations: *//
  983. + s/.*supported targets: *//
  984. s/ .*//
  985. p'`
  986. - case "$ld_supported_emulations" in
  987. - i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
  988. - i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
  989. - sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
  990. - m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
  991. - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
  992. - esac
  993. -
  994. - if test "${UNAME_MACHINE}" = "alpha" ; then
  995. - sed 's/^ //' <<EOF >dummy.s
  996. - .globl main
  997. - .ent main
  998. - main:
  999. - .frame \$30,0,\$26,0
  1000. - .prologue 0
  1001. - .long 0x47e03d80 # implver $0
  1002. - lda \$2,259
  1003. - .long 0x47e20c21 # amask $2,$1
  1004. - srl \$1,8,\$2
  1005. - sll \$2,2,\$2
  1006. - sll \$0,3,\$0
  1007. - addl \$1,\$0,\$0
  1008. - addl \$2,\$0,\$0
  1009. - ret \$31,(\$26),1
  1010. - .end main
  1011. -EOF
  1012. - LIBC=""
  1013. - ${CC-cc} dummy.s -o dummy 2>/dev/null
  1014. - if test "$?" = 0 ; then
  1015. - ./dummy
  1016. - case "$?" in
  1017. - 7)
  1018. - UNAME_MACHINE="alpha"
  1019. - ;;
  1020. - 15)
  1021. - UNAME_MACHINE="alphaev5"
  1022. - ;;
  1023. - 14)
  1024. - UNAME_MACHINE="alphaev56"
  1025. - ;;
  1026. - 10)
  1027. - UNAME_MACHINE="alphapca56"
  1028. - ;;
  1029. - 16)
  1030. - UNAME_MACHINE="alphaev6"
  1031. - ;;
  1032. - esac
  1033. -
  1034. - objdump --private-headers dummy | \
  1035. - grep ld.so.1 > /dev/null
  1036. - if test "$?" = 0 ; then
  1037. - LIBC="libc1"
  1038. - fi
  1039. - fi
  1040. - rm -f dummy.s dummy
  1041. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
  1042. - elif test "${UNAME_MACHINE}" = "mips" ; then
  1043. - cat >dummy.c <<EOF
  1044. -main(argc, argv)
  1045. - int argc;
  1046. - char *argv[];
  1047. -{
  1048. -#ifdef __MIPSEB__
  1049. - printf ("%s-unknown-linux-gnu\n", argv[1]);
  1050. -#endif
  1051. -#ifdef __MIPSEL__
  1052. - printf ("%sel-unknown-linux-gnu\n", argv[1]);
  1053. -#endif
  1054. - return 0;
  1055. -}
  1056. -EOF
  1057. - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
  1058. - rm -f dummy.c dummy
  1059. - else
  1060. - # Either a pre-BFD a.out linker (linux-gnuoldld)
  1061. - # or one that does not give us useful --help.
  1062. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
  1063. - # If ld does not provide *any* "supported emulations:"
  1064. - # that means it is gnuoldld.
  1065. - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
  1066. - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
  1067. -
  1068. - case "${UNAME_MACHINE}" in
  1069. - i?86)
  1070. - VENDOR=pc;
  1071. - ;;
  1072. - *)
  1073. - VENDOR=unknown;
  1074. - ;;
  1075. - esac
  1076. - # Determine whether the default compiler is a.out or elf
  1077. - cat >dummy.c <<EOF
  1078. -#include <features.h>
  1079. -main(argc, argv)
  1080. - int argc;
  1081. - char *argv[];
  1082. -{
  1083. -#ifdef __ELF__
  1084. -# ifdef __GLIBC__
  1085. -# if __GLIBC__ >= 2
  1086. - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
  1087. -# else
  1088. - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  1089. -# endif
  1090. -# else
  1091. - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  1092. -# endif
  1093. -#else
  1094. - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
  1095. -#endif
  1096. - return 0;
  1097. -}
  1098. + case "$ld_supported_targets" in
  1099. + elf32-i386)
  1100. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  1101. + ;;
  1102. + a.out-i386-linux)
  1103. + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  1104. + exit 0 ;;
  1105. + coff-i386)
  1106. + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  1107. + exit 0 ;;
  1108. + "")
  1109. + # Either a pre-BFD a.out linker (linux-gnuoldld) or
  1110. + # one that does not give us useful --help.
  1111. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  1112. + exit 0 ;;
  1113. + esac
  1114. + # Determine whether the default compiler is a.out or elf
  1115. + eval $set_cc_for_build
  1116. + sed 's/^ //' << EOF >$dummy.c
  1117. + #include <features.h>
  1118. + #ifdef __ELF__
  1119. + # ifdef __GLIBC__
  1120. + # if __GLIBC__ >= 2
  1121. + LIBC=gnu
  1122. + # else
  1123. + LIBC=gnulibc1
  1124. + # endif
  1125. + # else
  1126. + LIBC=gnulibc1
  1127. + # endif
  1128. + #else
  1129. + #ifdef __INTEL_COMPILER
  1130. + LIBC=gnu
  1131. + #else
  1132. + LIBC=gnuaout
  1133. + #endif
  1134. + #endif
  1135. + #ifdef __dietlibc__
  1136. + LIBC=dietlibc
  1137. + #endif
  1138. EOF
  1139. - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
  1140. - rm -f dummy.c dummy
  1141. - fi ;;
  1142. -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
  1143. -# are messed up and put the nodename in both sysname and nodename.
  1144. - i?86:DYNIX/ptx:4*:*)
  1145. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  1146. + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  1147. + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  1148. + ;;
  1149. + i*86:DYNIX/ptx:4*:*)
  1150. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  1151. + # earlier versions are messed up and put the nodename in both
  1152. + # sysname and nodename.
  1153. echo i386-sequent-sysv4
  1154. exit 0 ;;
  1155. - i?86:UNIX_SV:4.2MP:2.*)
  1156. + i*86:UNIX_SV:4.2MP:2.*)
  1157. # Unixware is an offshoot of SVR4, but it has its own version
  1158. # number series starting with 2...
  1159. # I am not positive that other SVR4 systems won't match this,
  1160. @@ -631,28 +996,62 @@
  1161. # Use sysv4.2uw... so that sysv4* matches it.
  1162. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  1163. exit 0 ;;
  1164. - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
  1165. + i*86:OS/2:*:*)
  1166. + # If we were able to find `uname', then EMX Unix compatibility
  1167. + # is probably installed.
  1168. + echo ${UNAME_MACHINE}-pc-os2-emx
  1169. + exit 0 ;;
  1170. + i*86:XTS-300:*:STOP)
  1171. + echo ${UNAME_MACHINE}-unknown-stop
  1172. + exit 0 ;;
  1173. + i*86:atheos:*:*)
  1174. + echo ${UNAME_MACHINE}-unknown-atheos
  1175. + exit 0 ;;
  1176. + i*86:syllable:*:*)
  1177. + echo ${UNAME_MACHINE}-pc-syllable
  1178. + exit 0 ;;
  1179. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  1180. + echo i386-unknown-lynxos${UNAME_RELEASE}
  1181. + exit 0 ;;
  1182. + i*86:*DOS:*:*)
  1183. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  1184. + exit 0 ;;
  1185. + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  1186. + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  1187. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  1188. - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
  1189. + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  1190. else
  1191. - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
  1192. + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  1193. fi
  1194. exit 0 ;;
  1195. - i?86:*:3.2:*)
  1196. + i*86:*:5:[78]*)
  1197. + case `/bin/uname -X | grep "^Machine"` in
  1198. + *486*) UNAME_MACHINE=i486 ;;
  1199. + *Pentium) UNAME_MACHINE=i586 ;;
  1200. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  1201. + esac
  1202. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  1203. + exit 0 ;;
  1204. + i*86:*:3.2:*)
  1205. if test -f /usr/options/cb.name; then
  1206. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  1207. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  1208. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  1209. - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
  1210. - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
  1211. - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
  1212. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  1213. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  1214. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  1215. && UNAME_MACHINE=i586
  1216. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  1217. + && UNAME_MACHINE=i686
  1218. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  1219. + && UNAME_MACHINE=i686
  1220. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  1221. else
  1222. echo ${UNAME_MACHINE}-pc-sysv32
  1223. fi
  1224. exit 0 ;;
  1225. pc:*:*:*)
  1226. + # Left here for compatibility:
  1227. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1228. # the processor, so we play safe by assuming i386.
  1229. echo i386-pc-msdosdjgpp
  1230. @@ -674,9 +1073,15 @@
  1231. # "miniframe"
  1232. echo m68010-convergent-sysv
  1233. exit 0 ;;
  1234. - M68*:*:R3V[567]*:*)
  1235. + mc68k:UNIX:SYSTEM5:3.51m)
  1236. + echo m68k-convergent-sysv
  1237. + exit 0 ;;
  1238. + M680?0:D-NIX:5.3:*)
  1239. + echo m68k-diab-dnix
  1240. + exit 0 ;;
  1241. + M68*:*:R3V[5678]*:*)
  1242. test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  1243. - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
  1244. + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  1245. OS_REL=''
  1246. test -r /etc/.relid \
  1247. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1248. @@ -687,24 +1092,27 @@
  1249. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1250. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1251. && echo i486-ncr-sysv4 && exit 0 ;;
  1252. - m68*:LynxOS:2.*:*)
  1253. + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  1254. echo m68k-unknown-lynxos${UNAME_RELEASE}
  1255. exit 0 ;;
  1256. mc68030:UNIX_System_V:4.*:*)
  1257. echo m68k-atari-sysv4
  1258. exit 0 ;;
  1259. - i?86:LynxOS:2.*:*)
  1260. - echo i386-unknown-lynxos${UNAME_RELEASE}
  1261. - exit 0 ;;
  1262. TSUNAMI:LynxOS:2.*:*)
  1263. echo sparc-unknown-lynxos${UNAME_RELEASE}
  1264. exit 0 ;;
  1265. - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
  1266. + rs6000:LynxOS:2.*:*)
  1267. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1268. exit 0 ;;
  1269. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1270. + echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1271. + exit 0 ;;
  1272. SM[BE]S:UNIX_SV:*:*)
  1273. echo mips-dde-sysv${UNAME_RELEASE}
  1274. exit 0 ;;
  1275. + RM*:ReliantUNIX-*:*:*)
  1276. + echo mips-sni-sysv4
  1277. + exit 0 ;;
  1278. RM*:SINIX-*:*:*)
  1279. echo mips-sni-sysv4
  1280. exit 0 ;;
  1281. @@ -716,8 +1124,8 @@
  1282. echo ns32k-sni-sysv
  1283. fi
  1284. exit 0 ;;
  1285. - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1286. - # says <Richard.M.Bartel@ccMail.Census.GOV>
  1287. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1288. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  1289. echo i586-unisys-sysv4
  1290. exit 0 ;;
  1291. *:UNIX_System_V:4*:FTX*)
  1292. @@ -729,25 +1137,130 @@
  1293. # From seanf@swdc.stratus.com.
  1294. echo i860-stratus-sysv4
  1295. exit 0 ;;
  1296. + *:VOS:*:*)
  1297. + # From Paul.Green@stratus.com.
  1298. + echo hppa1.1-stratus-vos
  1299. + exit 0 ;;
  1300. mc68*:A/UX:*:*)
  1301. echo m68k-apple-aux${UNAME_RELEASE}
  1302. exit 0 ;;
  1303. - news*:NEWS-OS:*:6*)
  1304. + news*:NEWS-OS:6*:*)
  1305. echo mips-sony-newsos6
  1306. exit 0 ;;
  1307. - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
  1308. + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1309. if [ -d /usr/nec ]; then
  1310. echo mips-nec-sysv${UNAME_RELEASE}
  1311. else
  1312. echo mips-unknown-sysv${UNAME_RELEASE}
  1313. fi
  1314. exit 0 ;;
  1315. + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  1316. + echo powerpc-be-beos
  1317. + exit 0 ;;
  1318. + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  1319. + echo powerpc-apple-beos
  1320. + exit 0 ;;
  1321. + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  1322. + echo i586-pc-beos
  1323. + exit 0 ;;
  1324. + SX-4:SUPER-UX:*:*)
  1325. + echo sx4-nec-superux${UNAME_RELEASE}
  1326. + exit 0 ;;
  1327. + SX-5:SUPER-UX:*:*)
  1328. + echo sx5-nec-superux${UNAME_RELEASE}
  1329. + exit 0 ;;
  1330. + SX-6:SUPER-UX:*:*)
  1331. + echo sx6-nec-superux${UNAME_RELEASE}
  1332. + exit 0 ;;
  1333. + Power*:Rhapsody:*:*)
  1334. + echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1335. + exit 0 ;;
  1336. + *:Rhapsody:*:*)
  1337. + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1338. + exit 0 ;;
  1339. + *:Darwin:*:*)
  1340. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1341. + case $UNAME_PROCESSOR in
  1342. + *86) UNAME_PROCESSOR=i686 ;;
  1343. + unknown) UNAME_PROCESSOR=powerpc ;;
  1344. + esac
  1345. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1346. + exit 0 ;;
  1347. + *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1348. + UNAME_PROCESSOR=`uname -p`
  1349. + if test "$UNAME_PROCESSOR" = "x86"; then
  1350. + UNAME_PROCESSOR=i386
  1351. + UNAME_MACHINE=pc
  1352. + fi
  1353. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1354. + exit 0 ;;
  1355. + *:QNX:*:4*)
  1356. + echo i386-pc-qnx
  1357. + exit 0 ;;
  1358. + NSR-?:NONSTOP_KERNEL:*:*)
  1359. + echo nsr-tandem-nsk${UNAME_RELEASE}
  1360. + exit 0 ;;
  1361. + *:NonStop-UX:*:*)
  1362. + echo mips-compaq-nonstopux
  1363. + exit 0 ;;
  1364. + BS2000:POSIX*:*:*)
  1365. + echo bs2000-siemens-sysv
  1366. + exit 0 ;;
  1367. + DS/*:UNIX_System_V:*:*)
  1368. + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1369. + exit 0 ;;
  1370. + *:Plan9:*:*)
  1371. + # "uname -m" is not consistent, so use $cputype instead. 386
  1372. + # is converted to i386 for consistency with other x86
  1373. + # operating systems.
  1374. + if test "$cputype" = "386"; then
  1375. + UNAME_MACHINE=i386
  1376. + else
  1377. + UNAME_MACHINE="$cputype"
  1378. + fi
  1379. + echo ${UNAME_MACHINE}-unknown-plan9
  1380. + exit 0 ;;
  1381. + *:TOPS-10:*:*)
  1382. + echo pdp10-unknown-tops10
  1383. + exit 0 ;;
  1384. + *:TENEX:*:*)
  1385. + echo pdp10-unknown-tenex
  1386. + exit 0 ;;
  1387. + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1388. + echo pdp10-dec-tops20
  1389. + exit 0 ;;
  1390. + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1391. + echo pdp10-xkl-tops20
  1392. + exit 0 ;;
  1393. + *:TOPS-20:*:*)
  1394. + echo pdp10-unknown-tops20
  1395. + exit 0 ;;
  1396. + *:ITS:*:*)
  1397. + echo pdp10-unknown-its
  1398. + exit 0 ;;
  1399. + SEI:*:*:SEIUX)
  1400. + echo mips-sei-seiux${UNAME_RELEASE}
  1401. + exit 0 ;;
  1402. + *:DragonFly:*:*)
  1403. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1404. + exit 0 ;;
  1405. + *:*VMS:*:*)
  1406. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1407. + case "${UNAME_MACHINE}" in
  1408. + A*) echo alpha-dec-vms && exit 0 ;;
  1409. + I*) echo ia64-dec-vms && exit 0 ;;
  1410. + V*) echo vax-dec-vms && exit 0 ;;
  1411. + esac ;;
  1412. + *:XENIX:*:SysV)
  1413. + echo i386-pc-xenix
  1414. + exit 0 ;;
  1415. esac
  1416. #echo '(No uname command or uname output not recognized.)' 1>&2
  1417. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1418. -cat >dummy.c <<EOF
  1419. +eval $set_cc_for_build
  1420. +cat >$dummy.c <<EOF
  1421. #ifdef _SEQUENT_
  1422. # include <sys/types.h>
  1423. # include <sys/utsname.h>
  1424. @@ -785,7 +1298,10 @@
  1425. #endif
  1426. int version;
  1427. version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1428. - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1429. + if (version < 4)
  1430. + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1431. + else
  1432. + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1433. exit (0);
  1434. #endif
  1435. @@ -830,11 +1346,24 @@
  1436. #endif
  1437. #if defined (vax)
  1438. -#if !defined (ultrix)
  1439. - printf ("vax-dec-bsd\n"); exit (0);
  1440. -#else
  1441. - printf ("vax-dec-ultrix\n"); exit (0);
  1442. -#endif
  1443. +# if !defined (ultrix)
  1444. +# include <sys/param.h>
  1445. +# if defined (BSD)
  1446. +# if BSD == 43
  1447. + printf ("vax-dec-bsd4.3\n"); exit (0);
  1448. +# else
  1449. +# if BSD == 199006
  1450. + printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1451. +# else
  1452. + printf ("vax-dec-bsd\n"); exit (0);
  1453. +# endif
  1454. +# endif
  1455. +# else
  1456. + printf ("vax-dec-bsd\n"); exit (0);
  1457. +# endif
  1458. +# else
  1459. + printf ("vax-dec-ultrix\n"); exit (0);
  1460. +# endif
  1461. #endif
  1462. #if defined (alliant) && defined (i860)
  1463. @@ -845,8 +1374,7 @@
  1464. }
  1465. EOF
  1466. -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
  1467. -rm -f dummy.c dummy
  1468. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  1469. # Apollos put the system type in the environment.
  1470. @@ -878,6 +1406,48 @@
  1471. esac
  1472. fi
  1473. -#echo '(Unable to guess system type)' 1>&2
  1474. +cat >&2 <<EOF
  1475. +$0: unable to guess system type
  1476. +
  1477. +This script, last modified $timestamp, has failed to recognize
  1478. +the operating system you are using. It is advised that you
  1479. +download the most up to date version of the config scripts from
  1480. +
  1481. + ftp://ftp.gnu.org/pub/gnu/config/
  1482. +
  1483. +If the version you run ($0) is already up to date, please
  1484. +send the following data and any information you think might be
  1485. +pertinent to <config-patches@gnu.org> in order to provide the needed
  1486. +information to handle your system.
  1487. +
  1488. +config.guess timestamp = $timestamp
  1489. +
  1490. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1491. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1492. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1493. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1494. +
  1495. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  1496. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  1497. +
  1498. +hostinfo = `(hostinfo) 2>/dev/null`
  1499. +/bin/universe = `(/bin/universe) 2>/dev/null`
  1500. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  1501. +/bin/arch = `(/bin/arch) 2>/dev/null`
  1502. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  1503. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  1504. +
  1505. +UNAME_MACHINE = ${UNAME_MACHINE}
  1506. +UNAME_RELEASE = ${UNAME_RELEASE}
  1507. +UNAME_SYSTEM = ${UNAME_SYSTEM}
  1508. +UNAME_VERSION = ${UNAME_VERSION}
  1509. +EOF
  1510. exit 1
  1511. +
  1512. +# Local variables:
  1513. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  1514. +# time-stamp-start: "timestamp='"
  1515. +# time-stamp-format: "%:y-%02m-%02d"
  1516. +# time-stamp-end: "'"
  1517. +# End:
  1518. diff -urN jpeg.old/config.sub jpeg.dev/config.sub
  1519. --- jpeg.old/config.sub 1998-03-25 16:25:39.000000000 +0100
  1520. +++ jpeg.dev/config.sub 2006-04-21 16:16:34.000000000 +0200
  1521. @@ -1,6 +1,10 @@
  1522. #! /bin/sh
  1523. -# Configuration validation subroutine script, version 1.1.
  1524. -# Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
  1525. +# Configuration validation subroutine script.
  1526. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  1527. +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  1528. +
  1529. +timestamp='2004-11-30'
  1530. +
  1531. # This file is (in principle) common to ALL GNU software.
  1532. # The presence of a machine in this file suggests that SOME GNU software
  1533. # can handle that machine. It does not imply ALL GNU software can.
  1534. @@ -25,6 +29,9 @@
  1535. # configuration script generated by Autoconf, you may include it under
  1536. # the same distribution terms that you use for the rest of that program.
  1537. +# Please send patches to <config-patches@gnu.org>. Submit a context
  1538. +# diff and a properly formatted ChangeLog entry.
  1539. +#
  1540. # Configuration subroutine to validate and canonicalize a configuration type.
  1541. # Supply the specified configuration type as an argument.
  1542. # If it is invalid, we print an error message on stderr and exit with code 1.
  1543. @@ -45,30 +52,74 @@
  1544. # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  1545. # It is wrong to echo any other type of specification.
  1546. -if [ x$1 = x ]
  1547. -then
  1548. - echo Configuration name missing. 1>&2
  1549. - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
  1550. - echo "or $0 ALIAS" 1>&2
  1551. - echo where ALIAS is a recognized configuration type. 1>&2
  1552. - exit 1
  1553. -fi
  1554. +me=`echo "$0" | sed -e 's,.*/,,'`
  1555. -# First pass through any local machine types.
  1556. -case $1 in
  1557. - *local*)
  1558. - echo $1
  1559. - exit 0
  1560. - ;;
  1561. - *)
  1562. - ;;
  1563. +usage="\
  1564. +Usage: $0 [OPTION] CPU-MFR-OPSYS
  1565. + $0 [OPTION] ALIAS
  1566. +
  1567. +Canonicalize a configuration name.
  1568. +
  1569. +Operation modes:
  1570. + -h, --help print this help, then exit
  1571. + -t, --time-stamp print date of last modification, then exit
  1572. + -v, --version print version number, then exit
  1573. +
  1574. +Report bugs and patches to <config-patches@gnu.org>."
  1575. +
  1576. +version="\
  1577. +GNU config.sub ($timestamp)
  1578. +
  1579. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  1580. +Free Software Foundation, Inc.
  1581. +
  1582. +This is free software; see the source for copying conditions. There is NO
  1583. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  1584. +
  1585. +help="
  1586. +Try \`$me --help' for more information."
  1587. +
  1588. +# Parse command line
  1589. +while test $# -gt 0 ; do
  1590. + case $1 in
  1591. + --time-stamp | --time* | -t )
  1592. + echo "$timestamp" ; exit 0 ;;
  1593. + --version | -v )
  1594. + echo "$version" ; exit 0 ;;
  1595. + --help | --h* | -h )
  1596. + echo "$usage"; exit 0 ;;
  1597. + -- ) # Stop option processing
  1598. + shift; break ;;
  1599. + - ) # Use stdin as input.
  1600. + break ;;
  1601. + -* )
  1602. + echo "$me: invalid option $1$help"
  1603. + exit 1 ;;
  1604. +
  1605. + *local*)
  1606. + # First pass through any local machine types.
  1607. + echo $1
  1608. + exit 0;;
  1609. +
  1610. + * )
  1611. + break ;;
  1612. + esac
  1613. +done
  1614. +
  1615. +case $# in
  1616. + 0) echo "$me: missing argument$help" >&2
  1617. + exit 1;;
  1618. + 1) ;;
  1619. + *) echo "$me: too many arguments$help" >&2
  1620. + exit 1;;
  1621. esac
  1622. # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  1623. # Here we must recognize all the valid KERNEL-OS combinations.
  1624. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  1625. case $maybe_os in
  1626. - linux-gnu*)
  1627. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  1628. + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  1629. os=-$maybe_os
  1630. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  1631. ;;
  1632. @@ -94,15 +145,33 @@
  1633. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  1634. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  1635. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  1636. - -apple)
  1637. + -apple | -axis | -knuth | -cray)
  1638. os=
  1639. basic_machine=$1
  1640. ;;
  1641. + -sim | -cisco | -oki | -wec | -winbond)
  1642. + os=
  1643. + basic_machine=$1
  1644. + ;;
  1645. + -scout)
  1646. + ;;
  1647. + -wrs)
  1648. + os=-vxworks
  1649. + basic_machine=$1
  1650. + ;;
  1651. + -chorusos*)
  1652. + os=-chorusos
  1653. + basic_machine=$1
  1654. + ;;
  1655. + -chorusrdb)
  1656. + os=-chorusrdb
  1657. + basic_machine=$1
  1658. + ;;
  1659. -hiux*)
  1660. os=-hiuxwe2
  1661. ;;
  1662. -sco5)
  1663. - os=sco3.2v5
  1664. + os=-sco3.2v5
  1665. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  1666. ;;
  1667. -sco4)
  1668. @@ -121,6 +190,9 @@
  1669. os=-sco3.2v2
  1670. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  1671. ;;
  1672. + -udk*)
  1673. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  1674. + ;;
  1675. -isc)
  1676. os=-isc2.2
  1677. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  1678. @@ -143,26 +215,74 @@
  1679. -psos*)
  1680. os=-psos
  1681. ;;
  1682. + -mint | -mint[0-9]*)
  1683. + basic_machine=m68k-atari
  1684. + os=-mint
  1685. + ;;
  1686. esac
  1687. # Decode aliases for certain CPU-COMPANY combinations.
  1688. case $basic_machine in
  1689. # Recognize the basic CPU types without company name.
  1690. # Some are omitted here because they have special meanings below.
  1691. - tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
  1692. - | arme[lb] | pyramid | mn10200 | mn10300 \
  1693. - | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
  1694. - | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
  1695. - | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
  1696. - | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
  1697. - | mipstx39 | mipstx39el \
  1698. - | sparc | sparclet | sparclite | sparc64 | v850)
  1699. + 1750a | 580 \
  1700. + | a29k \
  1701. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  1702. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  1703. + | am33_2.0 \
  1704. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  1705. + | c4x | clipper \
  1706. + | d10v | d30v | dlx | dsp16xx \
  1707. + | fr30 | frv \
  1708. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  1709. + | i370 | i860 | i960 | ia64 \
  1710. + | ip2k | iq2000 \
  1711. + | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
  1712. + | mips | mipsbe | mipseb | mipsel | mipsle \
  1713. + | mips16 \
  1714. + | mips64 | mips64el \
  1715. + | mips64vr | mips64vrel \
  1716. + | mips64orion | mips64orionel \
  1717. + | mips64vr4100 | mips64vr4100el \
  1718. + | mips64vr4300 | mips64vr4300el \
  1719. + | mips64vr5000 | mips64vr5000el \
  1720. + | mipsisa32 | mipsisa32el \
  1721. + | mipsisa32r2 | mipsisa32r2el \
  1722. + | mipsisa64 | mipsisa64el \
  1723. + | mipsisa64r2 | mipsisa64r2el \
  1724. + | mipsisa64sb1 | mipsisa64sb1el \
  1725. + | mipsisa64sr71k | mipsisa64sr71kel \
  1726. + | mipstx39 | mipstx39el \
  1727. + | mn10200 | mn10300 \
  1728. + | msp430 \
  1729. + | ns16k | ns32k \
  1730. + | openrisc | or32 \
  1731. + | pdp10 | pdp11 | pj | pjl \
  1732. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  1733. + | pyramid \
  1734. + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  1735. + | sh64 | sh64le \
  1736. + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
  1737. + | strongarm \
  1738. + | tahoe | thumb | tic4x | tic80 | tron \
  1739. + | v850 | v850e \
  1740. + | we32k \
  1741. + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
  1742. + | z8k)
  1743. basic_machine=$basic_machine-unknown
  1744. ;;
  1745. + m6811 | m68hc11 | m6812 | m68hc12)
  1746. + # Motorola 68HC11/12.
  1747. + basic_machine=$basic_machine-unknown
  1748. + os=-none
  1749. + ;;
  1750. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  1751. + ;;
  1752. +
  1753. # We use `pc' rather than `unknown'
  1754. # because (1) that's what they normally are, and
  1755. # (2) the word "unknown" tends to confuse beginning users.
  1756. - i[3456]86)
  1757. + i*86 | x86_64)
  1758. basic_machine=$basic_machine-pc
  1759. ;;
  1760. # Object if more than one company name word.
  1761. @@ -171,27 +291,86 @@
  1762. exit 1
  1763. ;;
  1764. # Recognize the basic CPU types with company name.
  1765. - vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
  1766. - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
  1767. - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
  1768. - | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
  1769. - | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
  1770. - | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
  1771. - | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
  1772. - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
  1773. - | sparc64-* | mips64-* | mipsel-* \
  1774. - | mips64el-* | mips64orion-* | mips64orionel-* \
  1775. - | mipstx39-* | mipstx39el-* \
  1776. - | f301-*)
  1777. + 580-* \
  1778. + | a29k-* \
  1779. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  1780. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  1781. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  1782. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  1783. + | avr-* \
  1784. + | bs2000-* \
  1785. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  1786. + | clipper-* | craynv-* | cydra-* \
  1787. + | d10v-* | d30v-* | dlx-* \
  1788. + | elxsi-* \
  1789. + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  1790. + | h8300-* | h8500-* \
  1791. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  1792. + | i*86-* | i860-* | i960-* | ia64-* \
  1793. + | ip2k-* | iq2000-* \
  1794. + | m32r-* | m32rle-* \
  1795. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  1796. + | m88110-* | m88k-* | maxq-* | mcore-* \
  1797. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  1798. + | mips16-* \
  1799. + | mips64-* | mips64el-* \
  1800. + | mips64vr-* | mips64vrel-* \
  1801. + | mips64orion-* | mips64orionel-* \
  1802. + | mips64vr4100-* | mips64vr4100el-* \
  1803. + | mips64vr4300-* | mips64vr4300el-* \
  1804. + | mips64vr5000-* | mips64vr5000el-* \
  1805. + | mipsisa32-* | mipsisa32el-* \
  1806. + | mipsisa32r2-* | mipsisa32r2el-* \
  1807. + | mipsisa64-* | mipsisa64el-* \
  1808. + | mipsisa64r2-* | mipsisa64r2el-* \
  1809. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  1810. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  1811. + | mipstx39-* | mipstx39el-* \
  1812. + | mmix-* \
  1813. + | msp430-* \
  1814. + | none-* | np1-* | ns16k-* | ns32k-* \
  1815. + | orion-* \
  1816. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  1817. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  1818. + | pyramid-* \
  1819. + | romp-* | rs6000-* \
  1820. + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  1821. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  1822. + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  1823. + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  1824. + | tahoe-* | thumb-* \
  1825. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  1826. + | tron-* \
  1827. + | v850-* | v850e-* | vax-* \
  1828. + | we32k-* \
  1829. + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
  1830. + | xstormy16-* | xtensa-* \
  1831. + | ymp-* \
  1832. + | z8k-*)
  1833. ;;
  1834. # Recognize the various machine names and aliases which stand
  1835. # for a CPU type and a company and sometimes even an OS.
  1836. + 386bsd)
  1837. + basic_machine=i386-unknown
  1838. + os=-bsd
  1839. + ;;
  1840. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  1841. basic_machine=m68000-att
  1842. ;;
  1843. 3b*)
  1844. basic_machine=we32k-att
  1845. ;;
  1846. + a29khif)
  1847. + basic_machine=a29k-amd
  1848. + os=-udi
  1849. + ;;
  1850. + abacus)
  1851. + basic_machine=abacus-unknown
  1852. + ;;
  1853. + adobe68k)
  1854. + basic_machine=m68010-adobe
  1855. + os=-scout
  1856. + ;;
  1857. alliant | fx80)
  1858. basic_machine=fx80-alliant
  1859. ;;
  1860. @@ -202,25 +381,35 @@
  1861. basic_machine=a29k-none
  1862. os=-bsd
  1863. ;;
  1864. + amd64)
  1865. + basic_machine=x86_64-pc
  1866. + ;;
  1867. + amd64-*)
  1868. + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  1869. + ;;
  1870. amdahl)
  1871. basic_machine=580-amdahl
  1872. os=-sysv
  1873. ;;
  1874. amiga | amiga-*)
  1875. - basic_machine=m68k-cbm
  1876. + basic_machine=m68k-unknown
  1877. ;;
  1878. amigaos | amigados)
  1879. - basic_machine=m68k-cbm
  1880. + basic_machine=m68k-unknown
  1881. os=-amigaos
  1882. ;;
  1883. amigaunix | amix)
  1884. - basic_machine=m68k-cbm
  1885. + basic_machine=m68k-unknown
  1886. os=-sysv4
  1887. ;;
  1888. apollo68)
  1889. basic_machine=m68k-apollo
  1890. os=-sysv
  1891. ;;
  1892. + apollo68bsd)
  1893. + basic_machine=m68k-apollo
  1894. + os=-bsd
  1895. + ;;
  1896. aux)
  1897. basic_machine=m68k-apple
  1898. os=-aux
  1899. @@ -229,6 +418,10 @@
  1900. basic_machine=ns32k-sequent
  1901. os=-dynix
  1902. ;;
  1903. + c90)
  1904. + basic_machine=c90-cray
  1905. + os=-unicos
  1906. + ;;
  1907. convex-c1)
  1908. basic_machine=c1-convex
  1909. os=-bsd
  1910. @@ -249,27 +442,45 @@
  1911. basic_machine=c38-convex
  1912. os=-bsd
  1913. ;;
  1914. - cray | ymp)
  1915. - basic_machine=ymp-cray
  1916. - os=-unicos
  1917. - ;;
  1918. - cray2)
  1919. - basic_machine=cray2-cray
  1920. + cray | j90)
  1921. + basic_machine=j90-cray
  1922. os=-unicos
  1923. ;;
  1924. - [ctj]90-cray)
  1925. - basic_machine=c90-cray
  1926. - os=-unicos
  1927. + craynv)
  1928. + basic_machine=craynv-cray
  1929. + os=-unicosmp
  1930. + ;;
  1931. + cr16c)
  1932. + basic_machine=cr16c-unknown
  1933. + os=-elf
  1934. ;;
  1935. crds | unos)
  1936. basic_machine=m68k-crds
  1937. ;;
  1938. + crisv32 | crisv32-* | etraxfs*)
  1939. + basic_machine=crisv32-axis
  1940. + ;;
  1941. + cris | cris-* | etrax*)
  1942. + basic_machine=cris-axis
  1943. + ;;
  1944. + crx)
  1945. + basic_machine=crx-unknown
  1946. + os=-elf
  1947. + ;;
  1948. da30 | da30-*)
  1949. basic_machine=m68k-da30
  1950. ;;
  1951. decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  1952. basic_machine=mips-dec
  1953. ;;
  1954. + decsystem10* | dec10*)
  1955. + basic_machine=pdp10-dec
  1956. + os=-tops10
  1957. + ;;
  1958. + decsystem20* | dec20*)
  1959. + basic_machine=pdp10-dec
  1960. + os=-tops20
  1961. + ;;
  1962. delta | 3300 | motorola-3300 | motorola-delta \
  1963. | 3300-motorola | delta-motorola)
  1964. basic_machine=m68k-motorola
  1965. @@ -278,6 +489,10 @@
  1966. basic_machine=m88k-motorola
  1967. os=-sysv3
  1968. ;;
  1969. + djgpp)
  1970. + basic_machine=i586-pc
  1971. + os=-msdosdjgpp
  1972. + ;;
  1973. dpx20 | dpx20-*)
  1974. basic_machine=rs6000-bull
  1975. os=-bosx
  1976. @@ -297,6 +512,10 @@
  1977. encore | umax | mmax)
  1978. basic_machine=ns32k-encore
  1979. ;;
  1980. + es1800 | OSE68k | ose68k | ose | OSE)
  1981. + basic_machine=m68k-ericsson
  1982. + os=-ose
  1983. + ;;
  1984. fx2800)
  1985. basic_machine=i860-alliant
  1986. ;;
  1987. @@ -307,6 +526,10 @@
  1988. basic_machine=tron-gmicro
  1989. os=-sysv
  1990. ;;
  1991. + go32)
  1992. + basic_machine=i386-pc
  1993. + os=-go32
  1994. + ;;
  1995. h3050r* | hiux*)
  1996. basic_machine=hppa1.1-hitachi
  1997. os=-hiuxwe2
  1998. @@ -315,6 +538,14 @@
  1999. basic_machine=h8300-hitachi
  2000. os=-hms
  2001. ;;
  2002. + h8300xray)
  2003. + basic_machine=h8300-hitachi
  2004. + os=-xray
  2005. + ;;
  2006. + h8500hms)
  2007. + basic_machine=h8500-hitachi
  2008. + os=-hms
  2009. + ;;
  2010. harris)
  2011. basic_machine=m88k-harris
  2012. os=-sysv3
  2013. @@ -330,13 +561,30 @@
  2014. basic_machine=m68k-hp
  2015. os=-hpux
  2016. ;;
  2017. + hp3k9[0-9][0-9] | hp9[0-9][0-9])
  2018. + basic_machine=hppa1.0-hp
  2019. + ;;
  2020. hp9k2[0-9][0-9] | hp9k31[0-9])
  2021. basic_machine=m68000-hp
  2022. ;;
  2023. hp9k3[2-9][0-9])
  2024. basic_machine=m68k-hp
  2025. ;;
  2026. - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
  2027. + hp9k6[0-9][0-9] | hp6[0-9][0-9])
  2028. + basic_machine=hppa1.0-hp
  2029. + ;;
  2030. + hp9k7[0-79][0-9] | hp7[0-79][0-9])
  2031. + basic_machine=hppa1.1-hp
  2032. + ;;
  2033. + hp9k78[0-9] | hp78[0-9])
  2034. + # FIXME: really hppa2.0-hp
  2035. + basic_machine=hppa1.1-hp
  2036. + ;;
  2037. + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  2038. + # FIXME: really hppa2.0-hp
  2039. + basic_machine=hppa1.1-hp
  2040. + ;;
  2041. + hp9k8[0-9][13679] | hp8[0-9][13679])
  2042. basic_machine=hppa1.1-hp
  2043. ;;
  2044. hp9k8[0-9][0-9] | hp8[0-9][0-9])
  2045. @@ -345,27 +593,42 @@
  2046. hppa-next)
  2047. os=-nextstep3
  2048. ;;
  2049. + hppaosf)
  2050. + basic_machine=hppa1.1-hp
  2051. + os=-osf
  2052. + ;;
  2053. + hppro)
  2054. + basic_machine=hppa1.1-hp
  2055. + os=-proelf
  2056. + ;;
  2057. i370-ibm* | ibm*)
  2058. basic_machine=i370-ibm
  2059. - os=-mvs
  2060. ;;
  2061. # I'm not sure what "Sysv32" means. Should this be sysv3.2?
  2062. - i[3456]86v32)
  2063. + i*86v32)
  2064. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  2065. os=-sysv32
  2066. ;;
  2067. - i[3456]86v4*)
  2068. + i*86v4*)
  2069. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  2070. os=-sysv4
  2071. ;;
  2072. - i[3456]86v)
  2073. + i*86v)
  2074. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  2075. os=-sysv
  2076. ;;
  2077. - i[3456]86sol2)
  2078. + i*86sol2)
  2079. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  2080. os=-solaris2
  2081. ;;
  2082. + i386mach)
  2083. + basic_machine=i386-mach
  2084. + os=-mach
  2085. + ;;
  2086. + i386-vsta | vsta)
  2087. + basic_machine=i386-unknown
  2088. + os=-vsta
  2089. + ;;
  2090. iris | iris4d)
  2091. basic_machine=mips-sgi
  2092. case $os in
  2093. @@ -391,16 +654,16 @@
  2094. basic_machine=ns32k-utek
  2095. os=-sysv
  2096. ;;
  2097. + mingw32)
  2098. + basic_machine=i386-pc
  2099. + os=-mingw32
  2100. + ;;
  2101. miniframe)
  2102. basic_machine=m68000-convergent
  2103. ;;
  2104. - mipsel*-linux*)
  2105. - basic_machine=mipsel-unknown
  2106. - os=-linux-gnu
  2107. - ;;
  2108. - mips*-linux*)
  2109. - basic_machine=mips-unknown
  2110. - os=-linux-gnu
  2111. + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  2112. + basic_machine=m68k-atari
  2113. + os=-mint
  2114. ;;
  2115. mips3*-*)
  2116. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  2117. @@ -408,10 +671,34 @@
  2118. mips3*)
  2119. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  2120. ;;
  2121. + monitor)
  2122. + basic_machine=m68k-rom68k
  2123. + os=-coff
  2124. + ;;
  2125. + morphos)
  2126. + basic_machine=powerpc-unknown
  2127. + os=-morphos
  2128. + ;;
  2129. + msdos)
  2130. + basic_machine=i386-pc
  2131. + os=-msdos
  2132. + ;;
  2133. + mvs)
  2134. + basic_machine=i370-ibm
  2135. + os=-mvs
  2136. + ;;
  2137. ncr3000)
  2138. basic_machine=i486-ncr
  2139. os=-sysv4
  2140. ;;
  2141. + netbsd386)
  2142. + basic_machine=i386-unknown
  2143. + os=-netbsd
  2144. + ;;
  2145. + netwinder)
  2146. + basic_machine=armv4l-rebel
  2147. + os=-linux
  2148. + ;;
  2149. news | news700 | news800 | news900)
  2150. basic_machine=m68k-sony
  2151. os=-newsos
  2152. @@ -424,6 +711,10 @@
  2153. basic_machine=mips-sony
  2154. os=-newsos
  2155. ;;
  2156. + necv70)
  2157. + basic_machine=v70-nec
  2158. + os=-sysv
  2159. + ;;
  2160. next | m*-next )
  2161. basic_machine=m68k-next
  2162. case $os in
  2163. @@ -449,9 +740,40 @@
  2164. basic_machine=i960-intel
  2165. os=-nindy
  2166. ;;
  2167. + mon960)
  2168. + basic_machine=i960-intel
  2169. + os=-mon960
  2170. + ;;
  2171. + nonstopux)
  2172. + basic_machine=mips-compaq
  2173. + os=-nonstopux
  2174. + ;;
  2175. np1)
  2176. basic_machine=np1-gould
  2177. ;;
  2178. + nsr-tandem)
  2179. + basic_machine=nsr-tandem
  2180. + ;;
  2181. + op50n-* | op60c-*)
  2182. + basic_machine=hppa1.1-oki
  2183. + os=-proelf
  2184. + ;;
  2185. + or32 | or32-*)
  2186. + basic_machine=or32-unknown
  2187. + os=-coff
  2188. + ;;
  2189. + os400)
  2190. + basic_machine=powerpc-ibm
  2191. + os=-os400
  2192. + ;;
  2193. + OSE68000 | ose68000)
  2194. + basic_machine=m68000-ericsson
  2195. + os=-ose
  2196. + ;;
  2197. + os68k)
  2198. + basic_machine=m68k-none
  2199. + os=-os68k
  2200. + ;;
  2201. pa-hitachi)
  2202. basic_machine=hppa1.1-hitachi
  2203. os=-hiuxwe2
  2204. @@ -466,53 +788,95 @@
  2205. pbb)
  2206. basic_machine=m68k-tti
  2207. ;;
  2208. - pc532 | pc532-*)
  2209. + pc532 | pc532-*)
  2210. basic_machine=ns32k-pc532
  2211. ;;
  2212. - pentium | p5)
  2213. - basic_machine=i586-intel
  2214. + pentium | p5 | k5 | k6 | nexgen | viac3)
  2215. + basic_machine=i586-pc
  2216. + ;;
  2217. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  2218. + basic_machine=i686-pc
  2219. ;;
  2220. - pentiumpro | p6)
  2221. - basic_machine=i686-intel
  2222. + pentiumii | pentium2 | pentiumiii | pentium3)
  2223. + basic_machine=i686-pc
  2224. ;;
  2225. - pentium-* | p5-*)
  2226. + pentium4)
  2227. + basic_machine=i786-pc
  2228. + ;;
  2229. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  2230. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  2231. ;;
  2232. - pentiumpro-* | p6-*)
  2233. + pentiumpro-* | p6-* | 6x86-* | athlon-*)
  2234. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  2235. + ;;
  2236. + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  2237. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  2238. ;;
  2239. - k5)
  2240. - # We don't have specific support for AMD's K5 yet, so just call it a Pentium
  2241. - basic_machine=i586-amd
  2242. - ;;
  2243. - nexen)
  2244. - # We don't have specific support for Nexgen yet, so just call it a Pentium
  2245. - basic_machine=i586-nexgen
  2246. + pentium4-*)
  2247. + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  2248. ;;
  2249. pn)
  2250. basic_machine=pn-gould
  2251. ;;
  2252. - power) basic_machine=rs6000-ibm
  2253. + power) basic_machine=power-ibm
  2254. ;;
  2255. ppc) basic_machine=powerpc-unknown
  2256. - ;;
  2257. + ;;
  2258. ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  2259. ;;
  2260. ppcle | powerpclittle | ppc-le | powerpc-little)
  2261. basic_machine=powerpcle-unknown
  2262. - ;;
  2263. + ;;
  2264. ppcle-* | powerpclittle-*)
  2265. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  2266. ;;
  2267. + ppc64) basic_machine=powerpc64-unknown
  2268. + ;;
  2269. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  2270. + ;;
  2271. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  2272. + basic_machine=powerpc64le-unknown
  2273. + ;;
  2274. + ppc64le-* | powerpc64little-*)
  2275. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  2276. + ;;
  2277. ps2)
  2278. basic_machine=i386-ibm
  2279. ;;
  2280. + pw32)
  2281. + basic_machine=i586-unknown
  2282. + os=-pw32
  2283. + ;;
  2284. + rom68k)
  2285. + basic_machine=m68k-rom68k
  2286. + os=-coff
  2287. + ;;
  2288. rm[46]00)
  2289. basic_machine=mips-siemens
  2290. ;;
  2291. rtpc | rtpc-*)
  2292. basic_machine=romp-ibm
  2293. ;;
  2294. + s390 | s390-*)
  2295. + basic_machine=s390-ibm
  2296. + ;;
  2297. + s390x | s390x-*)
  2298. + basic_machine=s390x-ibm
  2299. + ;;
  2300. + sa29200)
  2301. + basic_machine=a29k-amd
  2302. + os=-udi
  2303. + ;;
  2304. + sb1)
  2305. + basic_machine=mipsisa64sb1-unknown
  2306. + ;;
  2307. + sb1el)
  2308. + basic_machine=mipsisa64sb1el-unknown
  2309. + ;;
  2310. + sei)
  2311. + basic_machine=mips-sei
  2312. + os=-seiux
  2313. + ;;
  2314. sequent)
  2315. basic_machine=i386-sequent
  2316. ;;
  2317. @@ -520,6 +884,13 @@
  2318. basic_machine=sh-hitachi
  2319. os=-hms
  2320. ;;
  2321. + sh64)
  2322. + basic_machine=sh64-unknown
  2323. + ;;
  2324. + sparclite-wrs | simso-wrs)
  2325. + basic_machine=sparclite-wrs
  2326. + os=-vxworks
  2327. + ;;
  2328. sps7)
  2329. basic_machine=m68k-bull
  2330. os=-sysv2
  2331. @@ -527,6 +898,13 @@
  2332. spur)
  2333. basic_machine=spur-unknown
  2334. ;;
  2335. + st2000)
  2336. + basic_machine=m68k-tandem
  2337. + ;;
  2338. + stratus)
  2339. + basic_machine=i860-stratus
  2340. + os=-sysv4
  2341. + ;;
  2342. sun2)
  2343. basic_machine=m68000-sun
  2344. ;;
  2345. @@ -567,19 +945,51 @@
  2346. sun386 | sun386i | roadrunner)
  2347. basic_machine=i386-sun
  2348. ;;
  2349. + sv1)
  2350. + basic_machine=sv1-cray
  2351. + os=-unicos
  2352. + ;;
  2353. symmetry)
  2354. basic_machine=i386-sequent
  2355. os=-dynix
  2356. ;;
  2357. + t3e)
  2358. + basic_machine=alphaev5-cray
  2359. + os=-unicos
  2360. + ;;
  2361. + t90)
  2362. + basic_machine=t90-cray
  2363. + os=-unicos
  2364. + ;;
  2365. + tic54x | c54x*)
  2366. + basic_machine=tic54x-unknown
  2367. + os=-coff
  2368. + ;;
  2369. + tic55x | c55x*)
  2370. + basic_machine=tic55x-unknown
  2371. + os=-coff
  2372. + ;;
  2373. + tic6x | c6x*)
  2374. + basic_machine=tic6x-unknown
  2375. + os=-coff
  2376. + ;;
  2377. tx39)
  2378. basic_machine=mipstx39-unknown
  2379. ;;
  2380. tx39el)
  2381. basic_machine=mipstx39el-unknown
  2382. ;;
  2383. + toad1)
  2384. + basic_machine=pdp10-xkl
  2385. + os=-tops20
  2386. + ;;
  2387. tower | tower-32)
  2388. basic_machine=m68k-ncr
  2389. ;;
  2390. + tpf)
  2391. + basic_machine=s390x-ibm
  2392. + os=-tpf
  2393. + ;;
  2394. udi29k)
  2395. basic_machine=a29k-amd
  2396. os=-udi
  2397. @@ -588,6 +998,10 @@
  2398. basic_machine=a29k-nyu
  2399. os=-sym1
  2400. ;;
  2401. + v810 | necv810)
  2402. + basic_machine=v810-nec
  2403. + os=-none
  2404. + ;;
  2405. vaxv)
  2406. basic_machine=vax-dec
  2407. os=-sysv
  2408. @@ -597,8 +1011,8 @@
  2409. os=-vms
  2410. ;;
  2411. vpp*|vx|vx-*)
  2412. - basic_machine=f301-fujitsu
  2413. - ;;
  2414. + basic_machine=f301-fujitsu
  2415. + ;;
  2416. vxworks960)
  2417. basic_machine=i960-wrs
  2418. os=-vxworks
  2419. @@ -611,13 +1025,29 @@
  2420. basic_machine=a29k-wrs
  2421. os=-vxworks
  2422. ;;
  2423. - xmp)
  2424. - basic_machine=xmp-cray
  2425. - os=-unicos
  2426. + w65*)
  2427. + basic_machine=w65-wdc
  2428. + os=-none
  2429. + ;;
  2430. + w89k-*)
  2431. + basic_machine=hppa1.1-winbond
  2432. + os=-proelf
  2433. + ;;
  2434. + xbox)
  2435. + basic_machine=i686-pc
  2436. + os=-mingw32
  2437. ;;
  2438. - xps | xps100)
  2439. + xps | xps100)
  2440. basic_machine=xps100-honeywell
  2441. ;;
  2442. + ymp)
  2443. + basic_machine=ymp-cray
  2444. + os=-unicos
  2445. + ;;
  2446. + z8k-*-coff)
  2447. + basic_machine=z8k-unknown
  2448. + os=-sim
  2449. + ;;
  2450. none)
  2451. basic_machine=none-none
  2452. os=-none
  2453. @@ -625,32 +1055,47 @@
  2454. # Here we handle the default manufacturer of certain CPU types. It is in
  2455. # some cases the only manufacturer, in others, it is the most popular.
  2456. - mips)
  2457. - if [ x$os = x-linux-gnu ]; then
  2458. - basic_machine=mips-unknown
  2459. - else
  2460. - basic_machine=mips-mips
  2461. - fi
  2462. + w89k)
  2463. + basic_machine=hppa1.1-winbond
  2464. + ;;
  2465. + op50n)
  2466. + basic_machine=hppa1.1-oki
  2467. + ;;
  2468. + op60c)
  2469. + basic_machine=hppa1.1-oki
  2470. ;;
  2471. romp)
  2472. basic_machine=romp-ibm
  2473. ;;
  2474. + mmix)
  2475. + basic_machine=mmix-knuth
  2476. + ;;
  2477. rs6000)
  2478. basic_machine=rs6000-ibm
  2479. ;;
  2480. vax)
  2481. basic_machine=vax-dec
  2482. ;;
  2483. + pdp10)
  2484. + # there are many clones, so DEC is not a safe bet
  2485. + basic_machine=pdp10-unknown
  2486. + ;;
  2487. pdp11)
  2488. basic_machine=pdp11-dec
  2489. ;;
  2490. we32k)
  2491. basic_machine=we32k-att
  2492. ;;
  2493. - sparc)
  2494. + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  2495. + basic_machine=sh-unknown
  2496. + ;;
  2497. + sh64)
  2498. + basic_machine=sh64-unknown
  2499. + ;;
  2500. + sparc | sparcv8 | sparcv9 | sparcv9b)
  2501. basic_machine=sparc-sun
  2502. ;;
  2503. - cydra)
  2504. + cydra)
  2505. basic_machine=cydra-cydrome
  2506. ;;
  2507. orion)
  2508. @@ -659,6 +1104,15 @@
  2509. orion105)
  2510. basic_machine=clipper-highlevel
  2511. ;;
  2512. + mac | mpw | mac-mpw)
  2513. + basic_machine=m68k-apple
  2514. + ;;
  2515. + pmac | pmac-mpw)
  2516. + basic_machine=powerpc-apple
  2517. + ;;
  2518. + *-unknown)
  2519. + # Make sure to match an already-canonicalized machine name.
  2520. + ;;
  2521. *)
  2522. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  2523. exit 1
  2524. @@ -711,14 +1165,46 @@
  2525. | -aos* \
  2526. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  2527. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  2528. - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
  2529. - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
  2530. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  2531. + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  2532. + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  2533. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  2534. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  2535. - | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  2536. - | -mingw32* | -linux-gnu* | -uxpv*)
  2537. + | -chorusos* | -chorusrdb* \
  2538. + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  2539. + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  2540. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  2541. + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  2542. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  2543. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  2544. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  2545. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
  2546. # Remember, each alternative MUST END IN *, to match a version number.
  2547. ;;
  2548. + -qnx*)
  2549. + case $basic_machine in
  2550. + x86-* | i*86-*)
  2551. + ;;
  2552. + *)
  2553. + os=-nto$os
  2554. + ;;
  2555. + esac
  2556. + ;;
  2557. + -nto-qnx*)
  2558. + ;;
  2559. + -nto*)
  2560. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  2561. + ;;
  2562. + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  2563. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  2564. + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  2565. + ;;
  2566. + -mac*)
  2567. + os=`echo $os | sed -e 's|mac|macos|'`
  2568. + ;;
  2569. + -linux-dietlibc)
  2570. + os=-linux-dietlibc
  2571. + ;;
  2572. -linux*)
  2573. os=`echo $os | sed -e 's|linux|linux-gnu|'`
  2574. ;;
  2575. @@ -728,6 +1214,15 @@
  2576. -sunos6*)
  2577. os=`echo $os | sed -e 's|sunos6|solaris3|'`
  2578. ;;
  2579. + -opened*)
  2580. + os=-openedition
  2581. + ;;
  2582. + -os400*)
  2583. + os=-os400
  2584. + ;;
  2585. + -wince*)
  2586. + os=-wince
  2587. + ;;
  2588. -osfrose*)
  2589. os=-osfrose
  2590. ;;
  2591. @@ -743,11 +1238,26 @@
  2592. -acis*)
  2593. os=-aos
  2594. ;;
  2595. + -atheos*)
  2596. + os=-atheos
  2597. + ;;
  2598. + -syllable*)
  2599. + os=-syllable
  2600. + ;;
  2601. + -386bsd)
  2602. + os=-bsd
  2603. + ;;
  2604. -ctix* | -uts*)
  2605. os=-sysv
  2606. ;;
  2607. + -nova*)
  2608. + os=-rtmk-nova
  2609. + ;;
  2610. -ns2 )
  2611. - os=-nextstep2
  2612. + os=-nextstep2
  2613. + ;;
  2614. + -nsk*)
  2615. + os=-nsk
  2616. ;;
  2617. # Preserve the version number of sinix5.
  2618. -sinix5.*)
  2619. @@ -756,6 +1266,9 @@
  2620. -sinix*)
  2621. os=-sysv4
  2622. ;;
  2623. + -tpf*)
  2624. + os=-tpf
  2625. + ;;
  2626. -triton*)
  2627. os=-sysv3
  2628. ;;
  2629. @@ -774,9 +1287,27 @@
  2630. # This must come after -sysvr4.
  2631. -sysv*)
  2632. ;;
  2633. + -ose*)
  2634. + os=-ose
  2635. + ;;
  2636. + -es1800*)
  2637. + os=-ose
  2638. + ;;
  2639. -xenix)
  2640. os=-xenix
  2641. ;;
  2642. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  2643. + os=-mint
  2644. + ;;
  2645. + -aros*)
  2646. + os=-aros
  2647. + ;;
  2648. + -kaos*)
  2649. + os=-kaos
  2650. + ;;
  2651. + -zvmoe)
  2652. + os=-zvmoe
  2653. + ;;
  2654. -none)
  2655. ;;
  2656. *)
  2657. @@ -802,10 +1333,20 @@
  2658. *-acorn)
  2659. os=-riscix1.2
  2660. ;;
  2661. + arm*-rebel)
  2662. + os=-linux
  2663. + ;;
  2664. arm*-semi)
  2665. os=-aout
  2666. ;;
  2667. - pdp11-*)
  2668. + c4x-* | tic4x-*)
  2669. + os=-coff
  2670. + ;;
  2671. + # This must come before the *-dec entry.
  2672. + pdp10-*)
  2673. + os=-tops20
  2674. + ;;
  2675. + pdp11-*)
  2676. os=-none
  2677. ;;
  2678. *-dec | vax-*)
  2679. @@ -823,15 +1364,42 @@
  2680. # default.
  2681. # os=-sunos4
  2682. ;;
  2683. + m68*-cisco)
  2684. + os=-aout
  2685. + ;;
  2686. + mips*-cisco)
  2687. + os=-elf
  2688. + ;;
  2689. + mips*-*)
  2690. + os=-elf
  2691. + ;;
  2692. + or32-*)
  2693. + os=-coff
  2694. + ;;
  2695. *-tti) # must be before sparc entry or we get the wrong os.
  2696. os=-sysv3
  2697. ;;
  2698. sparc-* | *-sun)
  2699. os=-sunos4.1.1
  2700. ;;
  2701. + *-be)
  2702. + os=-beos
  2703. + ;;
  2704. *-ibm)
  2705. os=-aix
  2706. ;;
  2707. + *-knuth)
  2708. + os=-mmixware
  2709. + ;;
  2710. + *-wec)
  2711. + os=-proelf
  2712. + ;;
  2713. + *-winbond)
  2714. + os=-proelf
  2715. + ;;
  2716. + *-oki)
  2717. + os=-proelf
  2718. + ;;
  2719. *-hp)
  2720. os=-hpux
  2721. ;;
  2722. @@ -874,27 +1442,39 @@
  2723. *-next)
  2724. os=-nextstep3
  2725. ;;
  2726. - *-gould)
  2727. + *-gould)
  2728. os=-sysv
  2729. ;;
  2730. - *-highlevel)
  2731. + *-highlevel)
  2732. os=-bsd
  2733. ;;
  2734. *-encore)
  2735. os=-bsd
  2736. ;;
  2737. - *-sgi)
  2738. + *-sgi)
  2739. os=-irix
  2740. ;;
  2741. - *-siemens)
  2742. + *-siemens)
  2743. os=-sysv4
  2744. ;;
  2745. *-masscomp)
  2746. os=-rtu
  2747. ;;
  2748. - f301-fujitsu)
  2749. + f30[01]-fujitsu | f700-fujitsu)
  2750. os=-uxpv
  2751. ;;
  2752. + *-rom68k)
  2753. + os=-coff
  2754. + ;;
  2755. + *-*bug)
  2756. + os=-coff
  2757. + ;;
  2758. + *-apple)
  2759. + os=-macos
  2760. + ;;
  2761. + *-atari*)
  2762. + os=-mint
  2763. + ;;
  2764. *)
  2765. os=-none
  2766. ;;
  2767. @@ -916,9 +1496,15 @@
  2768. -aix*)
  2769. vendor=ibm
  2770. ;;
  2771. + -beos*)
  2772. + vendor=be
  2773. + ;;
  2774. -hpux*)
  2775. vendor=hp
  2776. ;;
  2777. + -mpeix*)
  2778. + vendor=hp
  2779. + ;;
  2780. -hiux*)
  2781. vendor=hitachi
  2782. ;;
  2783. @@ -934,21 +1520,47 @@
  2784. -genix*)
  2785. vendor=ns
  2786. ;;
  2787. - -mvs*)
  2788. + -mvs* | -opened*)
  2789. + vendor=ibm
  2790. + ;;
  2791. + -os400*)
  2792. vendor=ibm
  2793. ;;
  2794. -ptx*)
  2795. vendor=sequent
  2796. ;;
  2797. - -vxsim* | -vxworks*)
  2798. + -tpf*)
  2799. + vendor=ibm
  2800. + ;;
  2801. + -vxsim* | -vxworks* | -windiss*)
  2802. vendor=wrs
  2803. ;;
  2804. -aux*)
  2805. vendor=apple
  2806. ;;
  2807. + -hms*)
  2808. + vendor=hitachi
  2809. + ;;
  2810. + -mpw* | -macos*)
  2811. + vendor=apple
  2812. + ;;
  2813. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  2814. + vendor=atari
  2815. + ;;
  2816. + -vos*)
  2817. + vendor=stratus
  2818. + ;;
  2819. esac
  2820. basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  2821. ;;
  2822. esac
  2823. echo $basic_machine$os
  2824. +exit 0
  2825. +
  2826. +# Local variables:
  2827. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  2828. +# time-stamp-start: "timestamp='"
  2829. +# time-stamp-format: "%:y-%02m-%02d"
  2830. +# time-stamp-end: "'"
  2831. +# End: