1
0

config.guess 42 KB

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