config.guess 42 KB

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