ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/stable/0.9/contrib/subversion/build/config.guess
(Generate patch)

Comparing stable/0.9/contrib/subversion/build/config.guess (file contents):
Revision 9601 by laffer1, Sun Oct 1 16:03:07 2017 UTC vs.
Revision 9602 by laffer1, Sun Oct 1 22:12:45 2017 UTC

# Line 1 | Line 1
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, 2005, 2006, 2007, 2008, 2009, 2010,
5 < #   2011 Free Software Foundation, Inc.
3 > #   Copyright 1992-2014 Free Software Foundation, Inc.
4  
5 < timestamp='2011-10-01'
5 > timestamp='2014-03-23'
6  
7   # This file is free software; you can redistribute it and/or modify it
8   # under the terms of the GNU General Public License as published by
9 < # the Free Software Foundation; either version 2 of the License, or
9 > # the Free Software Foundation; either version 3 of the License, or
10   # (at your option) any later version.
11   #
12   # This program is distributed in the hope that it will be useful, but
# Line 17 | Line 15 | timestamp='2011-10-01'
15   # General Public License for more details.
16   #
17   # You should have received a copy of the GNU General Public License
18 < # 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.
18 > # along with this program; if not, see <http://www.gnu.org/licenses/>.
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 <
25 <
30 < # Originally written by Per Bothner.  Please send patches (context
31 < # diff format) to <config-patches@gnu.org> and include a ChangeLog
32 < # entry.
23 > # the same distribution terms that you use for the rest of that
24 > # program.  This Exception is an additional permission under section 7
25 > # of the GNU General Public License, version 3 ("GPLv3").
26   #
27 < # This script attempts to guess a canonical system name similar to
35 < # config.sub.  If it succeeds, it prints the system name on stdout, and
36 < # exits with 0.  Otherwise, it exits with 1.
27 > # Originally written by Per Bothner.
28   #
29   # You can get the latest version of this script from:
30   # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
31 + #
32 + # Please send patches with a ChangeLog entry to config-patches@gnu.org.
33  
34 +
35   me=`echo "$0" | sed -e 's,.*/,,'`
36  
37   usage="\
# Line 56 | Line 50 | version="\
50   GNU config.guess ($timestamp)
51  
52   Originally written by Per Bothner.
53 < Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60 < 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
61 < Software Foundation, Inc.
53 > Copyright 1992-2014 Free Software Foundation, Inc.
54  
55   This is free software; see the source for copying conditions.  There is NO
56   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
# Line 140 | Line 132 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEAS
132   UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
133   UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
134  
135 + case "${UNAME_SYSTEM}" in
136 + Linux|GNU|GNU/*)
137 +        # If the system lacks a compiler, then just pick glibc.
138 +        # We could probably try harder.
139 +        LIBC=gnu
140 +
141 +        eval $set_cc_for_build
142 +        cat <<-EOF > $dummy.c
143 +        #include <features.h>
144 +        #if defined(__UCLIBC__)
145 +        LIBC=uclibc
146 +        #elif defined(__dietlibc__)
147 +        LIBC=dietlibc
148 +        #else
149 +        LIBC=gnu
150 +        #endif
151 +        EOF
152 +        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
153 +        ;;
154 + esac
155 +
156   # Note: order is significant - the case branches are not exclusive.
157  
158   case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
159      *:NetBSD:*:*)
160          # NetBSD (nbsd) targets should (where applicable) match one or
161 <        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
161 >        # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
162          # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
163          # switched to ELF, *-*-netbsd* would select the old
164          # object file format.  This provides both forward
# Line 202 | Line 215 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE
215          # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
216          echo "${machine}-${os}${release}"
217          exit ;;
218 +    *:Bitrig:*:*)
219 +        UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
220 +        echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
221 +        exit ;;
222      *:OpenBSD:*:*)
223          UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
224          echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
# Line 304 | Line 321 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE
321      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
322          echo arm-acorn-riscix${UNAME_RELEASE}
323          exit ;;
324 <    arm:riscos:*:*|arm:RISCOS:*:*)
324 >    arm*:riscos:*:*|arm*:RISCOS:*:*)
325          echo arm-unknown-riscos
326          exit ;;
327      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
# Line 803 | Line 820 | EOF
820      i*:CYGWIN*:*)
821          echo ${UNAME_MACHINE}-pc-cygwin
822          exit ;;
823 +    *:MINGW64*:*)
824 +        echo ${UNAME_MACHINE}-pc-mingw64
825 +        exit ;;
826      *:MINGW*:*)
827          echo ${UNAME_MACHINE}-pc-mingw32
828          exit ;;
829 +    *:MSYS*:*)
830 +        echo ${UNAME_MACHINE}-pc-msys
831 +        exit ;;
832      i*:windows32*:*)
833          # uname -m includes "-pc" on this system.
834          echo ${UNAME_MACHINE}-mingw32
# Line 851 | Line 874 | EOF
874          exit ;;
875      *:GNU:*:*)
876          # the GNU system
877 <        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
877 >        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
878          exit ;;
879      *:GNU/*:*:*)
880          # other systems with GNU libc and userland
881 <        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
881 >        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
882          exit ;;
883      i*86:Minix:*:*)
884          echo ${UNAME_MACHINE}-pc-minix
885          exit ;;
886 +    aarch64:Linux:*:*)
887 +        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
888 +        exit ;;
889 +    aarch64_be:Linux:*:*)
890 +        UNAME_MACHINE=aarch64_be
891 +        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
892 +        exit ;;
893      alpha:Linux:*:*)
894          case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
895            EV5)   UNAME_MACHINE=alphaev5 ;;
# Line 871 | Line 901 | EOF
901            EV68*) UNAME_MACHINE=alphaev68 ;;
902          esac
903          objdump --private-headers /bin/sh | grep -q ld.so.1
904 <        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
905 <        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
904 >        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
905 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
906          exit ;;
907 +    arc:Linux:*:* | arceb:Linux:*:*)
908 +        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
909 +        exit ;;
910      arm*:Linux:*:*)
911          eval $set_cc_for_build
912          if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
913              | grep -q __ARM_EABI__
914          then
915 <            echo ${UNAME_MACHINE}-unknown-linux-gnu
915 >            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
916          else
917              if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
918                  | grep -q __ARM_PCS_VFP
919              then
920 <                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
920 >                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
921              else
922 <                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
922 >                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
923              fi
924          fi
925          exit ;;
926      avr32*:Linux:*:*)
927 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
927 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928          exit ;;
929      cris:Linux:*:*)
930 <        echo cris-axis-linux-gnu
930 >        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
931          exit ;;
932      crisv32:Linux:*:*)
933 <        echo crisv32-axis-linux-gnu
933 >        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
934          exit ;;
935      frv:Linux:*:*)
936 <        echo frv-unknown-linux-gnu
936 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
937          exit ;;
938      hexagon:Linux:*:*)
939 <        echo hexagon-unknown-linux-gnu
939 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940          exit ;;
941      i*86:Linux:*:*)
942 <        LIBC=gnu
910 <        eval $set_cc_for_build
911 <        sed 's/^        //' << EOF >$dummy.c
912 <        #ifdef __dietlibc__
913 <        LIBC=dietlibc
914 <        #endif
915 < EOF
916 <        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
917 <        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
942 >        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
943          exit ;;
944      ia64:Linux:*:*)
945 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
945 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
946          exit ;;
947      m32r*:Linux:*:*)
948 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
948 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949          exit ;;
950      m68*:Linux:*:*)
951 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
951 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952          exit ;;
953      mips:Linux:*:* | mips64:Linux:*:*)
954          eval $set_cc_for_build
# Line 942 | Line 967 | EOF
967          #endif
968   EOF
969          eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
970 <        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
970 >        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
971          ;;
972 <    or32:Linux:*:*)
973 <        echo or32-unknown-linux-gnu
972 >    openrisc*:Linux:*:*)
973 >        echo or1k-unknown-linux-${LIBC}
974          exit ;;
975 +    or32:Linux:*:* | or1k*:Linux:*:*)
976 +        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
977 +        exit ;;
978      padre:Linux:*:*)
979 <        echo sparc-unknown-linux-gnu
979 >        echo sparc-unknown-linux-${LIBC}
980          exit ;;
981      parisc64:Linux:*:* | hppa64:Linux:*:*)
982 <        echo hppa64-unknown-linux-gnu
982 >        echo hppa64-unknown-linux-${LIBC}
983          exit ;;
984      parisc:Linux:*:* | hppa:Linux:*:*)
985          # Look for CPU level
986          case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
987 <          PA7*) echo hppa1.1-unknown-linux-gnu ;;
988 <          PA8*) echo hppa2.0-unknown-linux-gnu ;;
989 <          *)    echo hppa-unknown-linux-gnu ;;
987 >          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
988 >          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
989 >          *)    echo hppa-unknown-linux-${LIBC} ;;
990          esac
991          exit ;;
992      ppc64:Linux:*:*)
993 <        echo powerpc64-unknown-linux-gnu
993 >        echo powerpc64-unknown-linux-${LIBC}
994          exit ;;
995      ppc:Linux:*:*)
996 <        echo powerpc-unknown-linux-gnu
996 >        echo powerpc-unknown-linux-${LIBC}
997          exit ;;
998 +    ppc64le:Linux:*:*)
999 +        echo powerpc64le-unknown-linux-${LIBC}
1000 +        exit ;;
1001 +    ppcle:Linux:*:*)
1002 +        echo powerpcle-unknown-linux-${LIBC}
1003 +        exit ;;
1004      s390:Linux:*:* | s390x:Linux:*:*)
1005 <        echo ${UNAME_MACHINE}-ibm-linux
1005 >        echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1006          exit ;;
1007      sh64*:Linux:*:*)
1008 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1008 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1009          exit ;;
1010      sh*:Linux:*:*)
1011 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1011 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1012          exit ;;
1013      sparc:Linux:*:* | sparc64:Linux:*:*)
1014 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1014 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1015          exit ;;
1016      tile*:Linux:*:*)
1017 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1017 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1018          exit ;;
1019      vax:Linux:*:*)
1020 <        echo ${UNAME_MACHINE}-dec-linux-gnu
1020 >        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1021          exit ;;
1022      x86_64:Linux:*:*)
1023 <        echo x86_64-unknown-linux-gnu
1023 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1024          exit ;;
1025      xtensa*:Linux:*:*)
1026 <        echo ${UNAME_MACHINE}-unknown-linux-gnu
1026 >        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1027          exit ;;
1028      i*86:DYNIX/ptx:4*:*)
1029          # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
# Line 1193 | Line 1227 | EOF
1227      BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
1228          echo i586-pc-haiku
1229          exit ;;
1230 +    x86_64:Haiku:*:*)
1231 +        echo x86_64-unknown-haiku
1232 +        exit ;;
1233      SX-4:SUPER-UX:*:*)
1234          echo sx4-nec-superux${UNAME_RELEASE}
1235          exit ;;
# Line 1219 | Line 1256 | EOF
1256          exit ;;
1257      *:Darwin:*:*)
1258          UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1259 <        case $UNAME_PROCESSOR in
1260 <            i386)
1261 <                eval $set_cc_for_build
1262 <                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1263 <                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1264 <                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1265 <                      grep IS_64BIT_ARCH >/dev/null
1266 <                  then
1267 <                      UNAME_PROCESSOR="x86_64"
1268 <                  fi
1269 <                fi ;;
1270 <            unknown) UNAME_PROCESSOR=powerpc ;;
1271 <        esac
1259 >        eval $set_cc_for_build
1260 >        if test "$UNAME_PROCESSOR" = unknown ; then
1261 >            UNAME_PROCESSOR=powerpc
1262 >        fi
1263 >        if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1264 >            if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1265 >                if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1266 >                    (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1267 >                    grep IS_64BIT_ARCH >/dev/null
1268 >                then
1269 >                    case $UNAME_PROCESSOR in
1270 >                        i386) UNAME_PROCESSOR=x86_64 ;;
1271 >                        powerpc) UNAME_PROCESSOR=powerpc64 ;;
1272 >                    esac
1273 >                fi
1274 >            fi
1275 >        elif test "$UNAME_PROCESSOR" = i386 ; then
1276 >            # Avoid executing cc on OS X 10.9, as it ships with a stub
1277 >            # that puts up a graphical alert prompting to install
1278 >            # developer tools.  Any system running Mac OS X 10.7 or
1279 >            # later (Darwin 11 and later) is required to have a 64-bit
1280 >            # processor. This is not true of the ARM version of Darwin
1281 >            # that Apple uses in portable devices.
1282 >            UNAME_PROCESSOR=x86_64
1283 >        fi
1284          echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1285          exit ;;
1286      *:procnto*:*:* | *:QNX:[0123456789]*:*)
# Line 1248 | Line 1297 | EOF
1297      NEO-?:NONSTOP_KERNEL:*:*)
1298          echo neo-tandem-nsk${UNAME_RELEASE}
1299          exit ;;
1300 <    NSE-?:NONSTOP_KERNEL:*:*)
1300 >    NSE-*:NONSTOP_KERNEL:*:*)
1301          echo nse-tandem-nsk${UNAME_RELEASE}
1302          exit ;;
1303      NSR-?:NONSTOP_KERNEL:*:*)
# Line 1317 | Line 1366 | EOF
1366      i*86:AROS:*:*)
1367          echo ${UNAME_MACHINE}-pc-aros
1368          exit ;;
1369 < esac
1370 <
1322 < #echo '(No uname command or uname output not recognized.)' 1>&2
1323 < #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1324 <
1325 < eval $set_cc_for_build
1326 < cat >$dummy.c <<EOF
1327 < #ifdef _SEQUENT_
1328 < # include <sys/types.h>
1329 < # include <sys/utsname.h>
1330 < #endif
1331 < main ()
1332 < {
1333 < #if defined (sony)
1334 < #if defined (MIPSEB)
1335 <  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
1336 <     I don't know....  */
1337 <  printf ("mips-sony-bsd\n"); exit (0);
1338 < #else
1339 < #include <sys/param.h>
1340 <  printf ("m68k-sony-newsos%s\n",
1341 < #ifdef NEWSOS4
1342 <        "4"
1343 < #else
1344 <        ""
1345 < #endif
1346 <        ); exit (0);
1347 < #endif
1348 < #endif
1349 <
1350 < #if defined (__arm) && defined (__acorn) && defined (__unix)
1351 <  printf ("arm-acorn-riscix\n"); exit (0);
1352 < #endif
1353 <
1354 < #if defined (hp300) && !defined (hpux)
1355 <  printf ("m68k-hp-bsd\n"); exit (0);
1356 < #endif
1357 <
1358 < #if defined (NeXT)
1359 < #if !defined (__ARCHITECTURE__)
1360 < #define __ARCHITECTURE__ "m68k"
1361 < #endif
1362 <  int version;
1363 <  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1364 <  if (version < 4)
1365 <    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1366 <  else
1367 <    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1368 <  exit (0);
1369 < #endif
1370 <
1371 < #if defined (MULTIMAX) || defined (n16)
1372 < #if defined (UMAXV)
1373 <  printf ("ns32k-encore-sysv\n"); exit (0);
1374 < #else
1375 < #if defined (CMU)
1376 <  printf ("ns32k-encore-mach\n"); exit (0);
1377 < #else
1378 <  printf ("ns32k-encore-bsd\n"); exit (0);
1379 < #endif
1380 < #endif
1381 < #endif
1382 <
1383 < #if defined (__386BSD__)
1384 <  printf ("i386-pc-bsd\n"); exit (0);
1385 < #endif
1386 <
1387 < #if defined (sequent)
1388 < #if defined (i386)
1389 <  printf ("i386-sequent-dynix\n"); exit (0);
1390 < #endif
1391 < #if defined (ns32000)
1392 <  printf ("ns32k-sequent-dynix\n"); exit (0);
1393 < #endif
1394 < #endif
1395 <
1396 < #if defined (_SEQUENT_)
1397 <    struct utsname un;
1398 <
1399 <    uname(&un);
1400 <
1401 <    if (strncmp(un.version, "V2", 2) == 0) {
1402 <        printf ("i386-sequent-ptx2\n"); exit (0);
1403 <    }
1404 <    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1405 <        printf ("i386-sequent-ptx1\n"); exit (0);
1406 <    }
1407 <    printf ("i386-sequent-ptx\n"); exit (0);
1408 <
1409 < #endif
1410 <
1411 < #if defined (vax)
1412 < # if !defined (ultrix)
1413 < #  include <sys/param.h>
1414 < #  if defined (BSD)
1415 < #   if BSD == 43
1416 <      printf ("vax-dec-bsd4.3\n"); exit (0);
1417 < #   else
1418 < #    if BSD == 199006
1419 <      printf ("vax-dec-bsd4.3reno\n"); exit (0);
1420 < #    else
1421 <      printf ("vax-dec-bsd\n"); exit (0);
1422 < #    endif
1423 < #   endif
1424 < #  else
1425 <    printf ("vax-dec-bsd\n"); exit (0);
1426 < #  endif
1427 < # else
1428 <    printf ("vax-dec-ultrix\n"); exit (0);
1429 < # endif
1430 < #endif
1431 <
1432 < #if defined (alliant) && defined (i860)
1433 <  printf ("i860-alliant-bsd\n"); exit (0);
1434 < #endif
1435 <
1436 <  exit (1);
1437 < }
1438 < EOF
1439 <
1440 < $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1441 <        { echo "$SYSTEM_NAME"; exit; }
1442 <
1443 < # Apollos put the system type in the environment.
1444 <
1445 < test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1446 <
1447 < # Convex versions that predate uname can use getsysinfo(1)
1448 <
1449 < if [ -x /usr/convex/getsysinfo ]
1450 < then
1451 <    case `getsysinfo -f cpu_type` in
1452 <    c1*)
1453 <        echo c1-convex-bsd
1369 >    x86_64:VMkernel:*:*)
1370 >        echo ${UNAME_MACHINE}-unknown-esx
1371          exit ;;
1372 <    c2*)
1456 <        if getsysinfo -f scalar_acc
1457 <        then echo c32-convex-bsd
1458 <        else echo c2-convex-bsd
1459 <        fi
1460 <        exit ;;
1461 <    c34*)
1462 <        echo c34-convex-bsd
1463 <        exit ;;
1464 <    c38*)
1465 <        echo c38-convex-bsd
1466 <        exit ;;
1467 <    c4*)
1468 <        echo c4-convex-bsd
1469 <        exit ;;
1470 <    esac
1471 < fi
1372 > esac
1373  
1374   cat >&2 <<EOF
1375   $0: unable to guess system type

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines