clusterlb 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/Gemfile.lock +761 -1
  4. data/build.sh +4 -0
  5. data/clusterlb.gemspec +3 -0
  6. data/exe/clusterlb-stectrl +3 -2
  7. data/lib/clusterlb/version.rb +1 -1
  8. data/lib/clusterlb.rb +108 -5
  9. data/omnibus/.gitignore +10 -0
  10. data/omnibus/.kitchen.yml +41 -0
  11. data/omnibus/.ruby-version +1 -0
  12. data/omnibus/Berksfile +12 -0
  13. data/omnibus/Gemfile +21 -0
  14. data/omnibus/Gemfile.lock +284 -0
  15. data/omnibus/README.md +120 -0
  16. data/omnibus/build.sh +3 -0
  17. data/omnibus/config/patches/eventmachine/disable-extensions.patch +11 -0
  18. data/omnibus/config/patches/libffi/libffi-3.2.1-disable-multi-os-directory.patch +83 -0
  19. data/omnibus/config/patches/libffi/libffi-3.2.1-makefiles-sparc.patch +24 -0
  20. data/omnibus/config/patches/libiconv/config.guess_2015-09-14.patch +2390 -0
  21. data/omnibus/config/patches/libiconv/libiconv-1.14_srclib_stdio.in.h-remove-gets-declarations.patch +29 -0
  22. data/omnibus/config/patches/libyaml/v0.1.6.windows-configure.patch +26 -0
  23. data/omnibus/config/patches/ncurses/config_guess_2015-09-24.patch +857 -0
  24. data/omnibus/config/patches/ncurses/ncurses-5.9-gcc-5.patch +46 -0
  25. data/omnibus/config/patches/openssl/openssl-1.0.1f-do-not-build-docs.patch +28 -0
  26. data/omnibus/config/patches/openssl/openssl-1.0.1q-fix-compiler-flags-table-for-msys.patch +20 -0
  27. data/omnibus/config/patches/openssl/openssl-1.0.2k-no-bang.patch +17 -0
  28. data/omnibus/config/patches/openssl/solaris-do-not-define-xopen-source.patch +24 -0
  29. data/omnibus/config/patches/pkg-config-lite/pkg-config-lite-0.28-1.config.guess.patch +992 -0
  30. data/omnibus/config/patches/ruby/ruby-2_1_3-no-mkmf.patch +22 -0
  31. data/omnibus/config/patches/ruby/ruby-aix-atomic.patch +11 -0
  32. data/omnibus/config/patches/ruby/ruby-aix-configure-all-source.patch +11 -0
  33. data/omnibus/config/patches/ruby/ruby-aix-configure-use-bash.patch +8 -0
  34. data/omnibus/config/patches/ruby/ruby-aix-configure.patch +20 -0
  35. data/omnibus/config/patches/ruby/ruby-aix-vm-core.patch +14 -0
  36. data/omnibus/config/patches/ruby/ruby-mkmf.patch +29 -0
  37. data/omnibus/config/patches/ruby/ruby-no-m32-cflag.patch +38 -0
  38. data/omnibus/config/patches/ruby/ruby-no-stack-protector.patch +13 -0
  39. data/omnibus/config/patches/ruby/ruby-remove-headc.patch +10 -0
  40. data/omnibus/config/patches/ruby/ruby-solaris-linux-socket-compat.patch +42 -0
  41. data/omnibus/config/patches/ruby/ruby-take-windres-rcflags.patch +11 -0
  42. data/omnibus/config/patches/ruby/ruby_aix_2_1_3_ssl_EAGAIN.patch +19 -0
  43. data/omnibus/config/patches/ruby/ruby_aix_openssl.patch +10 -0
  44. data/omnibus/config/patches/ruby/ruby_nano.patch +68 -0
  45. data/omnibus/config/patches/zlib/zlib-windows-relocate.patch +20 -0
  46. data/omnibus/config/projects/clusterlb.rb +38 -0
  47. data/omnibus/config/software/acme.sh.rb +18 -0
  48. data/omnibus/config/software/cacerts.rb +89 -0
  49. data/omnibus/config/software/clusterlb-gem.rb +25 -0
  50. data/omnibus/config/software/clusterlb-zlib.rb +55 -0
  51. data/omnibus/config/software/config_guess.rb +36 -0
  52. data/omnibus/config/software/libffi.rb +70 -0
  53. data/omnibus/config/software/libiconv.rb +62 -0
  54. data/omnibus/config/software/libtool.rb +55 -0
  55. data/omnibus/config/software/libyaml.rb +46 -0
  56. data/omnibus/config/software/makedepend.rb +43 -0
  57. data/omnibus/config/software/ncurses.rb +154 -0
  58. data/omnibus/config/software/oggcert-gem.rb +24 -0
  59. data/omnibus/config/software/openssl.rb +166 -0
  60. data/omnibus/config/software/pkg-config-lite.rb +45 -0
  61. data/omnibus/config/software/preparation.rb +30 -0
  62. data/omnibus/config/software/ruby.rb +238 -0
  63. data/omnibus/config/software/rubygems.rb +89 -0
  64. data/omnibus/config/software/util-macros.rb +43 -0
  65. data/omnibus/config/software/xproto.rb +43 -0
  66. data/omnibus/config/software/zlib.rb +84 -0
  67. data/omnibus/omnibus.rb +54 -0
  68. data/omnibus/package-scripts/clusterlb/postinst +17 -0
  69. data/omnibus/package-scripts/clusterlb/postrm +9 -0
  70. data/omnibus/package-scripts/clusterlb/preinst +7 -0
  71. data/omnibus/package-scripts/clusterlb/prerm +15 -0
  72. data/omnibus/resources/clusterlb/deb/conffiles.erb +3 -0
  73. data/omnibus/resources/clusterlb/deb/control.erb +25 -0
  74. data/omnibus/resources/clusterlb/deb/md5sums.erb +3 -0
  75. metadata +124 -2
