config.guess 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465
  1. #! /bin/sh
  2. # Attempt to guess a canonical system name.
  3. # Copyright 1992-2016 Free Software Foundation, Inc.
  4. timestamp='2016-03-24'
  5. # This file is free software; you can redistribute it and/or modify it
  6. # under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. # General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, see <http://www.gnu.org/licenses/>.
  17. #
  18. # As a special exception to the GNU General Public License, if you
  19. # distribute this file as part of a program that contains a
  20. # configuration script generated by Autoconf, you may include it under
  21. # the same distribution terms that you use for the rest of that
  22. # program. This Exception is an additional permission under section 7
  23. # of the GNU General Public License, version 3 ("GPLv3").
  24. #
  25. # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
  26. #
  27. # You can get the latest version of this script from:
  28. # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
  29. #
  30. # Please send patches to <config-patches@gnu.org>.
  31. me=`echo "$0" | sed -e 's,.*/,,'`
  32. usage="\
  33. Usage: $0 [OPTION]
  34. Output the configuration name of the system \`$me' is run on.
  35. Operation modes:
  36. -h, --help print this help, then exit
  37. -t, --time-stamp print date of last modification, then exit
  38. -v, --version print version number, then exit
  39. Report bugs and patches to <config-patches@gnu.org>."
  40. version="\
  41. GNU config.guess ($timestamp)
  42. Originally written by Per Bothner.
  43. Copyright 1992-2016 Free Software Foundation, Inc.
  44. This is free software; see the source for copying conditions. There is NO
  45. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  46. help="
  47. Try \`$me --help' for more information."
  48. # Parse command line
  49. while test $# -gt 0 ; do
  50. case $1 in
  51. --time-stamp | --time* | -t )
  52. echo "$timestamp" ; exit ;;
  53. --version | -v )
  54. echo "$version" ; exit ;;
  55. --help | --h* | -h )
  56. echo "$usage"; exit ;;
  57. -- ) # Stop option processing
  58. shift; break ;;
  59. - ) # Use stdin as input.
  60. break ;;
  61. -* )
  62. echo "$me: invalid option $1$help" >&2
  63. exit 1 ;;
  64. * )
  65. break ;;
  66. esac
  67. done
  68. if test $# != 0; then
  69. echo "$me: too many arguments$help" >&2
  70. exit 1
  71. fi
  72. trap 'exit 1' 1 2 15
  73. # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  74. # compiler to aid in system detection is discouraged as it requires
  75. # temporary files to be created and, as you can see below, it is a
  76. # headache to deal with in a portable fashion.
  77. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  78. # use `HOST_CC' if defined, but it is deprecated.
  79. # Portable tmp directory creation inspired by the Autoconf team.
  80. set_cc_for_build='
  81. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  82. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  83. : ${TMPDIR=/tmp} ;
  84. { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  85. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  86. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  87. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  88. dummy=$tmp/dummy ;
  89. tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  90. case $CC_FOR_BUILD,$HOST_CC,$CC in
  91. ,,) echo "int x;" > $dummy.c ;
  92. for c in cc gcc c89 c99 ; do
  93. if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  94. CC_FOR_BUILD="$c"; break ;
  95. fi ;
  96. done ;
  97. if test x"$CC_FOR_BUILD" = x ; then
  98. CC_FOR_BUILD=no_compiler_found ;
  99. fi
  100. ;;
  101. ,,*) CC_FOR_BUILD=$CC ;;
  102. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  103. esac ; set_cc_for_build= ;'
  104. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  105. # (ghazi@noc.rutgers.edu 1994-08-24)
  106. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  107. PATH=$PATH:/.attbin ; export PATH
  108. fi
  109. UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  110. UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  111. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  112. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  113. case "${UNAME_SYSTEM}" in
  114. Linux|GNU|GNU/*)
  115. # If the system lacks a compiler, then just pick glibc.
  116. # We could probably try harder.
  117. LIBC=gnu
  118. eval $set_cc_for_build
  119. cat <<-EOF > $dummy.c
  120. #include <features.h>
  121. #if defined(__UCLIBC__)
  122. LIBC=uclibc
  123. #elif defined(__dietlibc__)
  124. LIBC=dietlibc
  125. #else
  126. LIBC=gnu
  127. #endif
  128. EOF
  129. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
  130. ;;
  131. esac
  132. # Note: order is significant - the case branches are not exclusive.
  133. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  134. *:NetBSD:*:*)
  135. # NetBSD (nbsd) targets should (where applicable) match one or
  136. # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
  137. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  138. # switched to ELF, *-*-netbsd* would select the old
  139. # object file format. This provides both forward
  140. # compatibility and a consistent mechanism for selecting the
  141. # object file format.
  142. #
  143. # Note: NetBSD doesn't particularly care about the vendor
  144. # portion of the name. We always set it to "unknown".
  145. sysctl="sysctl -n hw.machine_arch"
  146. UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
  147. /sbin/$sysctl 2>/dev/null || \
  148. /usr/sbin/$sysctl 2>/dev/null || \
  149. echo unknown)`
  150. case "${UNAME_MACHINE_ARCH}" in
  151. armeb) machine=armeb-unknown ;;
  152. arm*) machine=arm-unknown ;;
  153. sh3el) machine=shl-unknown ;;
  154. sh3eb) machine=sh-unknown ;;
  155. sh5el) machine=sh5le-unknown ;;
  156. earmv*)
  157. arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
  158. endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
  159. machine=${arch}${endian}-unknown
  160. ;;
  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*|earm*|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 -q __ELF__
  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. # Determine ABI tags.
  183. case "${UNAME_MACHINE_ARCH}" in
  184. earm*)
  185. expr='s/^earmv[0-9]/-eabi/;s/eb$//'
  186. abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
  187. ;;
  188. esac
  189. # The OS release
  190. # Debian GNU/NetBSD machines have a different userland, and
  191. # thus, need a distinct triplet. However, they do not need
  192. # kernel version information, so it can be replaced with a
  193. # suitable tag, in the style of linux-gnu.
  194. case "${UNAME_VERSION}" in
  195. Debian*)
  196. release='-gnu'
  197. ;;
  198. *)
  199. release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
  200. ;;
  201. esac
  202. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  203. # contains redundant information, the shorter form:
  204. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  205. echo "${machine}-${os}${release}${abi}"
  206. exit ;;
  207. *:Bitrig:*:*)
  208. UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
  209. echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
  210. exit ;;
  211. *:OpenBSD:*:*)
  212. UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  213. echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  214. exit ;;
  215. *:LibertyBSD:*:*)
  216. UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
  217. echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
  218. exit ;;
  219. *:ekkoBSD:*:*)
  220. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  221. exit ;;
  222. *:SolidBSD:*:*)
  223. echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  224. exit ;;
  225. macppc:MirBSD:*:*)
  226. echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  227. exit ;;
  228. *:MirBSD:*:*)
  229. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  230. exit ;;
  231. *:Sortix:*:*)
  232. echo ${UNAME_MACHINE}-unknown-sortix
  233. exit ;;
  234. alpha:OSF1:*:*)
  235. case $UNAME_RELEASE in
  236. *4.0)
  237. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  238. ;;
  239. *5.*)
  240. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  241. ;;
  242. esac
  243. # According to Compaq, /usr/sbin/psrinfo has been available on
  244. # OSF/1 and Tru64 systems produced since 1995. I hope that
  245. # covers most systems running today. This code pipes the CPU
  246. # types through head -n 1, so we only detect the type of CPU 0.
  247. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  248. case "$ALPHA_CPU_TYPE" in
  249. "EV4 (21064)")
  250. UNAME_MACHINE=alpha ;;
  251. "EV4.5 (21064)")
  252. UNAME_MACHINE=alpha ;;
  253. "LCA4 (21066/21068)")
  254. UNAME_MACHINE=alpha ;;
  255. "EV5 (21164)")
  256. UNAME_MACHINE=alphaev5 ;;
  257. "EV5.6 (21164A)")
  258. UNAME_MACHINE=alphaev56 ;;
  259. "EV5.6 (21164PC)")
  260. UNAME_MACHINE=alphapca56 ;;
  261. "EV5.7 (21164PC)")
  262. UNAME_MACHINE=alphapca57 ;;
  263. "EV6 (21264)")
  264. UNAME_MACHINE=alphaev6 ;;
  265. "EV6.7 (21264A)")
  266. UNAME_MACHINE=alphaev67 ;;
  267. "EV6.8CB (21264C)")
  268. UNAME_MACHINE=alphaev68 ;;
  269. "EV6.8AL (21264B)")
  270. UNAME_MACHINE=alphaev68 ;;
  271. "EV6.8CX (21264D)")
  272. UNAME_MACHINE=alphaev68 ;;
  273. "EV6.9A (21264/EV69A)")
  274. UNAME_MACHINE=alphaev69 ;;
  275. "EV7 (21364)")
  276. UNAME_MACHINE=alphaev7 ;;
  277. "EV7.9 (21364A)")
  278. UNAME_MACHINE=alphaev79 ;;
  279. esac
  280. # A Pn.n version is a patched version.
  281. # A Vn.n version is a released version.
  282. # A Tn.n version is a released field test version.
  283. # A Xn.n version is an unreleased experimental baselevel.
  284. # 1.2 uses "1.2" for uname -r.
  285. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
  286. # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
  287. exitcode=$?
  288. trap '' 0
  289. exit $exitcode ;;
  290. Alpha\ *:Windows_NT*:*)
  291. # How do we know it's Interix rather than the generic POSIX subsystem?
  292. # Should we change UNAME_MACHINE based on the output of uname instead
  293. # of the specific Alpha model?
  294. echo alpha-pc-interix
  295. exit ;;
  296. 21064:Windows_NT:50:3)
  297. echo alpha-dec-winnt3.5
  298. exit ;;
  299. Amiga*:UNIX_System_V:4.0:*)
  300. echo m68k-unknown-sysv4
  301. exit ;;
  302. *:[Aa]miga[Oo][Ss]:*:*)
  303. echo ${UNAME_MACHINE}-unknown-amigaos
  304. exit ;;
  305. *:[Mm]orph[Oo][Ss]:*:*)
  306. echo ${UNAME_MACHINE}-unknown-morphos
  307. exit ;;
  308. *:OS/390:*:*)
  309. echo i370-ibm-openedition
  310. exit ;;
  311. *:z/VM:*:*)
  312. echo s390-ibm-zvmoe
  313. exit ;;
  314. *:OS400:*:*)
  315. echo powerpc-ibm-os400
  316. exit ;;
  317. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  318. echo arm-acorn-riscix${UNAME_RELEASE}
  319. exit ;;
  320. arm*:riscos:*:*|arm*:RISCOS:*:*)
  321. echo arm-unknown-riscos
  322. exit ;;
  323. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  324. echo hppa1.1-hitachi-hiuxmpp
  325. exit ;;
  326. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  327. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  328. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  329. echo pyramid-pyramid-sysv3
  330. else
  331. echo pyramid-pyramid-bsd
  332. fi
  333. exit ;;
  334. NILE*:*:*:dcosx)
  335. echo pyramid-pyramid-svr4
  336. exit ;;
  337. DRS?6000:unix:4.0:6*)
  338. echo sparc-icl-nx6
  339. exit ;;
  340. DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  341. case `/usr/bin/uname -p` in
  342. sparc) echo sparc-icl-nx7; exit ;;
  343. esac ;;
  344. s390x:SunOS:*:*)
  345. echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  346. exit ;;
  347. sun4H:SunOS:5.*:*)
  348. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  349. exit ;;
  350. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  351. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  352. exit ;;
  353. i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
  354. echo i386-pc-auroraux${UNAME_RELEASE}
  355. exit ;;
  356. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  357. eval $set_cc_for_build
  358. SUN_ARCH=i386
  359. _ISAINFO=`isainfo -k 2>/dev/null`
  360. if [ "$_ISAINFO" = "amd64" ]; then
  361. SUN_ARCH=x86_64
  362. elif [ "$CC_FOR_BUILD" != no_compiler_found ]; then
  363. # If there is a compiler, see if it is configured for 64-bit objects.
  364. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  365. # This test works for both compilers.
  366. if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  367. (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  368. grep IS_64BIT_ARCH >/dev/null
  369. then
  370. SUN_ARCH=x86_64
  371. fi
  372. fi
  373. echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  374. exit ;;
  375. sun4*:SunOS:6*:*)
  376. # According to config.sub, this is the proper way to canonicalize
  377. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  378. # it's likely to be more like Solaris than SunOS4.
  379. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  380. exit ;;
  381. sun4*:SunOS:*:*)
  382. case "`/usr/bin/arch -k`" in
  383. Series*|S4*)
  384. UNAME_RELEASE=`uname -v`
  385. ;;
  386. esac
  387. # Japanese Language versions have a version number like `4.1.3-JL'.
  388. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  389. exit ;;
  390. sun3*:SunOS:*:*)
  391. echo m68k-sun-sunos${UNAME_RELEASE}
  392. exit ;;
  393. sun*:*:4.2BSD:*)
  394. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  395. test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
  396. case "`/bin/arch`" in
  397. sun3)
  398. echo m68k-sun-sunos${UNAME_RELEASE}
  399. ;;
  400. sun4)
  401. echo sparc-sun-sunos${UNAME_RELEASE}
  402. ;;
  403. esac
  404. exit ;;
  405. aushp:SunOS:*:*)
  406. echo sparc-auspex-sunos${UNAME_RELEASE}
  407. exit ;;
  408. # The situation for MiNT is a little confusing. The machine name
  409. # can be virtually everything (everything which is not
  410. # "atarist" or "atariste" at least should have a processor
  411. # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  412. # to the lowercase version "mint" (or "freemint"). Finally
  413. # the system name "TOS" denotes a system which is actually not
  414. # MiNT. But MiNT is downward compatible to TOS, so this should
  415. # be no problem.
  416. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  417. echo m68k-atari-mint${UNAME_RELEASE}
  418. exit ;;
  419. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  420. echo m68k-atari-mint${UNAME_RELEASE}
  421. exit ;;
  422. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  423. echo m68k-atari-mint${UNAME_RELEASE}
  424. exit ;;
  425. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  426. echo m68k-milan-mint${UNAME_RELEASE}
  427. exit ;;
  428. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  429. echo m68k-hades-mint${UNAME_RELEASE}
  430. exit ;;
  431. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  432. echo m68k-unknown-mint${UNAME_RELEASE}
  433. exit ;;
  434. m68k:machten:*:*)
  435. echo m68k-apple-machten${UNAME_RELEASE}
  436. exit ;;
  437. powerpc:machten:*:*)
  438. echo powerpc-apple-machten${UNAME_RELEASE}
  439. exit ;;
  440. RISC*:Mach:*:*)
  441. echo mips-dec-mach_bsd4.3
  442. exit ;;
  443. RISC*:ULTRIX:*:*)
  444. echo mips-dec-ultrix${UNAME_RELEASE}
  445. exit ;;
  446. VAX*:ULTRIX*:*:*)
  447. echo vax-dec-ultrix${UNAME_RELEASE}
  448. exit ;;
  449. 2020:CLIX:*:* | 2430:CLIX:*:*)
  450. echo clipper-intergraph-clix${UNAME_RELEASE}
  451. exit ;;
  452. mips:*:*:UMIPS | mips:*:*:RISCos)
  453. eval $set_cc_for_build
  454. sed 's/^ //' << EOF >$dummy.c
  455. #ifdef __cplusplus
  456. #include <stdio.h> /* for printf() prototype */
  457. int main (int argc, char *argv[]) {
  458. #else
  459. int main (argc, argv) int argc; char *argv[]; {
  460. #endif
  461. #if defined (host_mips) && defined (MIPSEB)
  462. #if defined (SYSTYPE_SYSV)
  463. printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  464. #endif
  465. #if defined (SYSTYPE_SVR4)
  466. printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  467. #endif
  468. #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  469. printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  470. #endif
  471. #endif
  472. exit (-1);
  473. }
  474. EOF
  475. $CC_FOR_BUILD -o $dummy $dummy.c &&
  476. dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  477. SYSTEM_NAME=`$dummy $dummyarg` &&
  478. { echo "$SYSTEM_NAME"; exit; }
  479. echo mips-mips-riscos${UNAME_RELEASE}
  480. exit ;;
  481. Motorola:PowerMAX_OS:*:*)
  482. echo powerpc-motorola-powermax
  483. exit ;;
  484. Motorola:*:4.3:PL8-*)
  485. echo powerpc-harris-powermax
  486. exit ;;
  487. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  488. echo powerpc-harris-powermax
  489. exit ;;
  490. Night_Hawk:Power_UNIX:*:*)
  491. echo powerpc-harris-powerunix
  492. exit ;;
  493. m88k:CX/UX:7*:*)
  494. echo m88k-harris-cxux7
  495. exit ;;
  496. m88k:*:4*:R4*)
  497. echo m88k-motorola-sysv4
  498. exit ;;
  499. m88k:*:3*:R3*)
  500. echo m88k-motorola-sysv3
  501. exit ;;
  502. AViiON:dgux:*:*)
  503. # DG/UX returns AViiON for all architectures
  504. UNAME_PROCESSOR=`/usr/bin/uname -p`
  505. if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  506. then
  507. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  508. [ ${TARGET_BINARY_INTERFACE}x = x ]
  509. then
  510. echo m88k-dg-dgux${UNAME_RELEASE}
  511. else
  512. echo m88k-dg-dguxbcs${UNAME_RELEASE}
  513. fi
  514. else
  515. echo i586-dg-dgux${UNAME_RELEASE}
  516. fi
  517. exit ;;
  518. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  519. echo m88k-dolphin-sysv3
  520. exit ;;
  521. M88*:*:R3*:*)
  522. # Delta 88k system running SVR3
  523. echo m88k-motorola-sysv3
  524. exit ;;
  525. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  526. echo m88k-tektronix-sysv3
  527. exit ;;
  528. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  529. echo m68k-tektronix-bsd
  530. exit ;;
  531. *:IRIX*:*:*)
  532. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  533. exit ;;
  534. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  535. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  536. exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  537. i*86:AIX:*:*)
  538. echo i386-ibm-aix
  539. exit ;;
  540. ia64:AIX:*:*)
  541. if [ -x /usr/bin/oslevel ] ; then
  542. IBM_REV=`/usr/bin/oslevel`
  543. else
  544. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  545. fi
  546. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  547. exit ;;
  548. *:AIX:2:3)
  549. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  550. eval $set_cc_for_build
  551. sed 's/^ //' << EOF >$dummy.c
  552. #include <sys/systemcfg.h>
  553. main()
  554. {
  555. if (!__power_pc())
  556. exit(1);
  557. puts("powerpc-ibm-aix3.2.5");
  558. exit(0);
  559. }
  560. EOF
  561. if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  562. then
  563. echo "$SYSTEM_NAME"
  564. else
  565. echo rs6000-ibm-aix3.2.5
  566. fi
  567. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  568. echo rs6000-ibm-aix3.2.4
  569. else
  570. echo rs6000-ibm-aix3.2
  571. fi
  572. exit ;;
  573. *:AIX:*:[4567])
  574. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  575. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  576. IBM_ARCH=rs6000
  577. else
  578. IBM_ARCH=powerpc
  579. fi
  580. if [ -x /usr/bin/lslpp ] ; then
  581. IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
  582. awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
  583. else
  584. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  585. fi
  586. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  587. exit ;;
  588. *:AIX:*:*)
  589. echo rs6000-ibm-aix
  590. exit ;;
  591. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  592. echo romp-ibm-bsd4.4
  593. exit ;;
  594. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  595. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  596. exit ;; # report: romp-ibm BSD 4.3
  597. *:BOSX:*:*)
  598. echo rs6000-bull-bosx
  599. exit ;;
  600. DPX/2?00:B.O.S.:*:*)
  601. echo m68k-bull-sysv3
  602. exit ;;
  603. 9000/[34]??:4.3bsd:1.*:*)
  604. echo m68k-hp-bsd
  605. exit ;;
  606. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  607. echo m68k-hp-bsd4.4
  608. exit ;;
  609. 9000/[34678]??:HP-UX:*:*)
  610. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  611. case "${UNAME_MACHINE}" in
  612. 9000/31? ) HP_ARCH=m68000 ;;
  613. 9000/[34]?? ) HP_ARCH=m68k ;;
  614. 9000/[678][0-9][0-9])
  615. if [ -x /usr/bin/getconf ]; then
  616. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  617. sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  618. case "${sc_cpu_version}" in
  619. 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
  620. 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
  621. 532) # CPU_PA_RISC2_0
  622. case "${sc_kernel_bits}" in
  623. 32) HP_ARCH=hppa2.0n ;;
  624. 64) HP_ARCH=hppa2.0w ;;
  625. '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
  626. esac ;;
  627. esac
  628. fi
  629. if [ "${HP_ARCH}" = "" ]; then
  630. eval $set_cc_for_build
  631. sed 's/^ //' << EOF >$dummy.c
  632. #define _HPUX_SOURCE
  633. #include <stdlib.h>
  634. #include <unistd.h>
  635. int main ()
  636. {
  637. #if defined(_SC_KERNEL_BITS)
  638. long bits = sysconf(_SC_KERNEL_BITS);
  639. #endif
  640. long cpu = sysconf (_SC_CPU_VERSION);
  641. switch (cpu)
  642. {
  643. case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  644. case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  645. case CPU_PA_RISC2_0:
  646. #if defined(_SC_KERNEL_BITS)
  647. switch (bits)
  648. {
  649. case 64: puts ("hppa2.0w"); break;
  650. case 32: puts ("hppa2.0n"); break;
  651. default: puts ("hppa2.0"); break;
  652. } break;
  653. #else /* !defined(_SC_KERNEL_BITS) */
  654. puts ("hppa2.0"); break;
  655. #endif
  656. default: puts ("hppa1.0"); break;
  657. }
  658. exit (0);
  659. }
  660. EOF
  661. (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  662. test -z "$HP_ARCH" && HP_ARCH=hppa
  663. fi ;;
  664. esac
  665. if [ ${HP_ARCH} = hppa2.0w ]
  666. then
  667. eval $set_cc_for_build
  668. # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  669. # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  670. # generating 64-bit code. GNU and HP use different nomenclature:
  671. #
  672. # $ CC_FOR_BUILD=cc ./config.guess
  673. # => hppa2.0w-hp-hpux11.23
  674. # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  675. # => hppa64-hp-hpux11.23
  676. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  677. grep -q __LP64__
  678. then
  679. HP_ARCH=hppa2.0w
  680. else
  681. HP_ARCH=hppa64
  682. fi
  683. fi
  684. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  685. exit ;;
  686. ia64:HP-UX:*:*)
  687. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  688. echo ia64-hp-hpux${HPUX_REV}
  689. exit ;;
  690. 3050*:HI-UX:*:*)
  691. eval $set_cc_for_build
  692. sed 's/^ //' << EOF >$dummy.c
  693. #include <unistd.h>
  694. int
  695. main ()
  696. {
  697. long cpu = sysconf (_SC_CPU_VERSION);
  698. /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  699. true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  700. results, however. */
  701. if (CPU_IS_PA_RISC (cpu))
  702. {
  703. switch (cpu)
  704. {
  705. case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  706. case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  707. case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  708. default: puts ("hppa-hitachi-hiuxwe2"); break;
  709. }
  710. }
  711. else if (CPU_IS_HP_MC68K (cpu))
  712. puts ("m68k-hitachi-hiuxwe2");
  713. else puts ("unknown-hitachi-hiuxwe2");
  714. exit (0);
  715. }
  716. EOF
  717. $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  718. { echo "$SYSTEM_NAME"; exit; }
  719. echo unknown-hitachi-hiuxwe2
  720. exit ;;
  721. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  722. echo hppa1.1-hp-bsd
  723. exit ;;
  724. 9000/8??:4.3bsd:*:*)
  725. echo hppa1.0-hp-bsd
  726. exit ;;
  727. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  728. echo hppa1.0-hp-mpeix
  729. exit ;;
  730. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  731. echo hppa1.1-hp-osf
  732. exit ;;
  733. hp8??:OSF1:*:*)
  734. echo hppa1.0-hp-osf
  735. exit ;;
  736. i*86:OSF1:*:*)
  737. if [ -x /usr/sbin/sysversion ] ; then
  738. echo ${UNAME_MACHINE}-unknown-osf1mk
  739. else
  740. echo ${UNAME_MACHINE}-unknown-osf1
  741. fi
  742. exit ;;
  743. parisc*:Lites*:*:*)
  744. echo hppa1.1-hp-lites
  745. exit ;;
  746. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  747. echo c1-convex-bsd
  748. exit ;;
  749. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  750. if getsysinfo -f scalar_acc
  751. then echo c32-convex-bsd
  752. else echo c2-convex-bsd
  753. fi
  754. exit ;;
  755. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  756. echo c34-convex-bsd
  757. exit ;;
  758. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  759. echo c38-convex-bsd
  760. exit ;;
  761. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  762. echo c4-convex-bsd
  763. exit ;;
  764. CRAY*Y-MP:*:*:*)
  765. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  766. exit ;;
  767. CRAY*[A-Z]90:*:*:*)
  768. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  769. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  770. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  771. -e 's/\.[^.]*$/.X/'
  772. exit ;;
  773. CRAY*TS:*:*:*)
  774. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  775. exit ;;
  776. CRAY*T3E:*:*:*)
  777. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  778. exit ;;
  779. CRAY*SV1:*:*:*)
  780. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  781. exit ;;
  782. *:UNICOS/mp:*:*)
  783. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  784. exit ;;
  785. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  786. FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
  787. FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
  788. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  789. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  790. exit ;;
  791. 5000:UNIX_System_V:4.*:*)
  792. FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
  793. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
  794. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  795. exit ;;
  796. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  797. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  798. exit ;;
  799. sparc*:BSD/OS:*:*)
  800. echo sparc-unknown-bsdi${UNAME_RELEASE}
  801. exit ;;
  802. *:BSD/OS:*:*)
  803. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  804. exit ;;
  805. *:FreeBSD:*:*)
  806. UNAME_PROCESSOR=`/usr/bin/uname -p`
  807. case ${UNAME_PROCESSOR} in
  808. amd64)
  809. echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  810. *)
  811. echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  812. esac
  813. exit ;;
  814. i*:CYGWIN*:*)
  815. echo ${UNAME_MACHINE}-pc-cygwin
  816. exit ;;
  817. *:MINGW32_NT*:*)
  818. if [ "$PLATFORM" = "X64" ]; then
  819. echo x86_64-pc-mingw32
  820. else
  821. echo ${UNAME_MACHINE}-pc-mingw32
  822. fi
  823. exit ;;
  824. *:MINGW64*:*)
  825. echo ${UNAME_MACHINE}-pc-mingw64
  826. exit ;;
  827. *:MINGW*:*)
  828. echo ${UNAME_MACHINE}-pc-mingw32
  829. exit ;;
  830. *:MSYS*:*)
  831. echo ${UNAME_MACHINE}-pc-msys
  832. exit ;;
  833. i*:windows32*:*)
  834. # uname -m includes "-pc" on this system.
  835. echo ${UNAME_MACHINE}-mingw32
  836. exit ;;
  837. i*:PW*:*)
  838. echo ${UNAME_MACHINE}-pc-pw32
  839. exit ;;
  840. *:Interix*:*)
  841. case ${UNAME_MACHINE} in
  842. x86)
  843. echo i586-pc-interix${UNAME_RELEASE}
  844. exit ;;
  845. authenticamd | genuineintel | EM64T)
  846. echo x86_64-unknown-interix${UNAME_RELEASE}
  847. exit ;;
  848. IA64)
  849. echo ia64-unknown-interix${UNAME_RELEASE}
  850. exit ;;
  851. esac ;;
  852. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  853. echo i${UNAME_MACHINE}-pc-mks
  854. exit ;;
  855. 8664:Windows_NT:*)
  856. echo x86_64-pc-mks
  857. exit ;;
  858. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  859. # How do we know it's Interix rather than the generic POSIX subsystem?
  860. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  861. # UNAME_MACHINE based on the output of uname instead of i386?
  862. echo i586-pc-interix
  863. exit ;;
  864. i*:UWIN*:*)
  865. echo ${UNAME_MACHINE}-pc-uwin
  866. exit ;;
  867. amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  868. echo x86_64-unknown-cygwin
  869. exit ;;
  870. p*:CYGWIN*:*)
  871. echo powerpcle-unknown-cygwin
  872. exit ;;
  873. prep*:SunOS:5.*:*)
  874. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  875. exit ;;
  876. *:GNU:*:*)
  877. # the GNU system
  878. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  879. exit ;;
  880. *:GNU/*:*:*)
  881. # other systems with GNU libc and userland
  882. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
  883. exit ;;
  884. i*86:Minix:*:*)
  885. echo ${UNAME_MACHINE}-pc-minix
  886. exit ;;
  887. aarch64:Linux:*:*)
  888. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  889. exit ;;
  890. aarch64_be:Linux:*:*)
  891. UNAME_MACHINE=aarch64_be
  892. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  893. exit ;;
  894. alpha:Linux:*:*)
  895. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  896. EV5) UNAME_MACHINE=alphaev5 ;;
  897. EV56) UNAME_MACHINE=alphaev56 ;;
  898. PCA56) UNAME_MACHINE=alphapca56 ;;
  899. PCA57) UNAME_MACHINE=alphapca56 ;;
  900. EV6) UNAME_MACHINE=alphaev6 ;;
  901. EV67) UNAME_MACHINE=alphaev67 ;;
  902. EV68*) UNAME_MACHINE=alphaev68 ;;
  903. esac
  904. objdump --private-headers /bin/sh | grep -q ld.so.1
  905. if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
  906. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  907. exit ;;
  908. arc:Linux:*:* | arceb:Linux:*:*)
  909. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  910. exit ;;
  911. arm*:Linux:*:*)
  912. eval $set_cc_for_build
  913. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  914. | grep -q __ARM_EABI__
  915. then
  916. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  917. else
  918. if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
  919. | grep -q __ARM_PCS_VFP
  920. then
  921. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  922. else
  923. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
  924. fi
  925. fi
  926. exit ;;
  927. avr32*:Linux:*:*)
  928. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  929. exit ;;
  930. cris:Linux:*:*)
  931. echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  932. exit ;;
  933. crisv32:Linux:*:*)
  934. echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  935. exit ;;
  936. e2k:Linux:*:*)
  937. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  938. exit ;;
  939. frv:Linux:*:*)
  940. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  941. exit ;;
  942. hexagon:Linux:*:*)
  943. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  944. exit ;;
  945. i*86:Linux:*:*)
  946. echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  947. exit ;;
  948. ia64:Linux:*:*)
  949. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  950. exit ;;
  951. k1om:Linux:*:*)
  952. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  953. exit ;;
  954. m32r*:Linux:*:*)
  955. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  956. exit ;;
  957. m68*:Linux:*:*)
  958. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  959. exit ;;
  960. mips:Linux:*:* | mips64:Linux:*:*)
  961. eval $set_cc_for_build
  962. sed 's/^ //' << EOF >$dummy.c
  963. #undef CPU
  964. #undef ${UNAME_MACHINE}
  965. #undef ${UNAME_MACHINE}el
  966. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  967. CPU=${UNAME_MACHINE}el
  968. #else
  969. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  970. CPU=${UNAME_MACHINE}
  971. #else
  972. CPU=
  973. #endif
  974. #endif
  975. EOF
  976. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
  977. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  978. ;;
  979. openrisc*:Linux:*:*)
  980. echo or1k-unknown-linux-${LIBC}
  981. exit ;;
  982. or32:Linux:*:* | or1k*:Linux:*:*)
  983. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  984. exit ;;
  985. padre:Linux:*:*)
  986. echo sparc-unknown-linux-${LIBC}
  987. exit ;;
  988. parisc64:Linux:*:* | hppa64:Linux:*:*)
  989. echo hppa64-unknown-linux-${LIBC}
  990. exit ;;
  991. parisc:Linux:*:* | hppa:Linux:*:*)
  992. # Look for CPU level
  993. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  994. PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  995. PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  996. *) echo hppa-unknown-linux-${LIBC} ;;
  997. esac
  998. exit ;;
  999. ppc64:Linux:*:*)
  1000. echo powerpc64-unknown-linux-${LIBC}
  1001. exit ;;
  1002. ppc:Linux:*:*)
  1003. echo powerpc-unknown-linux-${LIBC}
  1004. exit ;;
  1005. ppc64le:Linux:*:*)
  1006. echo powerpc64le-unknown-linux-${LIBC}
  1007. exit ;;
  1008. ppcle:Linux:*:*)
  1009. echo powerpcle-unknown-linux-${LIBC}
  1010. exit ;;
  1011. s390:Linux:*:* | s390x:Linux:*:*)
  1012. echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
  1013. exit ;;
  1014. sh64*:Linux:*:*)
  1015. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1016. exit ;;
  1017. sh*:Linux:*:*)
  1018. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1019. exit ;;
  1020. sparc:Linux:*:* | sparc64:Linux:*:*)
  1021. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1022. exit ;;
  1023. tile*:Linux:*:*)
  1024. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1025. exit ;;
  1026. vax:Linux:*:*)
  1027. echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  1028. exit ;;
  1029. x86_64:Linux:*:*)
  1030. echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  1031. exit ;;
  1032. xtensa*:Linux:*:*)
  1033. echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1034. exit ;;
  1035. i*86:DYNIX/ptx:4*:*)
  1036. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  1037. # earlier versions are messed up and put the nodename in both
  1038. # sysname and nodename.
  1039. echo i386-sequent-sysv4
  1040. exit ;;
  1041. i*86:UNIX_SV:4.2MP:2.*)
  1042. # Unixware is an offshoot of SVR4, but it has its own version
  1043. # number series starting with 2...
  1044. # I am not positive that other SVR4 systems won't match this,
  1045. # I just have to hope. -- rms.
  1046. # Use sysv4.2uw... so that sysv4* matches it.
  1047. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  1048. exit ;;
  1049. i*86:OS/2:*:*)
  1050. # If we were able to find `uname', then EMX Unix compatibility
  1051. # is probably installed.
  1052. echo ${UNAME_MACHINE}-pc-os2-emx
  1053. exit ;;
  1054. i*86:XTS-300:*:STOP)
  1055. echo ${UNAME_MACHINE}-unknown-stop
  1056. exit ;;
  1057. i*86:atheos:*:*)
  1058. echo ${UNAME_MACHINE}-unknown-atheos
  1059. exit ;;
  1060. i*86:syllable:*:*)
  1061. echo ${UNAME_MACHINE}-pc-syllable
  1062. exit ;;
  1063. i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  1064. echo i386-unknown-lynxos${UNAME_RELEASE}
  1065. exit ;;
  1066. i*86:*DOS:*:*)
  1067. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  1068. exit ;;
  1069. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  1070. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  1071. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  1072. echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  1073. else
  1074. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  1075. fi
  1076. exit ;;
  1077. i*86:*:5:[678]*)
  1078. # UnixWare 7.x, OpenUNIX and OpenServer 6.
  1079. case `/bin/uname -X | grep "^Machine"` in
  1080. *486*) UNAME_MACHINE=i486 ;;
  1081. *Pentium) UNAME_MACHINE=i586 ;;
  1082. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  1083. esac
  1084. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  1085. exit ;;
  1086. i*86:*:3.2:*)
  1087. if test -f /usr/options/cb.name; then
  1088. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  1089. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  1090. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  1091. UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  1092. (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  1093. (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  1094. && UNAME_MACHINE=i586
  1095. (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  1096. && UNAME_MACHINE=i686
  1097. (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  1098. && UNAME_MACHINE=i686
  1099. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  1100. else
  1101. echo ${UNAME_MACHINE}-pc-sysv32
  1102. fi
  1103. exit ;;
  1104. pc:*:*:*)
  1105. # Left here for compatibility:
  1106. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1107. # the processor, so we play safe by assuming i586.
  1108. # Note: whatever this is, it MUST be the same as what config.sub
  1109. # prints for the "djgpp" host, or else GDB configure will decide that
  1110. # this is a cross-build.
  1111. echo i586-pc-msdosdjgpp
  1112. exit ;;
  1113. Intel:Mach:3*:*)
  1114. echo i386-pc-mach3
  1115. exit ;;
  1116. paragon:*:*:*)
  1117. echo i860-intel-osf1
  1118. exit ;;
  1119. i860:*:4.*:*) # i860-SVR4
  1120. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  1121. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  1122. else # Add other i860-SVR4 vendors below as they are discovered.
  1123. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  1124. fi
  1125. exit ;;
  1126. mini*:CTIX:SYS*5:*)
  1127. # "miniframe"
  1128. echo m68010-convergent-sysv
  1129. exit ;;
  1130. mc68k:UNIX:SYSTEM5:3.51m)
  1131. echo m68k-convergent-sysv
  1132. exit ;;
  1133. M680?0:D-NIX:5.3:*)
  1134. echo m68k-diab-dnix
  1135. exit ;;
  1136. M68*:*:R3V[5678]*:*)
  1137. test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  1138. 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)
  1139. OS_REL=''
  1140. test -r /etc/.relid \
  1141. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1142. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1143. && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  1144. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1145. && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  1146. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1147. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1148. && { echo i486-ncr-sysv4; exit; } ;;
  1149. NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  1150. OS_REL='.3'
  1151. test -r /etc/.relid \
  1152. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1153. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1154. && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  1155. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1156. && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  1157. /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  1158. && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  1159. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  1160. echo m68k-unknown-lynxos${UNAME_RELEASE}
  1161. exit ;;
  1162. mc68030:UNIX_System_V:4.*:*)
  1163. echo m68k-atari-sysv4
  1164. exit ;;
  1165. TSUNAMI:LynxOS:2.*:*)
  1166. echo sparc-unknown-lynxos${UNAME_RELEASE}
  1167. exit ;;
  1168. rs6000:LynxOS:2.*:*)
  1169. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1170. exit ;;
  1171. PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  1172. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1173. exit ;;
  1174. SM[BE]S:UNIX_SV:*:*)
  1175. echo mips-dde-sysv${UNAME_RELEASE}
  1176. exit ;;
  1177. RM*:ReliantUNIX-*:*:*)
  1178. echo mips-sni-sysv4
  1179. exit ;;
  1180. RM*:SINIX-*:*:*)
  1181. echo mips-sni-sysv4
  1182. exit ;;
  1183. *:SINIX-*:*:*)
  1184. if uname -p 2>/dev/null >/dev/null ; then
  1185. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1186. echo ${UNAME_MACHINE}-sni-sysv4
  1187. else
  1188. echo ns32k-sni-sysv
  1189. fi
  1190. exit ;;
  1191. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1192. # says <Richard.M.Bartel@ccMail.Census.GOV>
  1193. echo i586-unisys-sysv4
  1194. exit ;;
  1195. *:UNIX_System_V:4*:FTX*)
  1196. # From Gerald Hewes <hewes@openmarket.com>.
  1197. # How about differentiating between stratus architectures? -djm
  1198. echo hppa1.1-stratus-sysv4
  1199. exit ;;
  1200. *:*:*:FTX*)
  1201. # From seanf@swdc.stratus.com.
  1202. echo i860-stratus-sysv4
  1203. exit ;;
  1204. i*86:VOS:*:*)
  1205. # From Paul.Green@stratus.com.
  1206. echo ${UNAME_MACHINE}-stratus-vos
  1207. exit ;;
  1208. *:VOS:*:*)
  1209. # From Paul.Green@stratus.com.
  1210. echo hppa1.1-stratus-vos
  1211. exit ;;
  1212. mc68*:A/UX:*:*)
  1213. echo m68k-apple-aux${UNAME_RELEASE}
  1214. exit ;;
  1215. news*:NEWS-OS:6*:*)
  1216. echo mips-sony-newsos6
  1217. exit ;;
  1218. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1219. if [ -d /usr/nec ]; then
  1220. echo mips-nec-sysv${UNAME_RELEASE}
  1221. else
  1222. echo mips-unknown-sysv${UNAME_RELEASE}
  1223. fi
  1224. exit ;;
  1225. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  1226. echo powerpc-be-beos
  1227. exit ;;
  1228. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  1229. echo powerpc-apple-beos
  1230. exit ;;
  1231. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  1232. echo i586-pc-beos
  1233. exit ;;
  1234. BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  1235. echo i586-pc-haiku
  1236. exit ;;
  1237. x86_64:Haiku:*:*)
  1238. echo x86_64-unknown-haiku
  1239. exit ;;
  1240. SX-4:SUPER-UX:*:*)
  1241. echo sx4-nec-superux${UNAME_RELEASE}
  1242. exit ;;
  1243. SX-5:SUPER-UX:*:*)
  1244. echo sx5-nec-superux${UNAME_RELEASE}
  1245. exit ;;
  1246. SX-6:SUPER-UX:*:*)
  1247. echo sx6-nec-superux${UNAME_RELEASE}
  1248. exit ;;
  1249. SX-7:SUPER-UX:*:*)
  1250. echo sx7-nec-superux${UNAME_RELEASE}
  1251. exit ;;
  1252. SX-8:SUPER-UX:*:*)
  1253. echo sx8-nec-superux${UNAME_RELEASE}
  1254. exit ;;
  1255. SX-8R:SUPER-UX:*:*)
  1256. echo sx8r-nec-superux${UNAME_RELEASE}
  1257. exit ;;
  1258. SX-ACE:SUPER-UX:*:*)
  1259. echo sxace-nec-superux${UNAME_RELEASE}
  1260. exit ;;
  1261. Power*:Rhapsody:*:*)
  1262. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1263. exit ;;
  1264. *:Rhapsody:*:*)
  1265. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1266. exit ;;
  1267. *:Darwin:*:*)
  1268. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1269. eval $set_cc_for_build
  1270. if test "$UNAME_PROCESSOR" = unknown ; then
  1271. UNAME_PROCESSOR=powerpc
  1272. fi
  1273. if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
  1274. if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
  1275. if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  1276. (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  1277. grep IS_64BIT_ARCH >/dev/null
  1278. then
  1279. case $UNAME_PROCESSOR in
  1280. i386) UNAME_PROCESSOR=x86_64 ;;
  1281. powerpc) UNAME_PROCESSOR=powerpc64 ;;
  1282. esac
  1283. fi
  1284. fi
  1285. elif test "$UNAME_PROCESSOR" = i386 ; then
  1286. # Avoid executing cc on OS X 10.9, as it ships with a stub
  1287. # that puts up a graphical alert prompting to install
  1288. # developer tools. Any system running Mac OS X 10.7 or
  1289. # later (Darwin 11 and later) is required to have a 64-bit
  1290. # processor. This is not true of the ARM version of Darwin
  1291. # that Apple uses in portable devices.
  1292. UNAME_PROCESSOR=x86_64
  1293. fi
  1294. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1295. exit ;;
  1296. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1297. UNAME_PROCESSOR=`uname -p`
  1298. if test "$UNAME_PROCESSOR" = x86; then
  1299. UNAME_PROCESSOR=i386
  1300. UNAME_MACHINE=pc
  1301. fi
  1302. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1303. exit ;;
  1304. *:QNX:*:4*)
  1305. echo i386-pc-qnx
  1306. exit ;;
  1307. NEO-?:NONSTOP_KERNEL:*:*)
  1308. echo neo-tandem-nsk${UNAME_RELEASE}
  1309. exit ;;
  1310. NSE-*:NONSTOP_KERNEL:*:*)
  1311. echo nse-tandem-nsk${UNAME_RELEASE}
  1312. exit ;;
  1313. NSR-?:NONSTOP_KERNEL:*:*)
  1314. echo nsr-tandem-nsk${UNAME_RELEASE}
  1315. exit ;;
  1316. *:NonStop-UX:*:*)
  1317. echo mips-compaq-nonstopux
  1318. exit ;;
  1319. BS2000:POSIX*:*:*)
  1320. echo bs2000-siemens-sysv
  1321. exit ;;
  1322. DS/*:UNIX_System_V:*:*)
  1323. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1324. exit ;;
  1325. *:Plan9:*:*)
  1326. # "uname -m" is not consistent, so use $cputype instead. 386
  1327. # is converted to i386 for consistency with other x86
  1328. # operating systems.
  1329. if test "$cputype" = 386; then
  1330. UNAME_MACHINE=i386
  1331. else
  1332. UNAME_MACHINE="$cputype"
  1333. fi
  1334. echo ${UNAME_MACHINE}-unknown-plan9
  1335. exit ;;
  1336. *:TOPS-10:*:*)
  1337. echo pdp10-unknown-tops10
  1338. exit ;;
  1339. *:TENEX:*:*)
  1340. echo pdp10-unknown-tenex
  1341. exit ;;
  1342. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1343. echo pdp10-dec-tops20
  1344. exit ;;
  1345. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1346. echo pdp10-xkl-tops20
  1347. exit ;;
  1348. *:TOPS-20:*:*)
  1349. echo pdp10-unknown-tops20
  1350. exit ;;
  1351. *:ITS:*:*)
  1352. echo pdp10-unknown-its
  1353. exit ;;
  1354. SEI:*:*:SEIUX)
  1355. echo mips-sei-seiux${UNAME_RELEASE}
  1356. exit ;;
  1357. *:DragonFly:*:*)
  1358. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1359. exit ;;
  1360. *:*VMS:*:*)
  1361. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1362. case "${UNAME_MACHINE}" in
  1363. A*) echo alpha-dec-vms ; exit ;;
  1364. I*) echo ia64-dec-vms ; exit ;;
  1365. V*) echo vax-dec-vms ; exit ;;
  1366. esac ;;
  1367. *:XENIX:*:SysV)
  1368. echo i386-pc-xenix
  1369. exit ;;
  1370. i*86:skyos:*:*)
  1371. echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  1372. exit ;;
  1373. i*86:rdos:*:*)
  1374. echo ${UNAME_MACHINE}-pc-rdos
  1375. exit ;;
  1376. i*86:AROS:*:*)
  1377. echo ${UNAME_MACHINE}-pc-aros
  1378. exit ;;
  1379. x86_64:VMkernel:*:*)
  1380. echo ${UNAME_MACHINE}-unknown-esx
  1381. exit ;;
  1382. amd64:Isilon\ OneFS:*:*)
  1383. echo x86_64-unknown-onefs
  1384. exit ;;
  1385. esac
  1386. cat >&2 <<EOF
  1387. $0: unable to guess system type
  1388. This script, last modified $timestamp, has failed to recognize
  1389. the operating system you are using. It is advised that you
  1390. download the most up to date version of the config scripts from
  1391. http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
  1392. and
  1393. http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
  1394. If the version you run ($0) is already up to date, please
  1395. send the following data and any information you think might be
  1396. pertinent to <config-patches@gnu.org> in order to provide the needed
  1397. information to handle your system.
  1398. config.guess timestamp = $timestamp
  1399. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1400. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1401. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1402. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1403. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  1404. /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  1405. hostinfo = `(hostinfo) 2>/dev/null`
  1406. /bin/universe = `(/bin/universe) 2>/dev/null`
  1407. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  1408. /bin/arch = `(/bin/arch) 2>/dev/null`
  1409. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  1410. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  1411. UNAME_MACHINE = ${UNAME_MACHINE}
  1412. UNAME_RELEASE = ${UNAME_RELEASE}
  1413. UNAME_SYSTEM = ${UNAME_SYSTEM}
  1414. UNAME_VERSION = ${UNAME_VERSION}
  1415. EOF
  1416. exit 1
  1417. # Local variables:
  1418. # eval: (add-hook 'write-file-hooks 'time-stamp)
  1419. # time-stamp-start: "timestamp='"
  1420. # time-stamp-format: "%:y-%02m-%02d"
  1421. # time-stamp-end: "'"
  1422. # End: