patch-build-aux_config_guess 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908
  1. --- gnutls-3.0.15.orig/build-aux/config.guess 2012-03-01 23:44:28.000000000 +0100
  2. +++ gnutls-3.0.15/build-aux/config.guess 2010-12-15 23:48:33.000000000 +0100
  3. @@ -1,10 +1,10 @@
  4. #! /bin/sh
  5. # Attempt to guess a canonical system name.
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  7. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
  8. -# 2011, 2012 Free Software Foundation, Inc.
  9. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  10. +# Free Software Foundation, Inc.
  11. -timestamp='2012-02-10'
  12. +timestamp='2008-09-28'
  13. # This file is free software; you can redistribute it and/or modify it
  14. # under the terms of the GNU General Public License as published by
  15. @@ -17,7 +17,9 @@ timestamp='2012-02-10'
  16. # General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. -# along with this program; if not, see <http://www.gnu.org/licenses/>.
  20. +# along with this program; if not, write to the Free Software
  21. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  22. +# 02110-1301, USA.
  23. #
  24. # As a special exception to the GNU General Public License, if you
  25. # distribute this file as part of a program that contains a
  26. @@ -25,16 +27,16 @@ timestamp='2012-02-10'
  27. # the same distribution terms that you use for the rest of that program.
  28. -# Originally written by Per Bothner. Please send patches (context
  29. -# diff format) to <config-patches@gnu.org> and include a ChangeLog
  30. -# entry.
  31. +# Originally written by Per Bothner <per@bothner.com>.
  32. +# Please send patches to <config-patches@gnu.org>. Submit a context
  33. +# diff and a properly formatted ChangeLog entry.
  34. #
  35. # This script attempts to guess a canonical system name similar to
  36. # config.sub. If it succeeds, it prints the system name on stdout, and
  37. # exits with 0. Otherwise, it exits with 1.
  38. #
  39. -# You can get the latest version of this script from:
  40. -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  41. +# The plan is that this can be called by configure scripts if you
  42. +# don't specify an explicit build system type.
  43. me=`echo "$0" | sed -e 's,.*/,,'`
  44. @@ -54,9 +56,8 @@ version="\
  45. GNU config.guess ($timestamp)
  46. Originally written by Per Bothner.
  47. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
  48. -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
  49. -Free Software Foundation, Inc.
  50. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  51. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  52. This is free software; see the source for copying conditions. There is NO
  53. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  54. @@ -138,12 +139,29 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
  55. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  56. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  57. +if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
  58. + eval $set_cc_for_build
  59. + cat << EOF > $dummy.c
  60. + #include <features.h>
  61. + #ifdef __UCLIBC__
  62. + # ifdef __UCLIBC_CONFIG_VERSION__
  63. + LIBC=uclibc __UCLIBC_CONFIG_VERSION__
  64. + # else
  65. + LIBC=uclibc
  66. + # endif
  67. + #else
  68. + LIBC=gnu
  69. + #endif
  70. +EOF
  71. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
  72. +fi
  73. +
  74. # Note: order is significant - the case branches are not exclusive.
  75. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  76. *:NetBSD:*:*)
  77. # NetBSD (nbsd) targets should (where applicable) match one or
  78. - # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
  79. + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  80. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  81. # switched to ELF, *-*-netbsd* would select the old
  82. # object file format. This provides both forward
  83. @@ -169,7 +187,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  84. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  85. eval $set_cc_for_build
  86. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  87. - | grep -q __ELF__
  88. + | grep __ELF__ >/dev/null
  89. then
  90. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  91. # Return netbsd for either. FIX?
  92. @@ -179,7 +197,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  93. fi
  94. ;;
  95. *)
  96. - os=netbsd
  97. + os=netbsd
  98. ;;
  99. esac
  100. # The OS release
  101. @@ -222,7 +240,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  102. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  103. ;;
  104. *5.*)
  105. - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  106. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  107. ;;
  108. esac
  109. # According to Compaq, /usr/sbin/psrinfo has been available on
  110. @@ -268,10 +286,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  111. # A Xn.n version is an unreleased experimental baselevel.
  112. # 1.2 uses "1.2" for uname -r.
  113. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  114. - # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
  115. - exitcode=$?
  116. - trap '' 0
  117. - exit $exitcode ;;
  118. + exit ;;
  119. Alpha\ *:Windows_NT*:*)
  120. # How do we know it's Interix rather than the generic POSIX subsystem?
  121. # Should we change UNAME_MACHINE based on the output of uname instead
  122. @@ -297,7 +312,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  123. echo s390-ibm-zvmoe
  124. exit ;;
  125. *:OS400:*:*)
  126. - echo powerpc-ibm-os400
  127. + echo powerpc-ibm-os400
  128. exit ;;
  129. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  130. echo arm-acorn-riscix${UNAME_RELEASE}
  131. @@ -326,33 +341,14 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  132. case `/usr/bin/uname -p` in
  133. sparc) echo sparc-icl-nx7; exit ;;
  134. esac ;;
  135. - s390x:SunOS:*:*)
  136. - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  137. - exit ;;
  138. sun4H:SunOS:5.*:*)
  139. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  140. exit ;;
  141. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  142. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  143. exit ;;
  144. - i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
  145. - echo i386-pc-auroraux${UNAME_RELEASE}
  146. - exit ;;
  147. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  148. - eval $set_cc_for_build
  149. - SUN_ARCH="i386"
  150. - # If there is a compiler, see if it is configured for 64-bit objects.
  151. - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  152. - # This test works for both compilers.
  153. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  154. - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  155. - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  156. - grep IS_64BIT_ARCH >/dev/null
  157. - then
  158. - SUN_ARCH="x86_64"
  159. - fi
  160. - fi
  161. - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  162. + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  163. exit ;;
  164. sun4*:SunOS:6*:*)
  165. # According to config.sub, this is the proper way to canonicalize
  166. @@ -396,23 +392,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  167. # MiNT. But MiNT is downward compatible to TOS, so this should
  168. # be no problem.
  169. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  170. - echo m68k-atari-mint${UNAME_RELEASE}
  171. + echo m68k-atari-mint${UNAME_RELEASE}
  172. exit ;;
  173. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  174. echo m68k-atari-mint${UNAME_RELEASE}
  175. - exit ;;
  176. + exit ;;
  177. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  178. - echo m68k-atari-mint${UNAME_RELEASE}
  179. + echo m68k-atari-mint${UNAME_RELEASE}
  180. exit ;;
  181. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  182. - echo m68k-milan-mint${UNAME_RELEASE}
  183. - exit ;;
  184. + echo m68k-milan-mint${UNAME_RELEASE}
  185. + exit ;;
  186. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  187. - echo m68k-hades-mint${UNAME_RELEASE}
  188. - exit ;;
  189. + echo m68k-hades-mint${UNAME_RELEASE}
  190. + exit ;;
  191. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  192. - echo m68k-unknown-mint${UNAME_RELEASE}
  193. - exit ;;
  194. + echo m68k-unknown-mint${UNAME_RELEASE}
  195. + exit ;;
  196. m68k:machten:*:*)
  197. echo m68k-apple-machten${UNAME_RELEASE}
  198. exit ;;
  199. @@ -482,8 +478,8 @@ EOF
  200. echo m88k-motorola-sysv3
  201. exit ;;
  202. AViiON:dgux:*:*)
  203. - # DG/UX returns AViiON for all architectures
  204. - UNAME_PROCESSOR=`/usr/bin/uname -p`
  205. + # DG/UX returns AViiON for all architectures
  206. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  207. if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  208. then
  209. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  210. @@ -496,7 +492,7 @@ EOF
  211. else
  212. echo i586-dg-dgux${UNAME_RELEASE}
  213. fi
  214. - exit ;;
  215. + exit ;;
  216. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  217. echo m88k-dolphin-sysv3
  218. exit ;;
  219. @@ -553,7 +549,7 @@ EOF
  220. echo rs6000-ibm-aix3.2
  221. fi
  222. exit ;;
  223. - *:AIX:*:[4567])
  224. + *:AIX:*:[456])
  225. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  226. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  227. IBM_ARCH=rs6000
  228. @@ -596,52 +592,52 @@ EOF
  229. 9000/[678][0-9][0-9])
  230. if [ -x /usr/bin/getconf ]; then
  231. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  232. - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  233. - case "${sc_cpu_version}" in
  234. - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  235. - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  236. - 532) # CPU_PA_RISC2_0
  237. - case "${sc_kernel_bits}" in
  238. - 32) HP_ARCH="hppa2.0n" ;;
  239. - 64) HP_ARCH="hppa2.0w" ;;
  240. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  241. + case "${sc_cpu_version}" in
  242. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  243. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  244. + 532) # CPU_PA_RISC2_0
  245. + case "${sc_kernel_bits}" in
  246. + 32) HP_ARCH="hppa2.0n" ;;
  247. + 64) HP_ARCH="hppa2.0w" ;;
  248. '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  249. - esac ;;
  250. - esac
  251. + esac ;;
  252. + esac
  253. fi
  254. if [ "${HP_ARCH}" = "" ]; then
  255. eval $set_cc_for_build
  256. - sed 's/^ //' << EOF >$dummy.c
  257. + sed 's/^ //' << EOF >$dummy.c
  258. - #define _HPUX_SOURCE
  259. - #include <stdlib.h>
  260. - #include <unistd.h>
  261. + #define _HPUX_SOURCE
  262. + #include <stdlib.h>
  263. + #include <unistd.h>
  264. - int main ()
  265. - {
  266. - #if defined(_SC_KERNEL_BITS)
  267. - long bits = sysconf(_SC_KERNEL_BITS);
  268. - #endif
  269. - long cpu = sysconf (_SC_CPU_VERSION);
  270. + int main ()
  271. + {
  272. + #if defined(_SC_KERNEL_BITS)
  273. + long bits = sysconf(_SC_KERNEL_BITS);
  274. + #endif
  275. + long cpu = sysconf (_SC_CPU_VERSION);
  276. - switch (cpu)
  277. - {
  278. - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  279. - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  280. - case CPU_PA_RISC2_0:
  281. - #if defined(_SC_KERNEL_BITS)
  282. - switch (bits)
  283. - {
  284. - case 64: puts ("hppa2.0w"); break;
  285. - case 32: puts ("hppa2.0n"); break;
  286. - default: puts ("hppa2.0"); break;
  287. - } break;
  288. - #else /* !defined(_SC_KERNEL_BITS) */
  289. - puts ("hppa2.0"); break;
  290. - #endif
  291. - default: puts ("hppa1.0"); break;
  292. - }
  293. - exit (0);
  294. - }
  295. + switch (cpu)
  296. + {
  297. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  298. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  299. + case CPU_PA_RISC2_0:
  300. + #if defined(_SC_KERNEL_BITS)
  301. + switch (bits)
  302. + {
  303. + case 64: puts ("hppa2.0w"); break;
  304. + case 32: puts ("hppa2.0n"); break;
  305. + default: puts ("hppa2.0"); break;
  306. + } break;
  307. + #else /* !defined(_SC_KERNEL_BITS) */
  308. + puts ("hppa2.0"); break;
  309. + #endif
  310. + default: puts ("hppa1.0"); break;
  311. + }
  312. + exit (0);
  313. + }
  314. EOF
  315. (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  316. test -z "$HP_ARCH" && HP_ARCH=hppa
  317. @@ -661,7 +657,7 @@ EOF
  318. # => hppa64-hp-hpux11.23
  319. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  320. - grep -q __LP64__
  321. + grep __LP64__ >/dev/null
  322. then
  323. HP_ARCH="hppa2.0w"
  324. else
  325. @@ -732,22 +728,22 @@ EOF
  326. exit ;;
  327. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  328. echo c1-convex-bsd
  329. - exit ;;
  330. + exit ;;
  331. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  332. if getsysinfo -f scalar_acc
  333. then echo c32-convex-bsd
  334. else echo c2-convex-bsd
  335. fi
  336. - exit ;;
  337. + exit ;;
  338. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  339. echo c34-convex-bsd
  340. - exit ;;
  341. + exit ;;
  342. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  343. echo c38-convex-bsd
  344. - exit ;;
  345. + exit ;;
  346. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  347. echo c4-convex-bsd
  348. - exit ;;
  349. + exit ;;
  350. CRAY*Y-MP:*:*:*)
  351. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  352. exit ;;
  353. @@ -771,14 +767,14 @@ EOF
  354. exit ;;
  355. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  356. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  357. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  358. - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  359. - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  360. - exit ;;
  361. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  362. + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  363. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  364. + exit ;;
  365. 5000:UNIX_System_V:4.*:*)
  366. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  367. - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  368. - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  369. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  370. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  371. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  372. exit ;;
  373. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  374. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  375. @@ -790,12 +786,13 @@ EOF
  376. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  377. exit ;;
  378. *:FreeBSD:*:*)
  379. - UNAME_PROCESSOR=`/usr/bin/uname -p`
  380. - case ${UNAME_PROCESSOR} in
  381. + case ${UNAME_MACHINE} in
  382. + pc98)
  383. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  384. amd64)
  385. echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  386. *)
  387. - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  388. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  389. esac
  390. exit ;;
  391. i*:CYGWIN*:*)
  392. @@ -804,22 +801,19 @@ EOF
  393. *:MINGW*:*)
  394. echo ${UNAME_MACHINE}-pc-mingw32
  395. exit ;;
  396. - i*:MSYS*:*)
  397. - echo ${UNAME_MACHINE}-pc-msys
  398. - exit ;;
  399. i*:windows32*:*)
  400. - # uname -m includes "-pc" on this system.
  401. - echo ${UNAME_MACHINE}-mingw32
  402. + # uname -m includes "-pc" on this system.
  403. + echo ${UNAME_MACHINE}-mingw32
  404. exit ;;
  405. i*:PW*:*)
  406. echo ${UNAME_MACHINE}-pc-pw32
  407. exit ;;
  408. - *:Interix*:*)
  409. - case ${UNAME_MACHINE} in
  410. + *:Interix*:[3456]*)
  411. + case ${UNAME_MACHINE} in
  412. x86)
  413. echo i586-pc-interix${UNAME_RELEASE}
  414. exit ;;
  415. - authenticamd | genuineintel | EM64T)
  416. + EM64T | authenticamd | genuineintel)
  417. echo x86_64-unknown-interix${UNAME_RELEASE}
  418. exit ;;
  419. IA64)
  420. @@ -829,9 +823,6 @@ EOF
  421. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  422. echo i${UNAME_MACHINE}-pc-mks
  423. exit ;;
  424. - 8664:Windows_NT:*)
  425. - echo x86_64-pc-mks
  426. - exit ;;
  427. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  428. # How do we know it's Interix rather than the generic POSIX subsystem?
  429. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  430. @@ -861,144 +852,203 @@ EOF
  431. i*86:Minix:*:*)
  432. echo ${UNAME_MACHINE}-pc-minix
  433. exit ;;
  434. - aarch64:Linux:*:*)
  435. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  436. - exit ;;
  437. - aarch64_be:Linux:*:*)
  438. - UNAME_MACHINE=aarch64_be
  439. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  440. - exit ;;
  441. - alpha:Linux:*:*)
  442. - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  443. - EV5) UNAME_MACHINE=alphaev5 ;;
  444. - EV56) UNAME_MACHINE=alphaev56 ;;
  445. - PCA56) UNAME_MACHINE=alphapca56 ;;
  446. - PCA57) UNAME_MACHINE=alphapca56 ;;
  447. - EV6) UNAME_MACHINE=alphaev6 ;;
  448. - EV67) UNAME_MACHINE=alphaev67 ;;
  449. - EV68*) UNAME_MACHINE=alphaev68 ;;
  450. - esac
  451. - objdump --private-headers /bin/sh | grep -q ld.so.1
  452. - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  453. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  454. - exit ;;
  455. arm*:Linux:*:*)
  456. eval $set_cc_for_build
  457. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  458. | grep -q __ARM_EABI__
  459. then
  460. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  461. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  462. else
  463. - if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
  464. - | grep -q __ARM_PCS_VFP
  465. - then
  466. - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  467. - else
  468. - echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
  469. - fi
  470. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  471. fi
  472. exit ;;
  473. avr32*:Linux:*:*)
  474. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  475. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  476. exit ;;
  477. cris:Linux:*:*)
  478. - echo ${UNAME_MACHINE}-axis-linux-gnu
  479. + echo cris-axis-linux-${LIBC}
  480. exit ;;
  481. crisv32:Linux:*:*)
  482. - echo ${UNAME_MACHINE}-axis-linux-gnu
  483. + echo crisv32-axis-linux-${LIBC}
  484. exit ;;
  485. frv:Linux:*:*)
  486. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  487. - exit ;;
  488. - hexagon:Linux:*:*)
  489. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  490. - exit ;;
  491. - i*86:Linux:*:*)
  492. - LIBC=gnu
  493. - eval $set_cc_for_build
  494. - sed 's/^ //' << EOF >$dummy.c
  495. - #ifdef __dietlibc__
  496. - LIBC=dietlibc
  497. - #endif
  498. -EOF
  499. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  500. - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  501. + echo frv-unknown-linux-${LIBC}
  502. exit ;;
  503. ia64:Linux:*:*)
  504. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  505. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  506. exit ;;
  507. m32r*:Linux:*:*)
  508. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  509. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  510. exit ;;
  511. m68*:Linux:*:*)
  512. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  513. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  514. exit ;;
  515. - mips:Linux:*:* | mips64:Linux:*:*)
  516. + mips:Linux:*:*)
  517. eval $set_cc_for_build
  518. sed 's/^ //' << EOF >$dummy.c
  519. #undef CPU
  520. - #undef ${UNAME_MACHINE}
  521. - #undef ${UNAME_MACHINE}el
  522. + #undef mips
  523. + #undef mipsel
  524. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  525. - CPU=${UNAME_MACHINE}el
  526. + CPU=mipsel
  527. #else
  528. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  529. - CPU=${UNAME_MACHINE}
  530. + CPU=mips
  531. #else
  532. CPU=
  533. #endif
  534. #endif
  535. EOF
  536. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
  537. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  538. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  539. + /^CPU/{
  540. + s: ::g
  541. + p
  542. + }'`"
  543. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  544. + ;;
  545. + mips64:Linux:*:*)
  546. + eval $set_cc_for_build
  547. + sed 's/^ //' << EOF >$dummy.c
  548. + #undef CPU
  549. + #undef mips64
  550. + #undef mips64el
  551. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  552. + CPU=mips64el
  553. + #else
  554. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  555. + CPU=mips64
  556. + #else
  557. + CPU=
  558. + #endif
  559. + #endif
  560. +EOF
  561. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  562. + /^CPU/{
  563. + s: ::g
  564. + p
  565. + }'`"
  566. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  567. ;;
  568. or32:Linux:*:*)
  569. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  570. + echo or32-unknown-linux-${LIBC}
  571. + exit ;;
  572. + ppc:Linux:*:*)
  573. + echo powerpc-unknown-linux-${LIBC}
  574. + exit ;;
  575. + ppc64:Linux:*:*)
  576. + echo powerpc64-unknown-linux-${LIBC}
  577. + exit ;;
  578. + alpha:Linux:*:*)
  579. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  580. + EV5) UNAME_MACHINE=alphaev5 ;;
  581. + EV56) UNAME_MACHINE=alphaev56 ;;
  582. + PCA56) UNAME_MACHINE=alphapca56 ;;
  583. + PCA57) UNAME_MACHINE=alphapca56 ;;
  584. + EV6) UNAME_MACHINE=alphaev6 ;;
  585. + EV67) UNAME_MACHINE=alphaev67 ;;
  586. + EV68*) UNAME_MACHINE=alphaev68 ;;
  587. + esac
  588. + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  589. + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
  590. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  591. exit ;;
  592. padre:Linux:*:*)
  593. echo sparc-unknown-linux-gnu
  594. exit ;;
  595. - parisc64:Linux:*:* | hppa64:Linux:*:*)
  596. - echo hppa64-unknown-linux-gnu
  597. - exit ;;
  598. parisc:Linux:*:* | hppa:Linux:*:*)
  599. # Look for CPU level
  600. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  601. - PA7*) echo hppa1.1-unknown-linux-gnu ;;
  602. - PA8*) echo hppa2.0-unknown-linux-gnu ;;
  603. - *) echo hppa-unknown-linux-gnu ;;
  604. + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  605. + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  606. + *) echo hppa-unknown-linux-${LIBC} ;;
  607. esac
  608. exit ;;
  609. - ppc64:Linux:*:*)
  610. - echo powerpc64-unknown-linux-gnu
  611. - exit ;;
  612. - ppc:Linux:*:*)
  613. - echo powerpc-unknown-linux-gnu
  614. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  615. + echo hppa64-unknown-linux-${LIBC}
  616. exit ;;
  617. s390:Linux:*:* | s390x:Linux:*:*)
  618. echo ${UNAME_MACHINE}-ibm-linux
  619. exit ;;
  620. sh64*:Linux:*:*)
  621. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  622. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  623. exit ;;
  624. sh*:Linux:*:*)
  625. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  626. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  627. exit ;;
  628. sparc:Linux:*:* | sparc64:Linux:*:*)
  629. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  630. - exit ;;
  631. - tile*:Linux:*:*)
  632. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  633. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  634. exit ;;
  635. vax:Linux:*:*)
  636. - echo ${UNAME_MACHINE}-dec-linux-gnu
  637. + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  638. exit ;;
  639. x86_64:Linux:*:*)
  640. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  641. + echo x86_64-unknown-linux-${LIBC}
  642. exit ;;
  643. xtensa*:Linux:*:*)
  644. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  645. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  646. exit ;;
  647. + i*86:Linux:*:*)
  648. + # The BFD linker knows what the default object file format is, so
  649. + # first see if it will tell us. cd to the root directory to prevent
  650. + # problems with other programs or directories called `ld' in the path.
  651. + # Set LC_ALL=C to ensure ld outputs messages in English.
  652. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  653. + | sed -ne '/supported targets:/!d
  654. + s/[ ][ ]*/ /g
  655. + s/.*supported targets: *//
  656. + s/ .*//
  657. + p'`
  658. + case "$ld_supported_targets" in
  659. + elf32-i386)
  660. + TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
  661. + ;;
  662. + a.out-i386-linux)
  663. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
  664. + exit ;;
  665. + "")
  666. + # Either a pre-BFD a.out linker (linux-gnuoldld) or
  667. + # one that does not give us useful --help.
  668. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
  669. + exit ;;
  670. + esac
  671. + # This should get integrated into the C code below, but now we hack
  672. + if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
  673. + # Determine whether the default compiler is a.out or elf
  674. + eval $set_cc_for_build
  675. + sed 's/^ //' << EOF >$dummy.c
  676. + #include <features.h>
  677. + #ifdef __ELF__
  678. + # ifdef __GLIBC__
  679. + # if __GLIBC__ >= 2
  680. + LIBC=gnu
  681. + # else
  682. + LIBC=gnulibc1
  683. + # endif
  684. + # else
  685. + LIBC=gnulibc1
  686. + # endif
  687. + #else
  688. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  689. + LIBC=gnu
  690. + #else
  691. + LIBC=gnuaout
  692. + #endif
  693. + #endif
  694. + #ifdef __dietlibc__
  695. + LIBC=dietlibc
  696. + #endif
  697. +EOF
  698. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  699. + /^LIBC/{
  700. + s: ::g
  701. + p
  702. + }'`"
  703. + test x"${LIBC}" != x && {
  704. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  705. + exit
  706. + }
  707. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  708. + ;;
  709. i*86:DYNIX/ptx:4*:*)
  710. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  711. # earlier versions are messed up and put the nodename in both
  712. @@ -1006,11 +1056,11 @@ EOF
  713. echo i386-sequent-sysv4
  714. exit ;;
  715. i*86:UNIX_SV:4.2MP:2.*)
  716. - # Unixware is an offshoot of SVR4, but it has its own version
  717. - # number series starting with 2...
  718. - # I am not positive that other SVR4 systems won't match this,
  719. + # Unixware is an offshoot of SVR4, but it has its own version
  720. + # number series starting with 2...
  721. + # I am not positive that other SVR4 systems won't match this,
  722. # I just have to hope. -- rms.
  723. - # Use sysv4.2uw... so that sysv4* matches it.
  724. + # Use sysv4.2uw... so that sysv4* matches it.
  725. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  726. exit ;;
  727. i*86:OS/2:*:*)
  728. @@ -1027,7 +1077,7 @@ EOF
  729. i*86:syllable:*:*)
  730. echo ${UNAME_MACHINE}-pc-syllable
  731. exit ;;
  732. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  733. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  734. echo i386-unknown-lynxos${UNAME_RELEASE}
  735. exit ;;
  736. i*86:*DOS:*:*)
  737. @@ -1042,7 +1092,7 @@ EOF
  738. fi
  739. exit ;;
  740. i*86:*:5:[678]*)
  741. - # UnixWare 7.x, OpenUNIX and OpenServer 6.
  742. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  743. case `/bin/uname -X | grep "^Machine"` in
  744. *486*) UNAME_MACHINE=i486 ;;
  745. *Pentium) UNAME_MACHINE=i586 ;;
  746. @@ -1070,13 +1120,10 @@ EOF
  747. exit ;;
  748. pc:*:*:*)
  749. # Left here for compatibility:
  750. - # uname -m prints for DJGPP always 'pc', but it prints nothing about
  751. - # the processor, so we play safe by assuming i586.
  752. - # Note: whatever this is, it MUST be the same as what config.sub
  753. - # prints for the "djgpp" host, or else GDB configury will decide that
  754. - # this is a cross-build.
  755. - echo i586-pc-msdosdjgpp
  756. - exit ;;
  757. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  758. + # the processor, so we play safe by assuming i386.
  759. + echo i386-pc-msdosdjgpp
  760. + exit ;;
  761. Intel:Mach:3*:*)
  762. echo i386-pc-mach3
  763. exit ;;
  764. @@ -1111,18 +1158,8 @@ EOF
  765. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  766. && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  767. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  768. - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  769. - && { echo i486-ncr-sysv4; exit; } ;;
  770. - NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  771. - OS_REL='.3'
  772. - test -r /etc/.relid \
  773. - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  774. - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  775. - && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  776. - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  777. - && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  778. - /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  779. - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  780. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  781. + && { echo i486-ncr-sysv4; exit; } ;;
  782. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  783. echo m68k-unknown-lynxos${UNAME_RELEASE}
  784. exit ;;
  785. @@ -1135,7 +1172,7 @@ EOF
  786. rs6000:LynxOS:2.*:*)
  787. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  788. exit ;;
  789. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  790. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  791. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  792. exit ;;
  793. SM[BE]S:UNIX_SV:*:*)
  794. @@ -1155,10 +1192,10 @@ EOF
  795. echo ns32k-sni-sysv
  796. fi
  797. exit ;;
  798. - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  799. - # says <Richard.M.Bartel@ccMail.Census.GOV>
  800. - echo i586-unisys-sysv4
  801. - exit ;;
  802. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  803. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  804. + echo i586-unisys-sysv4
  805. + exit ;;
  806. *:UNIX_System_V:4*:FTX*)
  807. # From Gerald Hewes <hewes@openmarket.com>.
  808. # How about differentiating between stratus architectures? -djm
  809. @@ -1184,11 +1221,11 @@ EOF
  810. exit ;;
  811. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  812. if [ -d /usr/nec ]; then
  813. - echo mips-nec-sysv${UNAME_RELEASE}
  814. + echo mips-nec-sysv${UNAME_RELEASE}
  815. else
  816. - echo mips-unknown-sysv${UNAME_RELEASE}
  817. + echo mips-unknown-sysv${UNAME_RELEASE}
  818. fi
  819. - exit ;;
  820. + exit ;;
  821. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  822. echo powerpc-be-beos
  823. exit ;;
  824. @@ -1228,16 +1265,6 @@ EOF
  825. *:Darwin:*:*)
  826. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  827. case $UNAME_PROCESSOR in
  828. - i386)
  829. - eval $set_cc_for_build
  830. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  831. - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  832. - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  833. - grep IS_64BIT_ARCH >/dev/null
  834. - then
  835. - UNAME_PROCESSOR="x86_64"
  836. - fi
  837. - fi ;;
  838. unknown) UNAME_PROCESSOR=powerpc ;;
  839. esac
  840. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  841. @@ -1253,9 +1280,6 @@ EOF
  842. *:QNX:*:4*)
  843. echo i386-pc-qnx
  844. exit ;;
  845. - NEO-?:NONSTOP_KERNEL:*:*)
  846. - echo neo-tandem-nsk${UNAME_RELEASE}
  847. - exit ;;
  848. NSE-?:NONSTOP_KERNEL:*:*)
  849. echo nse-tandem-nsk${UNAME_RELEASE}
  850. exit ;;
  851. @@ -1301,13 +1325,13 @@ EOF
  852. echo pdp10-unknown-its
  853. exit ;;
  854. SEI:*:*:SEIUX)
  855. - echo mips-sei-seiux${UNAME_RELEASE}
  856. + echo mips-sei-seiux${UNAME_RELEASE}
  857. exit ;;
  858. *:DragonFly:*:*)
  859. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  860. exit ;;
  861. *:*VMS:*:*)
  862. - UNAME_MACHINE=`(uname -p) 2>/dev/null`
  863. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  864. case "${UNAME_MACHINE}" in
  865. A*) echo alpha-dec-vms ; exit ;;
  866. I*) echo ia64-dec-vms ; exit ;;
  867. @@ -1322,12 +1346,6 @@ EOF
  868. i*86:rdos:*:*)
  869. echo ${UNAME_MACHINE}-pc-rdos
  870. exit ;;
  871. - i*86:AROS:*:*)
  872. - echo ${UNAME_MACHINE}-pc-aros
  873. - exit ;;
  874. - x86_64:VMkernel:*:*)
  875. - echo ${UNAME_MACHINE}-unknown-esx
  876. - exit ;;
  877. esac
  878. #echo '(No uname command or uname output not recognized.)' 1>&2
  879. @@ -1350,11 +1368,11 @@ main ()
  880. #include <sys/param.h>
  881. printf ("m68k-sony-newsos%s\n",
  882. #ifdef NEWSOS4
  883. - "4"
  884. + "4"
  885. #else
  886. - ""
  887. + ""
  888. #endif
  889. - ); exit (0);
  890. + ); exit (0);
  891. #endif
  892. #endif