@@ -0,0 +1,857 @@
1
+ --- config.guess.orig 2010-09-28 17:11:39.000000000 -0600
2
+ +++ config.guess 2015-10-16 12:51:43.293305861 -0600
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
+ -# Free Software Foundation, Inc.
9
+ +# Copyright 1992-2015 Free Software Foundation, Inc.
10
+
11
+ -timestamp='2010-09-24'
12
+ +timestamp='2015-09-14'
13
+
14
+ # This file is free software; you can redistribute it and/or modify it
15
+ # under the terms of the GNU General Public License as published by
16
+ -# the Free Software Foundation; either version 2 of the License, or
17
+ +# the Free Software Foundation; either version 3 of the License, or
18
+ # (at your option) any later version.
19
+ #
20
+ # This program is distributed in the hope that it will be useful, but
21
+ @@ -17,26 +15,22 @@
22
+ # General Public License for more details.
23
+ #
24
+ # You should have received a copy of the GNU General Public License
25
+ -# along with this program; if not, write to the Free Software
26
+ -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
27
+ -# 02110-1301, USA.
28
+ +# along with this program; if not, see <http://www.gnu.org/licenses/>.
29
+ #
30
+ # As a special exception to the GNU General Public License, if you
31
+ # distribute this file as part of a program that contains a
32
+ # configuration script generated by Autoconf, you may include it under
33
+ -# the same distribution terms that you use for the rest of that program.
34
+ -
35
+ -
36
+ -# Originally written by Per Bothner. Please send patches (context
37
+ -# diff format) to <config-patches@gnu.org> and include a ChangeLog
38
+ -# entry.
39
+ +# the same distribution terms that you use for the rest of that
40
+ +# program. This Exception is an additional permission under section 7
41
+ +# of the GNU General Public License, version 3 ("GPLv3").
42
+ #
43
+ -# This script attempts to guess a canonical system name similar to
44
+ -# config.sub. If it succeeds, it prints the system name on stdout, and
45
+ -# exits with 0. Otherwise, it exits with 1.
46
+ +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
47
+ #
48
+ # You can get the latest version of this script from:
49
+ # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
50
+ +#
51
+ +# Please send patches to <config-patches@gnu.org>.
52
+ +
53
+
54
+ me=`echo "$0" | sed -e 's,.*/,,'`
55
+
56
+ @@ -56,9 +50,7 @@
57
+ GNU config.guess ($timestamp)
58
+
59
+ Originally written by Per Bothner.
60
+ -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
61
+ -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
62
+ -Software Foundation, Inc.
63
+ +Copyright 1992-2015 Free Software Foundation, Inc.
64
+
65
+ This is free software; see the source for copying conditions. There is NO
66
+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
67
+ @@ -92,7 +84,7 @@
68
+ exit 1
69
+ fi
70
+
71
+ -trap 'exit 1' HUP INT TERM
72
+ +trap 'exit 1' 1 2 15
73
+
74
+ # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
75
+ # compiler to aid in system detection is discouraged as it requires
76
+ @@ -106,7 +98,7 @@
77
+
78
+ set_cc_for_build='
79
+ trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
80
+ -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
81
+ +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
82
+ : ${TMPDIR=/tmp} ;
83
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
84
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
85
+ @@ -140,12 +132,33 @@
86
+ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
87
+ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
88
+
89
+ +case "${UNAME_SYSTEM}" in
90
+ +Linux|GNU|GNU/*)
91
+ + # If the system lacks a compiler, then just pick glibc.
92
+ + # We could probably try harder.
93
+ + LIBC=gnu
94
+ +
95
+ + eval $set_cc_for_build
96
+ + cat <<-EOF > $dummy.c
97
+ + #include <features.h>
98
+ + #if defined(__UCLIBC__)
99
+ + LIBC=uclibc
100
+ + #elif defined(__dietlibc__)
101
+ + LIBC=dietlibc
102
+ + #else
103
+ + LIBC=gnu
104
+ + #endif
105
+ + EOF
106
+ + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
107
+ + ;;
108
+ +esac
109
+ +
110
+ # Note: order is significant - the case branches are not exclusive.
111
+
112
+ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
113
+ *:NetBSD:*:*)
114
+ # NetBSD (nbsd) targets should (where applicable) match one or
115
+ - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
116
+ + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
117
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
118
+ # switched to ELF, *-*-netbsd* would select the old
119
+ # object file format. This provides both forward
120
+ @@ -155,20 +168,27 @@
121
+ # Note: NetBSD doesn't particularly care about the vendor
122
+ # portion of the name. We always set it to "unknown".
123
+ sysctl="sysctl -n hw.machine_arch"
124
+ - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
125
+ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
126
+ + UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
127
+ + /sbin/$sysctl 2>/dev/null || \
128
+ + /usr/sbin/$sysctl 2>/dev/null || \
129
+ + echo unknown)`
130
+ case "${UNAME_MACHINE_ARCH}" in
131
+ armeb) machine=armeb-unknown ;;
132
+ arm*) machine=arm-unknown ;;
133
+ sh3el) machine=shl-unknown ;;
134
+ sh3eb) machine=sh-unknown ;;
135
+ sh5el) machine=sh5le-unknown ;;
136
+ + earmv*)
137
+ + arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
138
+ + endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
139
+ + machine=${arch}${endian}-unknown
140
+ + ;;
141
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
142
+ esac
143
+ # The Operating System including object format, if it has switched
144
+ # to ELF recently, or will in the future.
145
+ case "${UNAME_MACHINE_ARCH}" in
146
+ - arm*|i386|m68k|ns32k|sh3*|sparc|vax)
147
+ + arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
148
+ eval $set_cc_for_build
149
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
150
+ | grep -q __ELF__
151
+ @@ -184,6 +204,13 @@
152
+ os=netbsd
153
+ ;;
154
+ esac
155
+ + # Determine ABI tags.
156
+ + case "${UNAME_MACHINE_ARCH}" in
157
+ + earm*)
158
+ + expr='s/^earmv[0-9]/-eabi/;s/eb$//'
159
+ + abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
160
+ + ;;
161
+ + esac
162
+ # The OS release
163
+ # Debian GNU/NetBSD machines have a different userland, and
164
+ # thus, need a distinct triplet. However, they do not need
165
+ @@ -194,13 +221,17 @@
166
+ release='-gnu'
167
+ ;;
168
+ *)
169
+ - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
170
+ + release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
171
+ ;;
172
+ esac
173
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
174
+ # contains redundant information, the shorter form:
175
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
176
+ - echo "${machine}-${os}${release}"
177
+ + echo "${machine}-${os}${release}${abi}"
178
+ + exit ;;
179
+ + *:Bitrig:*:*)
180
+ + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
181
+ + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
182
+ exit ;;
183
+ *:OpenBSD:*:*)
184
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
185
+ @@ -218,12 +249,15 @@
186
+ *:MirBSD:*:*)
187
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
188
+ exit ;;
189
+ + *:Sortix:*:*)
190
+ + echo ${UNAME_MACHINE}-unknown-sortix
191
+ + exit ;;
192
+ alpha:OSF1:*:*)
193
+ case $UNAME_RELEASE in
194
+ - *4.0)
195
+ + *4.0)
196
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
197
+ ;;
198
+ - *5.*)
199
+ + *5.*)
200
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
201
+ ;;
202
+ esac
203
+ @@ -270,7 +304,10 @@
204
+ # A Xn.n version is an unreleased experimental baselevel.
205
+ # 1.2 uses "1.2" for uname -r.
206
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
207
+ - exit ;;
208
+ + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
209
+ + exitcode=$?
210
+ + trap '' 0
211
+ + exit $exitcode ;;
212
+ Alpha\ *:Windows_NT*:*)
213
+ # How do we know it's Interix rather than the generic POSIX subsystem?
214
+ # Should we change UNAME_MACHINE based on the output of uname instead
215
+ @@ -301,7 +338,7 @@
216
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
217
+ echo arm-acorn-riscix${UNAME_RELEASE}
218
+ exit ;;
219
+ - arm:riscos:*:*|arm:RISCOS:*:*)
220
+ + arm*:riscos:*:*|arm*:RISCOS:*:*)
221
+ echo arm-unknown-riscos
222
+ exit ;;
223
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
224
+ @@ -326,8 +363,8 @@
225
+ sparc) echo sparc-icl-nx7; exit ;;
226
+ esac ;;
227
+ s390x:SunOS:*:*)
228
+ - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
229
+ - exit ;;
230
+ + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
231
+ + exit ;;
232
+ sun4H:SunOS:5.*:*)
233
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
234
+ exit ;;
235
+ @@ -495,7 +532,7 @@
236
+ else
237
+ echo i586-dg-dgux${UNAME_RELEASE}
238
+ fi
239
+ - exit ;;
240
+ + exit ;;
241
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
242
+ echo m88k-dolphin-sysv3
243
+ exit ;;
244
+ @@ -559,8 +596,9 @@
245
+ else
246
+ IBM_ARCH=powerpc
247
+ fi
248
+ - if [ -x /usr/bin/oslevel ] ; then
249
+ - IBM_REV=`/usr/bin/oslevel`
250
+ + if [ -x /usr/bin/lslpp ] ; then
251
+ + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
252
+ + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
253
+ else
254
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
255
+ fi
256
+ @@ -597,50 +635,50 @@
257
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
258
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
259
+ case "${sc_cpu_version}" in
260
+ - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
261
+ - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
262
+ - 532) # CPU_PA_RISC2_0
263
+ - case "${sc_kernel_bits}" in
264
+ - 32) HP_ARCH="hppa2.0n" ;;
265
+ - 64) HP_ARCH="hppa2.0w" ;;
266
+ + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
267
+ + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
268
+ + 532) # CPU_PA_RISC2_0
269
+ + case "${sc_kernel_bits}" in
270
+ + 32) HP_ARCH="hppa2.0n" ;;
271
+ + 64) HP_ARCH="hppa2.0w" ;;
272
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
273
+ - esac ;;
274
+ - esac
275
+ + esac ;;
276
+ + esac
277
+ fi
278
+ if [ "${HP_ARCH}" = "" ]; then
279
+ eval $set_cc_for_build
280
+ - sed 's/^ //' << EOF >$dummy.c
281
+ + sed 's/^ //' << EOF >$dummy.c
282
+ +
283
+ + #define _HPUX_SOURCE
284
+ + #include <stdlib.h>
285
+ + #include <unistd.h>
286
+ +
287
+ + int main ()
288
+ + {
289
+ + #if defined(_SC_KERNEL_BITS)
290
+ + long bits = sysconf(_SC_KERNEL_BITS);
291
+ + #endif
292
+ + long cpu = sysconf (_SC_CPU_VERSION);
293
+
294
+ - #define _HPUX_SOURCE
295
+ - #include <stdlib.h>
296
+ - #include <unistd.h>
297
+ -
298
+ - int main ()
299
+ - {
300
+ - #if defined(_SC_KERNEL_BITS)
301
+ - long bits = sysconf(_SC_KERNEL_BITS);
302
+ - #endif
303
+ - long cpu = sysconf (_SC_CPU_VERSION);
304
+ -
305
+ - switch (cpu)
306
+ - {
307
+ - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
308
+ - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
309
+ - case CPU_PA_RISC2_0:
310
+ - #if defined(_SC_KERNEL_BITS)
311
+ - switch (bits)
312
+ - {
313
+ - case 64: puts ("hppa2.0w"); break;
314
+ - case 32: puts ("hppa2.0n"); break;
315
+ - default: puts ("hppa2.0"); break;
316
+ - } break;
317
+ - #else /* !defined(_SC_KERNEL_BITS) */
318
+ - puts ("hppa2.0"); break;
319
+ - #endif
320
+ - default: puts ("hppa1.0"); break;
321
+ - }
322
+ - exit (0);
323
+ - }
324
+ + switch (cpu)
325
+ + {
326
+ + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
327
+ + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
328
+ + case CPU_PA_RISC2_0:
329
+ + #if defined(_SC_KERNEL_BITS)
330
+ + switch (bits)
331
+ + {
332
+ + case 64: puts ("hppa2.0w"); break;
333
+ + case 32: puts ("hppa2.0n"); break;
334
+ + default: puts ("hppa2.0"); break;
335
+ + } break;
336
+ + #else /* !defined(_SC_KERNEL_BITS) */
337
+ + puts ("hppa2.0"); break;
338
+ + #endif
339
+ + default: puts ("hppa1.0"); break;
340
+ + }
341
+ + exit (0);
342
+ + }
343
+ EOF
344
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
345
+ test -z "$HP_ARCH" && HP_ARCH=hppa
346
+ @@ -789,21 +827,26 @@
347
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
348
+ exit ;;
349
+ *:FreeBSD:*:*)
350
+ - case ${UNAME_MACHINE} in
351
+ - pc98)
352
+ - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
353
+ + UNAME_PROCESSOR=`/usr/bin/uname -p`
354
+ + case ${UNAME_PROCESSOR} in
355
+ amd64)
356
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
357
+ *)
358
+ - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
359
+ + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
360
+ esac
361
+ exit ;;
362
+ i*:CYGWIN*:*)
363
+ echo ${UNAME_MACHINE}-pc-cygwin
364
+ exit ;;
365
+ + *:MINGW64*:*)
366
+ + echo ${UNAME_MACHINE}-pc-mingw64
367
+ + exit ;;
368
+ *:MINGW*:*)
369
+ echo ${UNAME_MACHINE}-pc-mingw32
370
+ exit ;;
371
+ + *:MSYS*:*)
372
+ + echo ${UNAME_MACHINE}-pc-msys
373
+ + exit ;;
374
+ i*:windows32*:*)
375
+ # uname -m includes "-pc" on this system.
376
+ echo ${UNAME_MACHINE}-mingw32
377
+ @@ -820,8 +863,8 @@
378
+ echo x86_64-unknown-interix${UNAME_RELEASE}
379
+ exit ;;
380
+ IA64)
381
+ - echo ia64-unknown-interix${UNAME_RELEASE}
382
+ - exit ;;
383
+ + echo ia64-unknown-interix${UNAME_RELEASE}
384
+ + exit ;;
385
+ esac ;;
386
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
387
+ echo i${UNAME_MACHINE}-pc-mks
388
+ @@ -849,70 +892,87 @@
389
+ exit ;;
390
+ *:GNU:*:*)
391
+ # the GNU system
392
+ - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
393
+ + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
394
+ exit ;;
395
+ *:GNU/*:*:*)
396
+ # other systems with GNU libc and userland
397
+ - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
398
+ + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
399
+ exit ;;
400
+ i*86:Minix:*:*)
401
+ echo ${UNAME_MACHINE}-pc-minix
402
+ exit ;;
403
+ + aarch64:Linux:*:*)
404
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
405
+ + exit ;;
406
+ + aarch64_be:Linux:*:*)
407
+ + UNAME_MACHINE=aarch64_be
408
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
409
+ + exit ;;
410
+ alpha:Linux:*:*)
411
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
412
+ - EV5) UNAME_MACHINE=alphaev5 ;;
413
+ - EV56) UNAME_MACHINE=alphaev56 ;;
414
+ - PCA56) UNAME_MACHINE=alphapca56 ;;
415
+ - PCA57) UNAME_MACHINE=alphapca56 ;;
416
+ - EV6) UNAME_MACHINE=alphaev6 ;;
417
+ - EV67) UNAME_MACHINE=alphaev67 ;;
418
+ - EV68*) UNAME_MACHINE=alphaev68 ;;
419
+ + EV5) UNAME_MACHINE=alphaev5 ;;
420
+ + EV56) UNAME_MACHINE=alphaev56 ;;
421
+ + PCA56) UNAME_MACHINE=alphapca56 ;;
422
+ + PCA57) UNAME_MACHINE=alphapca56 ;;
423
+ + EV6) UNAME_MACHINE=alphaev6 ;;
424
+ + EV67) UNAME_MACHINE=alphaev67 ;;
425
+ + EV68*) UNAME_MACHINE=alphaev68 ;;
426
+ esac
427
+ objdump --private-headers /bin/sh | grep -q ld.so.1
428
+ - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
429
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
430
+ + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
431
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
432
+ + exit ;;
433
+ + arc:Linux:*:* | arceb:Linux:*:*)
434
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
435
+ exit ;;
436
+ arm*:Linux:*:*)
437
+ eval $set_cc_for_build
438
+ - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null | \
439
+ - grep -q __ARM_EABI__
440
+ + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
441
+ + | grep -q __ARM_EABI__
442
+ then
443
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
444
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
445
+ else
446
+ - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
447
+ + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
448
+ + | grep -q __ARM_PCS_VFP
449
+ + then
450
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
451
+ + else
452
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
453
+ + fi
454
+ fi
455
+ exit ;;
456
+ avr32*:Linux:*:*)
457
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
458
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
459
+ exit ;;
460
+ cris:Linux:*:*)
461
+ - echo cris-axis-linux-gnu
462
+ + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
463
+ exit ;;
464
+ crisv32:Linux:*:*)
465
+ - echo crisv32-axis-linux-gnu
466
+ + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
467
+ + exit ;;
468
+ + e2k:Linux:*:*)
469
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
470
+ exit ;;
471
+ frv:Linux:*:*)
472
+ - echo frv-unknown-linux-gnu
473
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
474
+ + exit ;;
475
+ + hexagon:Linux:*:*)
476
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
477
+ exit ;;
478
+ i*86:Linux:*:*)
479
+ - LIBC=gnu
480
+ - eval $set_cc_for_build
481
+ - sed 's/^ //' << EOF >$dummy.c
482
+ - #ifdef __dietlibc__
483
+ - LIBC=dietlibc
484
+ - #endif
485
+ -EOF
486
+ - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
487
+ - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
488
+ + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
489
+ exit ;;
490
+ ia64:Linux:*:*)
491
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
492
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
493
+ + exit ;;
494
+ + k1om:Linux:*:*)
495
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
496
+ exit ;;
497
+ m32r*:Linux:*:*)
498
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
499
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
500
+ exit ;;
501
+ m68*:Linux:*:*)
502
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
503
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
504
+ exit ;;
505
+ mips:Linux:*:* | mips64:Linux:*:*)
506
+ eval $set_cc_for_build
507
+ @@ -931,54 +991,63 @@
508
+ #endif
509
+ EOF
510
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
511
+ - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
512
+ + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
513
+ ;;
514
+ - or32:Linux:*:*)
515
+ - echo or32-unknown-linux-gnu
516
+ - exit ;;
517
+ + openrisc*:Linux:*:*)
518
+ + echo or1k-unknown-linux-${LIBC}
519
+ + exit ;;
520
+ + or32:Linux:*:* | or1k*:Linux:*:*)
521
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
522
+ + exit ;;
523
+ padre:Linux:*:*)
524
+ - echo sparc-unknown-linux-gnu
525
+ + echo sparc-unknown-linux-${LIBC}
526
+ exit ;;
527
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
528
+ - echo hppa64-unknown-linux-gnu
529
+ - exit ;;
530
+ + echo hppa64-unknown-linux-${LIBC}
531
+ + exit ;;
532
+ parisc:Linux:*:* | hppa:Linux:*:*)
533
+ # Look for CPU level
534
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
535
+ - PA7*) echo hppa1.1-unknown-linux-gnu ;;
536
+ - PA8*) echo hppa2.0-unknown-linux-gnu ;;
537
+ - *) echo hppa-unknown-linux-gnu ;;
538
+ + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
539
+ + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
540
+ + *) echo hppa-unknown-linux-${LIBC} ;;
541
+ esac
542
+ exit ;;
543
+ ppc64:Linux:*:*)
544
+ - echo powerpc64-unknown-linux-gnu
545
+ + echo powerpc64-unknown-linux-${LIBC}
546
+ exit ;;
547
+ ppc:Linux:*:*)
548
+ - echo powerpc-unknown-linux-gnu
549
+ + echo powerpc-unknown-linux-${LIBC}
550
+ + exit ;;
551
+ + ppc64le:Linux:*:*)
552
+ + echo powerpc64le-unknown-linux-${LIBC}
553
+ + exit ;;
554
+ + ppcle:Linux:*:*)
555
+ + echo powerpcle-unknown-linux-${LIBC}
556
+ exit ;;
557
+ s390:Linux:*:* | s390x:Linux:*:*)
558
+ - echo ${UNAME_MACHINE}-ibm-linux
559
+ + echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
560
+ exit ;;
561
+ sh64*:Linux:*:*)
562
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
563
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
564
+ exit ;;
565
+ sh*:Linux:*:*)
566
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
567
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
568
+ exit ;;
569
+ sparc:Linux:*:* | sparc64:Linux:*:*)
570
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
571
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
572
+ exit ;;
573
+ tile*:Linux:*:*)
574
+ - echo ${UNAME_MACHINE}-tilera-linux-gnu
575
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
576
+ exit ;;
577
+ vax:Linux:*:*)
578
+ - echo ${UNAME_MACHINE}-dec-linux-gnu
579
+ + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
580
+ exit ;;
581
+ x86_64:Linux:*:*)
582
+ - echo x86_64-unknown-linux-gnu
583
+ + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
584
+ exit ;;
585
+ xtensa*:Linux:*:*)
586
+ - echo ${UNAME_MACHINE}-unknown-linux-gnu
587
+ + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
588
+ exit ;;
589
+ i*86:DYNIX/ptx:4*:*)
590
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
591
+ @@ -1093,7 +1162,7 @@
592
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
593
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
594
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
595
+ - && { echo i486-ncr-sysv4; exit; } ;;
596
+ + && { echo i486-ncr-sysv4; exit; } ;;
597
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
598
+ OS_REL='.3'
599
+ test -r /etc/.relid \
600
+ @@ -1136,8 +1205,8 @@
601
+ echo ns32k-sni-sysv
602
+ fi
603
+ exit ;;
604
+ - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
605
+ - # says <Richard.M.Bartel@ccMail.Census.GOV>
606
+ + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
607
+ + # says <Richard.M.Bartel@ccMail.Census.GOV>
608
+ echo i586-unisys-sysv4
609
+ exit ;;
610
+ *:UNIX_System_V:4*:FTX*)
611
+ @@ -1165,9 +1234,9 @@
612
+ exit ;;
613
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
614
+ if [ -d /usr/nec ]; then
615
+ - echo mips-nec-sysv${UNAME_RELEASE}
616
+ + echo mips-nec-sysv${UNAME_RELEASE}
617
+ else
618
+ - echo mips-unknown-sysv${UNAME_RELEASE}
619
+ + echo mips-unknown-sysv${UNAME_RELEASE}
620
+ fi
621
+ exit ;;
622
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
623
+ @@ -1182,6 +1251,9 @@
624
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
625
+ echo i586-pc-haiku
626
+ exit ;;
627
+ + x86_64:Haiku:*:*)
628
+ + echo x86_64-unknown-haiku
629
+ + exit ;;
630
+ SX-4:SUPER-UX:*:*)
631
+ echo sx4-nec-superux${UNAME_RELEASE}
632
+ exit ;;
633
+ @@ -1208,26 +1280,38 @@
634
+ exit ;;
635
+ *:Darwin:*:*)
636
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
637
+ - case $UNAME_PROCESSOR in
638
+ - i386)
639
+ - eval $set_cc_for_build
640
+ - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
641
+ - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
642
+ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
643
+ - grep IS_64BIT_ARCH >/dev/null
644
+ - then
645
+ - UNAME_PROCESSOR="x86_64"
646
+ - fi
647
+ - fi ;;
648
+ - unknown) UNAME_PROCESSOR=powerpc ;;
649
+ - esac
650
+ + eval $set_cc_for_build
651
+ + if test "$UNAME_PROCESSOR" = unknown ; then
652
+ + UNAME_PROCESSOR=powerpc
653
+ + fi
654
+ + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
655
+ + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
656
+ + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
657
+ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
658
+ + grep IS_64BIT_ARCH >/dev/null
659
+ + then
660
+ + case $UNAME_PROCESSOR in
661
+ + i386) UNAME_PROCESSOR=x86_64 ;;
662
+ + powerpc) UNAME_PROCESSOR=powerpc64 ;;
663
+ + esac
664
+ + fi
665
+ + fi
666
+ + elif test "$UNAME_PROCESSOR" = i386 ; then
667
+ + # Avoid executing cc on OS X 10.9, as it ships with a stub
668
+ + # that puts up a graphical alert prompting to install
669
+ + # developer tools. Any system running Mac OS X 10.7 or
670
+ + # later (Darwin 11 and later) is required to have a 64-bit
671
+ + # processor. This is not true of the ARM version of Darwin
672
+ + # that Apple uses in portable devices.
673
+ + UNAME_PROCESSOR=x86_64
674
+ + fi
675
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
676
+ exit ;;
677
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
678
+ UNAME_PROCESSOR=`uname -p`
679
+ if test "$UNAME_PROCESSOR" = "x86"; then
680
+ - UNAME_PROCESSOR=i386
681
+ - UNAME_MACHINE=pc
682
+ + UNAME_PROCESSOR=i386
683
+ + UNAME_MACHINE=pc
684
+ fi
685
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
686
+ exit ;;
687
+ @@ -1237,7 +1321,7 @@
688
+ NEO-?:NONSTOP_KERNEL:*:*)
689
+ echo neo-tandem-nsk${UNAME_RELEASE}
690
+ exit ;;
691
+ - NSE-?:NONSTOP_KERNEL:*:*)
692
+ + NSE-*:NONSTOP_KERNEL:*:*)
693
+ echo nse-tandem-nsk${UNAME_RELEASE}
694
+ exit ;;
695
+ NSR-?:NONSTOP_KERNEL:*:*)
696
+ @@ -1306,158 +1390,10 @@
697
+ i*86:AROS:*:*)
698
+ echo ${UNAME_MACHINE}-pc-aros
699
+ exit ;;
700
+ -esac
701
+ -
702
+ -#echo '(No uname command or uname output not recognized.)' 1>&2
703
+ -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
704
+ -
705
+ -eval $set_cc_for_build
706
+ -cat >$dummy.c <<EOF
707
+ -#ifdef _SEQUENT_
708
+ -# include <sys/types.h>
709
+ -# include <sys/utsname.h>
710
+ -#endif
711
+ -main ()
712
+ -{
713
+ -#if defined (sony)
714
+ -#if defined (MIPSEB)
715
+ - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
716
+ - I don't know.... */
717
+ - printf ("mips-sony-bsd\n"); exit (0);
718
+ -#else
719
+ -#include <sys/param.h>
720
+ - printf ("m68k-sony-newsos%s\n",
721
+ -#ifdef NEWSOS4
722
+ - "4"
723
+ -#else
724
+ - ""
725
+ -#endif
726
+ - ); exit (0);
727
+ -#endif
728
+ -#endif
729
+ -
730
+ -#if defined (__arm) && defined (__acorn) && defined (__unix)
731
+ - printf ("arm-acorn-riscix\n"); exit (0);
732
+ -#endif
733
+ -
734
+ -#if defined (hp300) && !defined (hpux)
735
+ - printf ("m68k-hp-bsd\n"); exit (0);
736
+ -#endif
737
+ -
738
+ -#if defined (NeXT)
739
+ -#if !defined (__ARCHITECTURE__)
740
+ -#define __ARCHITECTURE__ "m68k"
741
+ -#endif
742
+ - int version;
743
+ - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
744
+ - if (version < 4)
745
+ - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
746
+ - else
747
+ - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
748
+ - exit (0);
749
+ -#endif
750
+ -
751
+ -#if defined (MULTIMAX) || defined (n16)
752
+ -#if defined (UMAXV)
753
+ - printf ("ns32k-encore-sysv\n"); exit (0);
754
+ -#else
755
+ -#if defined (CMU)
756
+ - printf ("ns32k-encore-mach\n"); exit (0);
757
+ -#else
758
+ - printf ("ns32k-encore-bsd\n"); exit (0);
759
+ -#endif
760
+ -#endif
761
+ -#endif
762
+ -
763
+ -#if defined (__386BSD__)
764
+ - printf ("i386-pc-bsd\n"); exit (0);
765
+ -#endif
766
+ -
767
+ -#if defined (sequent)
768
+ -#if defined (i386)
769
+ - printf ("i386-sequent-dynix\n"); exit (0);
770
+ -#endif
771
+ -#if defined (ns32000)
772
+ - printf ("ns32k-sequent-dynix\n"); exit (0);
773
+ -#endif
774
+ -#endif
775
+ -
776
+ -#if defined (_SEQUENT_)
777
+ - struct utsname un;
778
+ -
779
+ - uname(&un);
780
+ -
781
+ - if (strncmp(un.version, "V2", 2) == 0) {
782
+ - printf ("i386-sequent-ptx2\n"); exit (0);
783
+ - }
784
+ - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
785
+ - printf ("i386-sequent-ptx1\n"); exit (0);
786
+ - }
787
+ - printf ("i386-sequent-ptx\n"); exit (0);
788
+ -
789
+ -#endif
790
+ -
791
+ -#if defined (vax)
792
+ -# if !defined (ultrix)
793
+ -# include <sys/param.h>
794
+ -# if defined (BSD)
795
+ -# if BSD == 43
796
+ - printf ("vax-dec-bsd4.3\n"); exit (0);
797
+ -# else
798
+ -# if BSD == 199006
799
+ - printf ("vax-dec-bsd4.3reno\n"); exit (0);
800
+ -# else
801
+ - printf ("vax-dec-bsd\n"); exit (0);
802
+ -# endif
803
+ -# endif
804
+ -# else
805
+ - printf ("vax-dec-bsd\n"); exit (0);
806
+ -# endif
807
+ -# else
808
+ - printf ("vax-dec-ultrix\n"); exit (0);
809
+ -# endif
810
+ -#endif
811
+ -
812
+ -#if defined (alliant) && defined (i860)
813
+ - printf ("i860-alliant-bsd\n"); exit (0);
814
+ -#endif
815
+ -
816
+ - exit (1);
817
+ -}
818
+ -EOF
819
+ -
820
+ -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
821
+ - { echo "$SYSTEM_NAME"; exit; }
822
+ -
823
+ -# Apollos put the system type in the environment.
824
+ -
825
+ -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
826
+ -
827
+ -# Convex versions that predate uname can use getsysinfo(1)
828
+ -
829
+ -if [ -x /usr/convex/getsysinfo ]
830
+ -then
831
+ - case `getsysinfo -f cpu_type` in
832
+ - c1*)
833
+ - echo c1-convex-bsd
834
+ - exit ;;
835
+ - c2*)
836
+ - if getsysinfo -f scalar_acc
837
+ - then echo c32-convex-bsd
838
+ - else echo c2-convex-bsd
839
+ - fi
840
+ + x86_64:VMkernel:*:*)
841
+ + echo ${UNAME_MACHINE}-unknown-esx
842
+ exit ;;
843
+ - c34*)
844
+ - echo c34-convex-bsd
845
+ - exit ;;
846
+ - c38*)
847
+ - echo c38-convex-bsd
848
+ - exit ;;
849
+ - c4*)
850
+ - echo c4-convex-bsd
851
+ - exit ;;
852
+ - esac
853
+ -fi
854
+ +esac
855
+
856
+ cat >&2 <<EOF
857
+ $0: unable to guess system type