config.guess 43 KB

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