gnu-os 42 KB

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