patch-tools_depends_build-aux_config_guess 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. --- xbmc-imx6-13.2.orig/tools/depends/build-aux/config.guess 2014-09-02 13:26:20.000000000 +0200
  2. +++ xbmc-imx6-13.2/tools/depends/build-aux/config.guess 2014-08-18 15:18:32.461397057 +0200
  3. @@ -1,14 +1,12 @@
  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. +# Copyright 1992-2014 Free Software Foundation, Inc.
  10. -timestamp='2012-01-01'
  11. +timestamp='2014-01-25'
  12. # This file is free software; you can redistribute it and/or modify it
  13. # under the terms of the GNU General Public License as published by
  14. -# the Free Software Foundation; either version 2 of the License, or
  15. +# the Free Software Foundation; either version 3 of the License, or
  16. # (at your option) any later version.
  17. #
  18. # This program is distributed in the hope that it will be useful, but
  19. @@ -17,26 +15,22 @@ timestamp='2012-01-01'
  20. # General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. -# along with this program; if not, write to the Free Software
  24. -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  25. -# 02110-1301, USA.
  26. +# along with this program; if not, see <http://www.gnu.org/licenses/>.
  27. #
  28. # As a special exception to the GNU General Public License, if you
  29. # distribute this file as part of a program that contains a
  30. # configuration script generated by Autoconf, you may include it under
  31. -# the same distribution terms that you use for the rest of that program.
  32. -
  33. -
  34. -# Originally written by Per Bothner. Please send patches (context
  35. -# diff format) to <config-patches@gnu.org> and include a ChangeLog
  36. -# entry.
  37. +# the same distribution terms that you use for the rest of that
  38. +# program. This Exception is an additional permission under section 7
  39. +# of the GNU General Public License, version 3 ("GPLv3").
  40. #
  41. -# This script attempts to guess a canonical system name similar to
  42. -# config.sub. If it succeeds, it prints the system name on stdout, and
  43. -# exits with 0. Otherwise, it exits with 1.
  44. +# Originally written by Per Bothner.
  45. #
  46. # You can get the latest version of this script from:
  47. # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  48. +#
  49. +# Please send patches with a ChangeLog entry to config-patches@gnu.org.
  50. +
  51. me=`echo "$0" | sed -e 's,.*/,,'`
  52. @@ -56,9 +50,7 @@ version="\
  53. GNU config.guess ($timestamp)
  54. Originally written by Per Bothner.
  55. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
  56. -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
  57. -Free Software Foundation, Inc.
  58. +Copyright 1992-2014 Free Software Foundation, Inc.
  59. This is free software; see the source for copying conditions. There is NO
  60. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  61. @@ -140,6 +132,27 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
  62. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  63. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  64. +case "${UNAME_SYSTEM}" in
  65. +Linux|GNU|GNU/*)
  66. + # If the system lacks a compiler, then just pick glibc.
  67. + # We could probably try harder.
  68. + LIBC=gnu
  69. +
  70. + eval $set_cc_for_build
  71. + cat <<-EOF > $dummy.c
  72. + #include <features.h>
  73. + #if defined(__UCLIBC__)
  74. + LIBC=uclibc
  75. + #elif defined(__dietlibc__)
  76. + LIBC=dietlibc
  77. + #else
  78. + LIBC=gnu
  79. + #endif
  80. + EOF
  81. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  82. + ;;
  83. +esac
  84. +
  85. # Note: order is significant - the case branches are not exclusive.
  86. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  87. @@ -202,6 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  88. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  89. echo "${machine}-${os}${release}"
  90. exit ;;
  91. + *:Bitrig:*:*)
  92. + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
  93. + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
  94. + exit ;;
  95. *:OpenBSD:*:*)
  96. UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  97. echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  98. @@ -304,7 +321,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  99. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  100. echo arm-acorn-riscix${UNAME_RELEASE}
  101. exit ;;
  102. - arm:riscos:*:*|arm:RISCOS:*:*)
  103. + arm*:riscos:*:*|arm*:RISCOS:*:*)
  104. echo arm-unknown-riscos
  105. exit ;;
  106. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  107. @@ -803,6 +820,9 @@ EOF
  108. i*:CYGWIN*:*)
  109. echo ${UNAME_MACHINE}-pc-cygwin
  110. exit ;;
  111. + *:MINGW64*:*)
  112. + echo ${UNAME_MACHINE}-pc-mingw64
  113. + exit ;;
  114. *:MINGW*:*)
  115. echo ${UNAME_MACHINE}-pc-mingw32
  116. exit ;;
  117. @@ -854,15 +874,22 @@ EOF
  118. exit ;;
  119. *:GNU:*:*)
  120. # the GNU system
  121. - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  122. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  123. exit ;;
  124. *:GNU/*:*:*)
  125. # other systems with GNU libc and userland
  126. - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  127. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
  128. exit ;;
  129. i*86:Minix:*:*)
  130. echo ${UNAME_MACHINE}-pc-minix
  131. exit ;;
  132. + aarch64:Linux:*:*)
  133. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  134. + exit ;;
  135. + aarch64_be:Linux:*:*)
  136. + UNAME_MACHINE=aarch64_be
  137. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  138. + exit ;;
  139. alpha:Linux:*:*)
  140. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  141. EV5) UNAME_MACHINE=alphaev5 ;;
  142. @@ -874,59 +901,54 @@ EOF
  143. EV68*) UNAME_MACHINE=alphaev68 ;;
  144. esac
  145. objdump --private-headers /bin/sh | grep -q ld.so.1
  146. - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  147. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  148. + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
  149. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  150. + exit ;;
  151. + arc:Linux:*:* | arceb:Linux:*:*)
  152. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  153. exit ;;
  154. arm*:Linux:*:*)
  155. eval $set_cc_for_build
  156. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  157. | grep -q __ARM_EABI__
  158. then
  159. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  160. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  161. else
  162. if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
  163. | grep -q __ARM_PCS_VFP
  164. then
  165. - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  166. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  167. else
  168. - echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
  169. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
  170. fi
  171. fi
  172. exit ;;
  173. avr32*:Linux:*:*)
  174. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  175. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  176. exit ;;
  177. cris:Linux:*:*)
  178. - echo ${UNAME_MACHINE}-axis-linux-gnu
  179. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  180. exit ;;
  181. crisv32:Linux:*:*)
  182. - echo ${UNAME_MACHINE}-axis-linux-gnu
  183. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  184. exit ;;
  185. frv:Linux:*:*)
  186. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  187. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  188. exit ;;
  189. hexagon:Linux:*:*)
  190. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  191. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  192. exit ;;
  193. i*86:Linux:*:*)
  194. - LIBC=gnu
  195. - eval $set_cc_for_build
  196. - sed 's/^ //' << EOF >$dummy.c
  197. - #ifdef __dietlibc__
  198. - LIBC=dietlibc
  199. - #endif
  200. -EOF
  201. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  202. - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  203. + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  204. exit ;;
  205. ia64:Linux:*:*)
  206. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  207. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  208. exit ;;
  209. m32r*:Linux:*:*)
  210. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  211. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  212. exit ;;
  213. m68*:Linux:*:*)
  214. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  215. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  216. exit ;;
  217. mips:Linux:*:* | mips64:Linux:*:*)
  218. eval $set_cc_for_build
  219. @@ -945,54 +967,63 @@ EOF
  220. #endif
  221. EOF
  222. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
  223. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  224. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  225. ;;
  226. + or1k:Linux:*:*)
  227. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  228. + exit ;;
  229. or32:Linux:*:*)
  230. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  231. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  232. exit ;;
  233. padre:Linux:*:*)
  234. - echo sparc-unknown-linux-gnu
  235. + echo sparc-unknown-linux-${LIBC}
  236. exit ;;
  237. parisc64:Linux:*:* | hppa64:Linux:*:*)
  238. - echo hppa64-unknown-linux-gnu
  239. + echo hppa64-unknown-linux-${LIBC}
  240. exit ;;
  241. parisc:Linux:*:* | hppa:Linux:*:*)
  242. # Look for CPU level
  243. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  244. - PA7*) echo hppa1.1-unknown-linux-gnu ;;
  245. - PA8*) echo hppa2.0-unknown-linux-gnu ;;
  246. - *) echo hppa-unknown-linux-gnu ;;
  247. + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  248. + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  249. + *) echo hppa-unknown-linux-${LIBC} ;;
  250. esac
  251. exit ;;
  252. ppc64:Linux:*:*)
  253. - echo powerpc64-unknown-linux-gnu
  254. + echo powerpc64-unknown-linux-${LIBC}
  255. exit ;;
  256. ppc:Linux:*:*)
  257. - echo powerpc-unknown-linux-gnu
  258. + echo powerpc-unknown-linux-${LIBC}
  259. + exit ;;
  260. + ppc64le:Linux:*:*)
  261. + echo powerpc64le-unknown-linux-${LIBC}
  262. + exit ;;
  263. + ppcle:Linux:*:*)
  264. + echo powerpcle-unknown-linux-${LIBC}
  265. exit ;;
  266. s390:Linux:*:* | s390x:Linux:*:*)
  267. - echo ${UNAME_MACHINE}-ibm-linux
  268. + echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
  269. exit ;;
  270. sh64*:Linux:*:*)
  271. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  272. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  273. exit ;;
  274. sh*:Linux:*:*)
  275. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  276. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  277. exit ;;
  278. sparc:Linux:*:* | sparc64:Linux:*:*)
  279. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  280. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  281. exit ;;
  282. tile*:Linux:*:*)
  283. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  284. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  285. exit ;;
  286. vax:Linux:*:*)
  287. - echo ${UNAME_MACHINE}-dec-linux-gnu
  288. + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  289. exit ;;
  290. x86_64:Linux:*:*)
  291. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  292. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  293. exit ;;
  294. xtensa*:Linux:*:*)
  295. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  296. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  297. exit ;;
  298. i*86:DYNIX/ptx:4*:*)
  299. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  300. @@ -1196,6 +1227,9 @@ EOF
  301. BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  302. echo i586-pc-haiku
  303. exit ;;
  304. + x86_64:Haiku:*:*)
  305. + echo x86_64-unknown-haiku
  306. + exit ;;
  307. SX-4:SUPER-UX:*:*)
  308. echo sx4-nec-superux${UNAME_RELEASE}
  309. exit ;;
  310. @@ -1222,19 +1256,31 @@ EOF
  311. exit ;;
  312. *:Darwin:*:*)
  313. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  314. - case $UNAME_PROCESSOR in
  315. - i386)
  316. - eval $set_cc_for_build
  317. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  318. - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  319. - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  320. - grep IS_64BIT_ARCH >/dev/null
  321. - then
  322. - UNAME_PROCESSOR="x86_64"
  323. - fi
  324. - fi ;;
  325. - unknown) UNAME_PROCESSOR=powerpc ;;
  326. - esac
  327. + eval $set_cc_for_build
  328. + if test "$UNAME_PROCESSOR" = unknown ; then
  329. + UNAME_PROCESSOR=powerpc
  330. + fi
  331. + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
  332. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  333. + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  334. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  335. + grep IS_64BIT_ARCH >/dev/null
  336. + then
  337. + case $UNAME_PROCESSOR in
  338. + i386) UNAME_PROCESSOR=x86_64 ;;
  339. + powerpc) UNAME_PROCESSOR=powerpc64 ;;
  340. + esac
  341. + fi
  342. + fi
  343. + elif test "$UNAME_PROCESSOR" = i386 ; then
  344. + # Avoid executing cc on OS X 10.9, as it ships with a stub
  345. + # that puts up a graphical alert prompting to install
  346. + # developer tools. Any system running Mac OS X 10.7 or
  347. + # later (Darwin 11 and later) is required to have a 64-bit
  348. + # processor. This is not true of the ARM version of Darwin
  349. + # that Apple uses in portable devices.
  350. + UNAME_PROCESSOR=x86_64
  351. + fi
  352. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  353. exit ;;
  354. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  355. @@ -1251,7 +1297,7 @@ EOF
  356. NEO-?:NONSTOP_KERNEL:*:*)
  357. echo neo-tandem-nsk${UNAME_RELEASE}
  358. exit ;;
  359. - NSE-?:NONSTOP_KERNEL:*:*)
  360. + NSE-*:NONSTOP_KERNEL:*:*)
  361. echo nse-tandem-nsk${UNAME_RELEASE}
  362. exit ;;
  363. NSR-?:NONSTOP_KERNEL:*:*)
  364. @@ -1320,158 +1366,10 @@ EOF
  365. i*86:AROS:*:*)
  366. echo ${UNAME_MACHINE}-pc-aros
  367. exit ;;
  368. -esac
  369. -
  370. -#echo '(No uname command or uname output not recognized.)' 1>&2
  371. -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  372. -
  373. -eval $set_cc_for_build
  374. -cat >$dummy.c <<EOF
  375. -#ifdef _SEQUENT_
  376. -# include <sys/types.h>
  377. -# include <sys/utsname.h>
  378. -#endif
  379. -main ()
  380. -{
  381. -#if defined (sony)
  382. -#if defined (MIPSEB)
  383. - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  384. - I don't know.... */
  385. - printf ("mips-sony-bsd\n"); exit (0);
  386. -#else
  387. -#include <sys/param.h>
  388. - printf ("m68k-sony-newsos%s\n",
  389. -#ifdef NEWSOS4
  390. - "4"
  391. -#else
  392. - ""
  393. -#endif
  394. - ); exit (0);
  395. -#endif
  396. -#endif
  397. -
  398. -#if defined (__arm) && defined (__acorn) && defined (__unix)
  399. - printf ("arm-acorn-riscix\n"); exit (0);
  400. -#endif
  401. -
  402. -#if defined (hp300) && !defined (hpux)
  403. - printf ("m68k-hp-bsd\n"); exit (0);
  404. -#endif
  405. -
  406. -#if defined (NeXT)
  407. -#if !defined (__ARCHITECTURE__)
  408. -#define __ARCHITECTURE__ "m68k"
  409. -#endif
  410. - int version;
  411. - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  412. - if (version < 4)
  413. - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  414. - else
  415. - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  416. - exit (0);
  417. -#endif
  418. -
  419. -#if defined (MULTIMAX) || defined (n16)
  420. -#if defined (UMAXV)
  421. - printf ("ns32k-encore-sysv\n"); exit (0);
  422. -#else
  423. -#if defined (CMU)
  424. - printf ("ns32k-encore-mach\n"); exit (0);
  425. -#else
  426. - printf ("ns32k-encore-bsd\n"); exit (0);
  427. -#endif
  428. -#endif
  429. -#endif
  430. -
  431. -#if defined (__386BSD__)
  432. - printf ("i386-pc-bsd\n"); exit (0);
  433. -#endif
  434. -
  435. -#if defined (sequent)
  436. -#if defined (i386)
  437. - printf ("i386-sequent-dynix\n"); exit (0);
  438. -#endif
  439. -#if defined (ns32000)
  440. - printf ("ns32k-sequent-dynix\n"); exit (0);
  441. -#endif
  442. -#endif
  443. -
  444. -#if defined (_SEQUENT_)
  445. - struct utsname un;
  446. -
  447. - uname(&un);
  448. -
  449. - if (strncmp(un.version, "V2", 2) == 0) {
  450. - printf ("i386-sequent-ptx2\n"); exit (0);
  451. - }
  452. - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  453. - printf ("i386-sequent-ptx1\n"); exit (0);
  454. - }
  455. - printf ("i386-sequent-ptx\n"); exit (0);
  456. -
  457. -#endif
  458. -
  459. -#if defined (vax)
  460. -# if !defined (ultrix)
  461. -# include <sys/param.h>
  462. -# if defined (BSD)
  463. -# if BSD == 43
  464. - printf ("vax-dec-bsd4.3\n"); exit (0);
  465. -# else
  466. -# if BSD == 199006
  467. - printf ("vax-dec-bsd4.3reno\n"); exit (0);
  468. -# else
  469. - printf ("vax-dec-bsd\n"); exit (0);
  470. -# endif
  471. -# endif
  472. -# else
  473. - printf ("vax-dec-bsd\n"); exit (0);
  474. -# endif
  475. -# else
  476. - printf ("vax-dec-ultrix\n"); exit (0);
  477. -# endif
  478. -#endif
  479. -
  480. -#if defined (alliant) && defined (i860)
  481. - printf ("i860-alliant-bsd\n"); exit (0);
  482. -#endif
  483. -
  484. - exit (1);
  485. -}
  486. -EOF
  487. -
  488. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  489. - { echo "$SYSTEM_NAME"; exit; }
  490. -
  491. -# Apollos put the system type in the environment.
  492. -
  493. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  494. -
  495. -# Convex versions that predate uname can use getsysinfo(1)
  496. -
  497. -if [ -x /usr/convex/getsysinfo ]
  498. -then
  499. - case `getsysinfo -f cpu_type` in
  500. - c1*)
  501. - echo c1-convex-bsd
  502. - exit ;;
  503. - c2*)
  504. - if getsysinfo -f scalar_acc
  505. - then echo c32-convex-bsd
  506. - else echo c2-convex-bsd
  507. - fi
  508. - exit ;;
  509. - c34*)
  510. - echo c34-convex-bsd
  511. - exit ;;
  512. - c38*)
  513. - echo c38-convex-bsd
  514. - exit ;;
  515. - c4*)
  516. - echo c4-convex-bsd
  517. + x86_64:VMkernel:*:*)
  518. + echo ${UNAME_MACHINE}-unknown-esx
  519. exit ;;
  520. - esac
  521. -fi
  522. +esac
  523. cat >&2 <<EOF
  524. $0: unable to guess system type