config.guess 43 KB

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