config.guess 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453
  1. #! /bin/sh
  2. # Attempt to guess a canonical system name.
  3. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  4. # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  5. timestamp='2004-11-12'
  6. # This file is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. # General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19. #
  20. # As a special exception to the GNU General Public License, if you
  21. # distribute this file as part of a program that contains a
  22. # configuration script generated by Autoconf, you may include it under
  23. # the same distribution terms that you use for the rest of that program.
  24. # Originally written by Per Bothner <per@bothner.com>.
  25. # Please send patches to <config-patches@gnu.org>. Submit a context
  26. # diff and a properly formatted ChangeLog entry.
  27. #
  28. # This script attempts to guess a canonical system name similar to
  29. # config.sub. If it succeeds, it prints the system name on stdout, and
  30. # exits with 0. Otherwise, it exits with 1.
  31. #
  32. # The plan is that this can be called by configure scripts if you
  33. # don't specify an explicit build system type.
  34. me=`echo "$0" | sed -e 's,.*/,,'`
  35. usage="\
  36. Usage: $0 [OPTION]
  37. Output the configuration name of the system \`$me' is run on.
  38. Operation modes:
  39. -h, --help print this help, then exit
  40. -t, --time-stamp print date of last modification, then exit
  41. -v, --version print version number, then exit
  42. Report bugs and patches to <config-patches@gnu.org>."
  43. version="\
  44. GNU config.guess ($timestamp)
  45. Originally written by Per Bothner.
  46. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  47. Free Software Foundation, Inc.
  48. This is free software; see the source for copying conditions. There is NO
  49. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  50. help="
  51. Try \`$me --help' for more information."
  52. # Parse command line
  53. while test $# -gt 0 ; do
  54. case $1 in
  55. --time-stamp | --time* | -t )
  56. echo "$timestamp" ; exit 0 ;;
  57. --version | -v )
  58. echo "$version" ; exit 0 ;;
  59. --help | --h* | -h )
  60. echo "$usage"; exit 0 ;;
  61. -- ) # Stop option processing
  62. shift; break ;;
  63. - ) # Use stdin as input.
  64. break ;;
  65. -* )
  66. echo "$me: invalid option $1$help" >&2
  67. exit 1 ;;
  68. * )
  69. break ;;
  70. esac
  71. done
  72. if test $# != 0; then
  73. echo "$me: too many arguments$help" >&2
  74. exit 1
  75. fi
  76. trap 'exit 1' 1 2 15
  77. # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  78. # compiler to aid in system detection is discouraged as it requires
  79. # temporary files to be created and, as you can see below, it is a
  80. # headache to deal with in a portable fashion.
  81. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  82. # use `HOST_CC' if defined, but it is deprecated.
  83. # Portable tmp directory creation inspired by the Autoconf team.
  84. set_cc_for_build='
  85. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  86. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  87. : ${TMPDIR=/tmp} ;
  88. { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  89. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  90. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  91. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  92. dummy=$tmp/dummy ;
  93. tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  94. case $CC_FOR_BUILD,$HOST_CC,$CC in
  95. ,,) echo "int x;" > $dummy.c ;
  96. for c in cc gcc c89 c99 ; do
  97. if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  98. CC_FOR_BUILD="$c"; break ;
  99. fi ;
  100. done ;
  101. if test x"$CC_FOR_BUILD" = x ; then
  102. CC_FOR_BUILD=no_compiler_found ;
  103. fi
  104. ;;
  105. ,,*) CC_FOR_BUILD=$CC ;;
  106. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  107. esac ;'
  108. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  109. # (ghazi@noc.rutgers.edu 1994-08-24)
  110. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  111. PATH=$PATH:/.attbin ; export PATH
  112. fi
  113. UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  114. UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  115. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  116. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  117. # 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. p*:CYGWIN*:*)
  781. echo powerpcle-unknown-cygwin
  782. exit 0 ;;
  783. prep*:SunOS:5.*:*)
  784. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  785. exit 0 ;;
  786. *:GNU:*:*)
  787. # the GNU system
  788. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  789. exit 0 ;;
  790. *:GNU/*:*:*)
  791. # other systems with GNU libc and userland
  792. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  793. exit 0 ;;
  794. i*86:Minix:*:*)
  795. echo ${UNAME_MACHINE}-pc-minix
  796. exit 0 ;;
  797. arm*:Linux:*:*)
  798. echo ${UNAME_MACHINE}-unknown-linux-gnu
  799. exit 0 ;;
  800. cris:Linux:*:*)
  801. echo cris-axis-linux-gnu
  802. exit 0 ;;
  803. crisv32:Linux:*:*)
  804. echo crisv32-axis-linux-gnu
  805. exit 0 ;;
  806. frv:Linux:*:*)
  807. echo frv-unknown-linux-gnu
  808. exit 0 ;;
  809. ia64:Linux:*:*)
  810. echo ${UNAME_MACHINE}-unknown-linux-gnu
  811. exit 0 ;;
  812. m32r*:Linux:*:*)
  813. echo ${UNAME_MACHINE}-unknown-linux-gnu
  814. exit 0 ;;
  815. m68*:Linux:*:*)
  816. echo ${UNAME_MACHINE}-unknown-linux-gnu
  817. exit 0 ;;
  818. mips:Linux:*:*)
  819. eval $set_cc_for_build
  820. sed 's/^ //' << EOF >$dummy.c
  821. #undef CPU
  822. #undef mips
  823. #undef mipsel
  824. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  825. CPU=mipsel
  826. #else
  827. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  828. CPU=mips
  829. #else
  830. CPU=
  831. #endif
  832. #endif
  833. EOF
  834. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  835. test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  836. ;;
  837. mips64:Linux:*:*)
  838. eval $set_cc_for_build
  839. sed 's/^ //' << EOF >$dummy.c
  840. #undef CPU
  841. #undef mips64
  842. #undef mips64el
  843. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  844. CPU=mips64el
  845. #else
  846. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  847. CPU=mips64
  848. #else
  849. CPU=
  850. #endif
  851. #endif
  852. EOF
  853. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  854. test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  855. ;;
  856. ppc:Linux:*:*)
  857. echo powerpc-unknown-linux-gnu
  858. exit 0 ;;
  859. ppc64:Linux:*:*)
  860. echo powerpc64-unknown-linux-gnu
  861. exit 0 ;;
  862. alpha:Linux:*:*)
  863. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  864. EV5) UNAME_MACHINE=alphaev5 ;;
  865. EV56) UNAME_MACHINE=alphaev56 ;;
  866. PCA56) UNAME_MACHINE=alphapca56 ;;
  867. PCA57) UNAME_MACHINE=alphapca56 ;;
  868. EV6) UNAME_MACHINE=alphaev6 ;;
  869. EV67) UNAME_MACHINE=alphaev67 ;;
  870. EV68*) UNAME_MACHINE=alphaev68 ;;
  871. esac
  872. objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  873. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  874. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  875. exit 0 ;;
  876. parisc:Linux:*:* | hppa:Linux:*:*)
  877. # Look for CPU level
  878. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  879. PA7*) echo hppa1.1-unknown-linux-gnu ;;
  880. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  881. *) echo hppa-unknown-linux-gnu ;;
  882. esac
  883. exit 0 ;;
  884. parisc64:Linux:*:* | hppa64:Linux:*:*)
  885. echo hppa64-unknown-linux-gnu
  886. exit 0 ;;
  887. s390:Linux:*:* | s390x:Linux:*:*)
  888. echo ${UNAME_MACHINE}-ibm-linux
  889. exit 0 ;;
  890. sh64*:Linux:*:*)
  891. echo ${UNAME_MACHINE}-unknown-linux-gnu
  892. exit 0 ;;
  893. sh*:Linux:*:*)
  894. echo ${UNAME_MACHINE}-unknown-linux-gnu
  895. exit 0 ;;
  896. sparc:Linux:*:* | sparc64:Linux:*:*)
  897. echo ${UNAME_MACHINE}-unknown-linux-gnu
  898. exit 0 ;;
  899. x86_64:Linux:*:*)
  900. echo x86_64-unknown-linux-gnu
  901. exit 0 ;;
  902. i*86:Linux:*:*)
  903. # The BFD linker knows what the default object file format is, so
  904. # first see if it will tell us. cd to the root directory to prevent
  905. # problems with other programs or directories called `ld' in the path.
  906. # Set LC_ALL=C to ensure ld outputs messages in English.
  907. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  908. | sed -ne '/supported targets:/!d
  909. s/[ ][ ]*/ /g
  910. s/.*supported targets: *//
  911. s/ .*//
  912. p'`
  913. case "$ld_supported_targets" in
  914. elf32-i386)
  915. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  916. ;;
  917. a.out-i386-linux)
  918. echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  919. exit 0 ;;
  920. coff-i386)
  921. echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  922. exit 0 ;;
  923. "")
  924. # Either a pre-BFD a.out linker (linux-gnuoldld) or
  925. # one that does not give us useful --help.
  926. echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  927. exit 0 ;;
  928. esac
  929. # Determine whether the default compiler is a.out or elf
  930. eval $set_cc_for_build
  931. sed 's/^ //' << EOF >$dummy.c
  932. #include <features.h>
  933. #ifdef __ELF__
  934. # ifdef __GLIBC__
  935. # if __GLIBC__ >= 2
  936. LIBC=gnu
  937. # else
  938. LIBC=gnulibc1
  939. # endif
  940. # else
  941. LIBC=gnulibc1
  942. # endif
  943. #else
  944. #ifdef __INTEL_COMPILER
  945. LIBC=gnu
  946. #else
  947. LIBC=gnuaout
  948. #endif
  949. #endif
  950. #ifdef __dietlibc__
  951. LIBC=dietlibc
  952. #endif
  953. EOF
  954. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  955. test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  956. test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  957. ;;
  958. i*86:DYNIX/ptx:4*:*)
  959. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  960. # earlier versions are messed up and put the nodename in both
  961. # sysname and nodename.
  962. echo i386-sequent-sysv4
  963. exit 0 ;;
  964. i*86:UNIX_SV:4.2MP:2.*)
  965. # Unixware is an offshoot of SVR4, but it has its own version
  966. # number series starting with 2...
  967. # I am not positive that other SVR4 systems won't match this,
  968. # I just have to hope. -- rms.
  969. # Use sysv4.2uw... so that sysv4* matches it.
  970. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  971. exit 0 ;;
  972. i*86:OS/2:*:*)
  973. # If we were able to find `uname', then EMX Unix compatibility
  974. # is probably installed.
  975. echo ${UNAME_MACHINE}-pc-os2-emx
  976. exit 0 ;;
  977. i*86:XTS-300:*:STOP)
  978. echo ${UNAME_MACHINE}-unknown-stop
  979. exit 0 ;;
  980. i*86:atheos:*:*)
  981. echo ${UNAME_MACHINE}-unknown-atheos
  982. exit 0 ;;
  983. i*86:syllable:*:*)
  984. echo ${UNAME_MACHINE}-pc-syllable
  985. exit 0 ;;
  986. i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  987. echo i386-unknown-lynxos${UNAME_RELEASE}
  988. exit 0 ;;
  989. i*86:*DOS:*:*)
  990. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  991. exit 0 ;;
  992. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  993. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  994. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  995. echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  996. else
  997. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  998. fi
  999. exit 0 ;;
  1000. i*86:*:5:[78]*)
  1001. case `/bin/uname -X | grep "^Machine"` in
  1002. *486*) UNAME_MACHINE=i486 ;;
  1003. *Pentium) UNAME_MACHINE=i586 ;;
  1004. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  1005. esac
  1006. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  1007. exit 0 ;;
  1008. i*86:*:3.2:*)
  1009. if test -f /usr/options/cb.name; then
  1010. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  1011. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  1012. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  1013. UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  1014. (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  1015. (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  1016. && UNAME_MACHINE=i586
  1017. (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  1018. && UNAME_MACHINE=i686
  1019. (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  1020. && UNAME_MACHINE=i686
  1021. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  1022. else
  1023. echo ${UNAME_MACHINE}-pc-sysv32
  1024. fi
  1025. exit 0 ;;
  1026. pc:*:*:*)
  1027. # Left here for compatibility:
  1028. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1029. # the processor, so we play safe by assuming i386.
  1030. echo i386-pc-msdosdjgpp
  1031. exit 0 ;;
  1032. Intel:Mach:3*:*)
  1033. echo i386-pc-mach3
  1034. exit 0 ;;
  1035. paragon:*:*:*)
  1036. echo i860-intel-osf1
  1037. exit 0 ;;
  1038. i860:*:4.*:*) # i860-SVR4
  1039. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  1040. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  1041. else # Add other i860-SVR4 vendors below as they are discovered.
  1042. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  1043. fi
  1044. exit 0 ;;
  1045. mini*:CTIX:SYS*5:*)
  1046. # "miniframe"
  1047. echo m68010-convergent-sysv
  1048. exit 0 ;;
  1049. mc68k:UNIX:SYSTEM5:3.51m)
  1050. echo m68k-convergent-sysv
  1051. exit 0 ;;
  1052. M680?0:D-NIX:5.3:*)
  1053. echo m68k-diab-dnix
  1054. exit 0 ;;
  1055. M68*:*:R3V[5678]*:*)
  1056. test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  1057. 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)
  1058. OS_REL=''
  1059. test -r /etc/.relid \
  1060. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1061. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1062. && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  1063. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1064. && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  1065. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1066. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1067. && echo i486-ncr-sysv4 && exit 0 ;;
  1068. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  1069. echo m68k-unknown-lynxos${UNAME_RELEASE}
  1070. exit 0 ;;
  1071. mc68030:UNIX_System_V:4.*:*)
  1072. echo m68k-atari-sysv4
  1073. exit 0 ;;
  1074. TSUNAMI:LynxOS:2.*:*)
  1075. echo sparc-unknown-lynxos${UNAME_RELEASE}
  1076. exit 0 ;;
  1077. rs6000:LynxOS:2.*:*)
  1078. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1079. exit 0 ;;
  1080. PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1081. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1082. exit 0 ;;
  1083. SM[BE]S:UNIX_SV:*:*)
  1084. echo mips-dde-sysv${UNAME_RELEASE}
  1085. exit 0 ;;
  1086. RM*:ReliantUNIX-*:*:*)
  1087. echo mips-sni-sysv4
  1088. exit 0 ;;
  1089. RM*:SINIX-*:*:*)
  1090. echo mips-sni-sysv4
  1091. exit 0 ;;
  1092. *:SINIX-*:*:*)
  1093. if uname -p 2>/dev/null >/dev/null ; then
  1094. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1095. echo ${UNAME_MACHINE}-sni-sysv4
  1096. else
  1097. echo ns32k-sni-sysv
  1098. fi
  1099. exit 0 ;;
  1100. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1101. # says <Richard.M.Bartel@ccMail.Census.GOV>
  1102. echo i586-unisys-sysv4
  1103. exit 0 ;;
  1104. *:UNIX_System_V:4*:FTX*)
  1105. # From Gerald Hewes <hewes@openmarket.com>.
  1106. # How about differentiating between stratus architectures? -djm
  1107. echo hppa1.1-stratus-sysv4
  1108. exit 0 ;;
  1109. *:*:*:FTX*)
  1110. # From seanf@swdc.stratus.com.
  1111. echo i860-stratus-sysv4
  1112. exit 0 ;;
  1113. *:VOS:*:*)
  1114. # From Paul.Green@stratus.com.
  1115. echo hppa1.1-stratus-vos
  1116. exit 0 ;;
  1117. mc68*:A/UX:*:*)
  1118. echo m68k-apple-aux${UNAME_RELEASE}
  1119. exit 0 ;;
  1120. news*:NEWS-OS:6*:*)
  1121. echo mips-sony-newsos6
  1122. exit 0 ;;
  1123. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1124. if [ -d /usr/nec ]; then
  1125. echo mips-nec-sysv${UNAME_RELEASE}
  1126. else
  1127. echo mips-unknown-sysv${UNAME_RELEASE}
  1128. fi
  1129. exit 0 ;;
  1130. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  1131. echo powerpc-be-beos
  1132. exit 0 ;;
  1133. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  1134. echo powerpc-apple-beos
  1135. exit 0 ;;
  1136. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  1137. echo i586-pc-beos
  1138. exit 0 ;;
  1139. SX-4:SUPER-UX:*:*)
  1140. echo sx4-nec-superux${UNAME_RELEASE}
  1141. exit 0 ;;
  1142. SX-5:SUPER-UX:*:*)
  1143. echo sx5-nec-superux${UNAME_RELEASE}
  1144. exit 0 ;;
  1145. SX-6:SUPER-UX:*:*)
  1146. echo sx6-nec-superux${UNAME_RELEASE}
  1147. exit 0 ;;
  1148. Power*:Rhapsody:*:*)
  1149. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1150. exit 0 ;;
  1151. *:Rhapsody:*:*)
  1152. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1153. exit 0 ;;
  1154. *:Darwin:*:*)
  1155. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1156. case $UNAME_PROCESSOR in
  1157. *86) UNAME_PROCESSOR=i686 ;;
  1158. unknown) UNAME_PROCESSOR=powerpc ;;
  1159. esac
  1160. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1161. exit 0 ;;
  1162. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1163. UNAME_PROCESSOR=`uname -p`
  1164. if test "$UNAME_PROCESSOR" = "x86"; then
  1165. UNAME_PROCESSOR=i386
  1166. UNAME_MACHINE=pc
  1167. fi
  1168. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1169. exit 0 ;;
  1170. *:QNX:*:4*)
  1171. echo i386-pc-qnx
  1172. exit 0 ;;
  1173. NSR-?:NONSTOP_KERNEL:*:*)
  1174. echo nsr-tandem-nsk${UNAME_RELEASE}
  1175. exit 0 ;;
  1176. *:NonStop-UX:*:*)
  1177. echo mips-compaq-nonstopux
  1178. exit 0 ;;
  1179. BS2000:POSIX*:*:*)
  1180. echo bs2000-siemens-sysv
  1181. exit 0 ;;
  1182. DS/*:UNIX_System_V:*:*)
  1183. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1184. exit 0 ;;
  1185. *:Plan9:*:*)
  1186. # "uname -m" is not consistent, so use $cputype instead. 386
  1187. # is converted to i386 for consistency with other x86
  1188. # operating systems.
  1189. if test "$cputype" = "386"; then
  1190. UNAME_MACHINE=i386
  1191. else
  1192. UNAME_MACHINE="$cputype"
  1193. fi
  1194. echo ${UNAME_MACHINE}-unknown-plan9
  1195. exit 0 ;;
  1196. *:TOPS-10:*:*)
  1197. echo pdp10-unknown-tops10
  1198. exit 0 ;;
  1199. *:TENEX:*:*)
  1200. echo pdp10-unknown-tenex
  1201. exit 0 ;;
  1202. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1203. echo pdp10-dec-tops20
  1204. exit 0 ;;
  1205. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1206. echo pdp10-xkl-tops20
  1207. exit 0 ;;
  1208. *:TOPS-20:*:*)
  1209. echo pdp10-unknown-tops20
  1210. exit 0 ;;
  1211. *:ITS:*:*)
  1212. echo pdp10-unknown-its
  1213. exit 0 ;;
  1214. SEI:*:*:SEIUX)
  1215. echo mips-sei-seiux${UNAME_RELEASE}
  1216. exit 0 ;;
  1217. *:DragonFly:*:*)
  1218. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1219. exit 0 ;;
  1220. *:*VMS:*:*)
  1221. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1222. case "${UNAME_MACHINE}" in
  1223. A*) echo alpha-dec-vms && exit 0 ;;
  1224. I*) echo ia64-dec-vms && exit 0 ;;
  1225. V*) echo vax-dec-vms && exit 0 ;;
  1226. esac ;;
  1227. *:XENIX:*:SysV)
  1228. echo i386-pc-xenix
  1229. exit 0 ;;
  1230. esac
  1231. #echo '(No uname command or uname output not recognized.)' 1>&2
  1232. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1233. eval $set_cc_for_build
  1234. cat >$dummy.c <<EOF
  1235. #ifdef _SEQUENT_
  1236. # include <sys/types.h>
  1237. # include <sys/utsname.h>
  1238. #endif
  1239. main ()
  1240. {
  1241. #if defined (sony)
  1242. #if defined (MIPSEB)
  1243. /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  1244. I don't know.... */
  1245. printf ("mips-sony-bsd\n"); exit (0);
  1246. #else
  1247. #include <sys/param.h>
  1248. printf ("m68k-sony-newsos%s\n",
  1249. #ifdef NEWSOS4
  1250. "4"
  1251. #else
  1252. ""
  1253. #endif
  1254. ); exit (0);
  1255. #endif
  1256. #endif
  1257. #if defined (__arm) && defined (__acorn) && defined (__unix)
  1258. printf ("arm-acorn-riscix"); exit (0);
  1259. #endif
  1260. #if defined (hp300) && !defined (hpux)
  1261. printf ("m68k-hp-bsd\n"); exit (0);
  1262. #endif
  1263. #if defined (NeXT)
  1264. #if !defined (__ARCHITECTURE__)
  1265. #define __ARCHITECTURE__ "m68k"
  1266. #endif
  1267. int version;
  1268. version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1269. if (version < 4)
  1270. printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1271. else
  1272. printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1273. exit (0);
  1274. #endif
  1275. #if defined (MULTIMAX) || defined (n16)
  1276. #if defined (UMAXV)
  1277. printf ("ns32k-encore-sysv\n"); exit (0);
  1278. #else
  1279. #if defined (CMU)
  1280. printf ("ns32k-encore-mach\n"); exit (0);
  1281. #else
  1282. printf ("ns32k-encore-bsd\n"); exit (0);
  1283. #endif
  1284. #endif
  1285. #endif
  1286. #if defined (__386BSD__)
  1287. printf ("i386-pc-bsd\n"); exit (0);
  1288. #endif
  1289. #if defined (sequent)
  1290. #if defined (i386)
  1291. printf ("i386-sequent-dynix\n"); exit (0);
  1292. #endif
  1293. #if defined (ns32000)
  1294. printf ("ns32k-sequent-dynix\n"); exit (0);
  1295. #endif
  1296. #endif
  1297. #if defined (_SEQUENT_)
  1298. struct utsname un;
  1299. uname(&un);
  1300. if (strncmp(un.version, "V2", 2) == 0) {
  1301. printf ("i386-sequent-ptx2\n"); exit (0);
  1302. }
  1303. if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  1304. printf ("i386-sequent-ptx1\n"); exit (0);
  1305. }
  1306. printf ("i386-sequent-ptx\n"); exit (0);
  1307. #endif
  1308. #if defined (vax)
  1309. # if !defined (ultrix)
  1310. # include <sys/param.h>
  1311. # if defined (BSD)
  1312. # if BSD == 43
  1313. printf ("vax-dec-bsd4.3\n"); exit (0);
  1314. # else
  1315. # if BSD == 199006
  1316. printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1317. # else
  1318. printf ("vax-dec-bsd\n"); exit (0);
  1319. # endif
  1320. # endif
  1321. # else
  1322. printf ("vax-dec-bsd\n"); exit (0);
  1323. # endif
  1324. # else
  1325. printf ("vax-dec-ultrix\n"); exit (0);
  1326. # endif
  1327. #endif
  1328. #if defined (alliant) && defined (i860)
  1329. printf ("i860-alliant-bsd\n"); exit (0);
  1330. #endif
  1331. exit (1);
  1332. }
  1333. EOF
  1334. $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  1335. # Apollos put the system type in the environment.
  1336. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  1337. # Convex versions that predate uname can use getsysinfo(1)
  1338. if [ -x /usr/convex/getsysinfo ]
  1339. then
  1340. case `getsysinfo -f cpu_type` in
  1341. c1*)
  1342. echo c1-convex-bsd
  1343. exit 0 ;;
  1344. c2*)
  1345. if getsysinfo -f scalar_acc
  1346. then echo c32-convex-bsd
  1347. else echo c2-convex-bsd
  1348. fi
  1349. exit 0 ;;
  1350. c34*)
  1351. echo c34-convex-bsd
  1352. exit 0 ;;
  1353. c38*)
  1354. echo c38-convex-bsd
  1355. exit 0 ;;
  1356. c4*)
  1357. echo c4-convex-bsd
  1358. exit 0 ;;
  1359. esac
  1360. fi
  1361. cat >&2 <<EOF
  1362. $0: unable to guess system type
  1363. This script, last modified $timestamp, has failed to recognize
  1364. the operating system you are using. It is advised that you
  1365. download the most up to date version of the config scripts from
  1366. ftp://ftp.gnu.org/pub/gnu/config/
  1367. If the version you run ($0) is already up to date, please
  1368. send the following data and any information you think might be
  1369. pertinent to <config-patches@gnu.org> in order to provide the needed
  1370. information to handle your system.
  1371. config.guess timestamp = $timestamp
  1372. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1373. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1374. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1375. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1376. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  1377. /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  1378. hostinfo = `(hostinfo) 2>/dev/null`
  1379. /bin/universe = `(/bin/universe) 2>/dev/null`
  1380. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  1381. /bin/arch = `(/bin/arch) 2>/dev/null`
  1382. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  1383. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  1384. UNAME_MACHINE = ${UNAME_MACHINE}
  1385. UNAME_RELEASE = ${UNAME_RELEASE}
  1386. UNAME_SYSTEM = ${UNAME_SYSTEM}
  1387. UNAME_VERSION = ${UNAME_VERSION}
  1388. EOF
  1389. exit 1
  1390. # Local variables:
  1391. # eval: (add-hook 'write-file-hooks 'time-stamp)
  1392. # time-stamp-start: "timestamp='"
  1393. # time-stamp-format: "%:y-%02m-%02d"
  1394. # time-stamp-end: "'"
  1395. # End: