Author: pkelsey
Date: Mon Jul  6 02:16:08 2015
New Revision: 285191
URL: https://svnweb.freebsd.org/changeset/base/285191

Log:
  Vendor import of tcpdump 4.7.4.
  
  Approved by: jmallett (mentor)

Added:
  vendor/tcpdump/dist/print-ftp.c   (contents, props changed)
  vendor/tcpdump/dist/print-geneve.c   (contents, props changed)
  vendor/tcpdump/dist/print-http.c   (contents, props changed)
  vendor/tcpdump/dist/print-rtsp.c   (contents, props changed)
  vendor/tcpdump/dist/print-smtp.c   (contents, props changed)
  vendor/tcpdump/dist/tests/RADIUS-RFC4675.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/RADIUS-RFC5176.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/cve2015-0261-crash.out
  vendor/tcpdump/dist/tests/cve2015-0261-crash.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/cve2015-0261-ipv6.out
  vendor/tcpdump/dist/tests/cve2015-0261-ipv6.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/dhcp-rfc3004-v.out
  vendor/tcpdump/dist/tests/dhcp-rfc3004.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/dhcp-rfc5859-v.out
  vendor/tcpdump/dist/tests/dhcp-rfc5859.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/geneve-tcp.out
  vendor/tcpdump/dist/tests/geneve-vni.out
  vendor/tcpdump/dist/tests/geneve-vv.out
  vendor/tcpdump/dist/tests/geneve.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/kday1.out
  vendor/tcpdump/dist/tests/kday1.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/kday2.out
  vendor/tcpdump/dist/tests/kday2.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/kday3.out
  vendor/tcpdump/dist/tests/kday3.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/kday4.out
  vendor/tcpdump/dist/tests/kday4.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/kday5.out
  vendor/tcpdump/dist/tests/kday5.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/kday6.out
  vendor/tcpdump/dist/tests/kday6.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/kday7.out
  vendor/tcpdump/dist/tests/kday7.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/kday8.out
  vendor/tcpdump/dist/tests/kday8.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/of10_7050sx_bsn-vv.out
  vendor/tcpdump/dist/tests/of10_7050sx_bsn.pcap   (contents, props changed)
  vendor/tcpdump/dist/tests/radius-rfc4675-v.out   (contents, props changed)
  vendor/tcpdump/dist/tests/radius-rfc5176-v.out
Deleted:
  vendor/tcpdump/dist/bootp.h
  vendor/tcpdump/dist/win32/Src/
Modified:
  vendor/tcpdump/dist/CHANGES
  vendor/tcpdump/dist/CREDITS
  vendor/tcpdump/dist/INSTALL.txt
  vendor/tcpdump/dist/Makefile.in
  vendor/tcpdump/dist/VERSION
  vendor/tcpdump/dist/aclocal.m4
  vendor/tcpdump/dist/addrtoname.c
  vendor/tcpdump/dist/addrtoname.h
  vendor/tcpdump/dist/config.guess
  vendor/tcpdump/dist/config.h.in
  vendor/tcpdump/dist/config.sub
  vendor/tcpdump/dist/configure
  vendor/tcpdump/dist/configure.in
  vendor/tcpdump/dist/extract.h
  vendor/tcpdump/dist/interface.h
  vendor/tcpdump/dist/ip.h
  vendor/tcpdump/dist/machdep.c
  vendor/tcpdump/dist/missing/strsep.c
  vendor/tcpdump/dist/mkdep
  vendor/tcpdump/dist/netdissect.h
  vendor/tcpdump/dist/openflow.h
  vendor/tcpdump/dist/oui.c
  vendor/tcpdump/dist/oui.h
  vendor/tcpdump/dist/print-ahcp.c
  vendor/tcpdump/dist/print-aodv.c
  vendor/tcpdump/dist/print-arcnet.c
  vendor/tcpdump/dist/print-arp.c
  vendor/tcpdump/dist/print-ascii.c
  vendor/tcpdump/dist/print-atm.c
  vendor/tcpdump/dist/print-babel.c
  vendor/tcpdump/dist/print-bgp.c
  vendor/tcpdump/dist/print-bootp.c
  vendor/tcpdump/dist/print-cdp.c
  vendor/tcpdump/dist/print-cfm.c
  vendor/tcpdump/dist/print-chdlc.c
  vendor/tcpdump/dist/print-cnfp.c
  vendor/tcpdump/dist/print-dccp.c
  vendor/tcpdump/dist/print-decnet.c
  vendor/tcpdump/dist/print-eigrp.c
  vendor/tcpdump/dist/print-enc.c
  vendor/tcpdump/dist/print-ether.c
  vendor/tcpdump/dist/print-forces.c
  vendor/tcpdump/dist/print-fr.c
  vendor/tcpdump/dist/print-geonet.c
  vendor/tcpdump/dist/print-gre.c
  vendor/tcpdump/dist/print-icmp.c
  vendor/tcpdump/dist/print-icmp6.c
  vendor/tcpdump/dist/print-ip.c
  vendor/tcpdump/dist/print-ip6.c
  vendor/tcpdump/dist/print-ipnet.c
  vendor/tcpdump/dist/print-isoclns.c
  vendor/tcpdump/dist/print-juniper.c
  vendor/tcpdump/dist/print-ldp.c
  vendor/tcpdump/dist/print-lldp.c
  vendor/tcpdump/dist/print-lmp.c
  vendor/tcpdump/dist/print-lspping.c
  vendor/tcpdump/dist/print-lwapp.c
  vendor/tcpdump/dist/print-mobility.c
  vendor/tcpdump/dist/print-mpcp.c
  vendor/tcpdump/dist/print-mpls.c
  vendor/tcpdump/dist/print-nflog.c
  vendor/tcpdump/dist/print-null.c
  vendor/tcpdump/dist/print-olsr.c
  vendor/tcpdump/dist/print-openflow-1.0.c
  vendor/tcpdump/dist/print-openflow.c
  vendor/tcpdump/dist/print-ospf.c
  vendor/tcpdump/dist/print-pflog.c
  vendor/tcpdump/dist/print-pim.c
  vendor/tcpdump/dist/print-ppi.c
  vendor/tcpdump/dist/print-ppp.c
  vendor/tcpdump/dist/print-radius.c
  vendor/tcpdump/dist/print-rpki-rtr.c
  vendor/tcpdump/dist/print-rsvp.c
  vendor/tcpdump/dist/print-sflow.c
  vendor/tcpdump/dist/print-sip.c
  vendor/tcpdump/dist/print-sl.c
  vendor/tcpdump/dist/print-sll.c
  vendor/tcpdump/dist/print-slow.c
  vendor/tcpdump/dist/print-smb.c
  vendor/tcpdump/dist/print-tcp.c
  vendor/tcpdump/dist/print-telnet.c
  vendor/tcpdump/dist/print-udp.c
  vendor/tcpdump/dist/print-vxlan.c
  vendor/tcpdump/dist/print-wb.c
  vendor/tcpdump/dist/print-zeromq.c
  vendor/tcpdump/dist/tcp.h
  vendor/tcpdump/dist/tcpdump.1.in
  vendor/tcpdump/dist/tcpdump.c
  vendor/tcpdump/dist/tests/TESTLIST
  vendor/tcpdump/dist/tests/TESTonce
  vendor/tcpdump/dist/tests/TESTrun.sh
  vendor/tcpdump/dist/tests/bgp_infloop-v.out
  vendor/tcpdump/dist/tests/bgp_vpn_attrset.out
  vendor/tcpdump/dist/tests/cdp-v.out
  vendor/tcpdump/dist/tests/crypto.sh
  vendor/tcpdump/dist/tests/dccp_partial_csum_v4_longer.out
  vendor/tcpdump/dist/tests/dccp_partial_csum_v4_simple.out
  vendor/tcpdump/dist/tests/dccp_partial_csum_v6_longer.out
  vendor/tcpdump/dist/tests/dccp_partial_csum_v6_simple.out
  vendor/tcpdump/dist/tests/forces1vvv.out
  vendor/tcpdump/dist/tests/forces1vvvv.out
  vendor/tcpdump/dist/tests/lldp_cdp-ev.out
  vendor/tcpdump/dist/tests/lmp-v.sh
  vendor/tcpdump/dist/tests/mpbgp-linklocal-nexthop.out
  vendor/tcpdump/dist/tests/of10_7050q-v.out
  vendor/tcpdump/dist/tests/of10_p3295-vv.out
  vendor/tcpdump/dist/tests/print-A.out
  vendor/tcpdump/dist/tests/print-AA.out
  vendor/tcpdump/dist/tests/print-capX.out
  vendor/tcpdump/dist/tests/print-capXX.out
  vendor/tcpdump/dist/tests/print-x.out
  vendor/tcpdump/dist/tests/print-xx.out
  vendor/tcpdump/dist/tests/radius-v.out
  vendor/tcpdump/dist/tests/rpl-14-daovvv.out
  vendor/tcpdump/dist/tests/rpl-19-pickdag.out
  vendor/tcpdump/dist/tests/rpl-19-pickdagvvv.out
  vendor/tcpdump/dist/udp.h
  vendor/tcpdump/dist/util.c

Modified: vendor/tcpdump/dist/CHANGES
==============================================================================
--- vendor/tcpdump/dist/CHANGES Mon Jul  6 02:12:49 2015        (r285190)
+++ vendor/tcpdump/dist/CHANGES Mon Jul  6 02:16:08 2015        (r285191)
@@ -1,4 +1,35 @@
+Friday April 10, 2015 [email protected]
+  Summary for 4.7.4 tcpdump release
+       RPKI to Router Protocol: Fix Segmentation Faults and other problems
+       RPKI to Router Protocol: print strings with fn_printn()
+       wb: fix some bounds checks
+
+Wednesday March 11, 2015 [email protected]
+  Summary for 4.7.3 tcpdump release
+       Capsicum fixes for FreeBSD 10
+
+Tuesday March 10, 2015 [email protected]
+  Summary for 4.7.2 tcpdump release
+       DCCP: update Packet Types with RFC4340/IANA names
+        fixes for CVE-2015-0261: IPv6 mobility header check issue
+        fixes for CVE-2015-2153, 2154, 2155: kday packets
+
+Friday Nov. 12, 2014 [email protected]
+  Summary for 4.7.0 tcpdump release
+        changes to hex printing of CDP packets
+       Fix PPI printing
+       Radius: update Packet Type Codes and Attribute Types with RFC/IANA names
+       Add a routine to print "text protocols", and add FTP/HTTP/SMTP/RTSP 
support.
+       improvements to telnet printer, even if not -v
+       omit length for bcp, print-tcp uses it
+       formatting fixes for a bunch of protocols
+       new bounds checks for a number of protocols
+       split netflow 1,6, and 6 dissector up.
+       added geneve dissector
+        CVE-2014-9140 PPP dissector fixed.
+
 Tuesday  Sep.  2, 2014 [email protected]
+  Summary for 4.6.2 tcpdump release
        fix out-of-source-tree builds: find libpcap that is out of source
        better configure check for libsmi
 

Modified: vendor/tcpdump/dist/CREDITS
==============================================================================
--- vendor/tcpdump/dist/CREDITS Mon Jul  6 02:12:49 2015        (r285190)
+++ vendor/tcpdump/dist/CREDITS Mon Jul  6 02:16:08 2015        (r285191)
@@ -2,7 +2,7 @@ This file lists people who have contribu
 
 The current maintainers:
     Bill Fenner                   <fenner at research dot att dot com>
-    Denis Ovsienko                <infrastation at yandex dot ru>
+    Denis Ovsienko                <denis at ovsienko dot info>
     Fulvio Risso                  <risso at polito dot it>
     Guy Harris                    <guy at alum dot mit dot edu>
     Hannes Gredler                <hannes at juniper dot net>
@@ -85,6 +85,7 @@ Additional people who have contributed p
     Harry Raaymakers              <harryr at connect dot com dot au>
     Heinz-Ado Arnolds             <Ado dot Arnolds at dhm-systems dot de>
     Hendrik Scholz                <hendrik at scholz dot net>
+    Herwin Weststrate             <herwin at quarantainenet dot nl>
     Ian McDonald                  <imcdnzl at gmail dot com>
     Ilpo Järvinen                 <ilpo dot jarvinen at helsinki dot fi>
     Jacek Tobiasz                 <Jacek dot Tobiasz at atm dot com dot pl>
@@ -95,6 +96,7 @@ Additional people who have contributed p
     Jefferson Ogata               <jogata at nodc dot noaa dot gov>
     Jeffrey Hutzelman             <jhutz at cmu dot edu>
     Jesper Peterson               <jesper at endace dot com>
+    Jesse Gross                   <jesse at nicira dot com>
     Jim Hutchins                  <jim at ca dot sandia dot gov>
     João Medeiros                 <ignotus21 at sourceforge dot net>
     Joerg Mayer                   <jmayer at loplof dot de>

Modified: vendor/tcpdump/dist/INSTALL.txt
==============================================================================
--- vendor/tcpdump/dist/INSTALL.txt     Mon Jul  6 02:12:49 2015        
(r285190)
+++ vendor/tcpdump/dist/INSTALL.txt     Mon Jul  6 02:16:08 2015        
(r285191)
@@ -52,7 +52,6 @@ appletalk.h   - AppleTalk definitions
 atime.awk      - TCP ack awk script
 atm.h          - ATM traffic type definitions
 atmuni31.h     - ATM Q.2931 definitions
-bootp.h                - BOOTP definitions
 bpf_dump.c     - BPF program printing routines, in case libpcap doesn't
                  have them
 chdlc.h                - Cisco HDLC definitions

Modified: vendor/tcpdump/dist/Makefile.in
==============================================================================
--- vendor/tcpdump/dist/Makefile.in     Mon Jul  6 02:12:49 2015        
(r285190)
+++ vendor/tcpdump/dist/Makefile.in     Mon Jul  6 02:16:08 2015        
(r285191)
@@ -124,13 +124,17 @@ LIBNETDISSECT_SRC=\
        print-fddi.c \
        print-forces.c \
        print-fr.c \
+       print-ftp.c \
+       print-geneve.c \
        print-geonet.c \
        print-gre.c \
        print-hsrp.c \
+       print-http.c \
        print-icmp.c \
        print-igmp.c \
        print-igrp.c \
        print-ip.c \
+       print-ip6.c \
        print-ipcomp.c \
        print-ipfc.c \
        print-ipnet.c \
@@ -178,6 +182,7 @@ LIBNETDISSECT_SRC=\
        print-rpki-rtr.c \
        print-rrcp.c \
        print-rsvp.c \
+       print-rtsp.c \
        print-rx.c \
        print-sctp.c \
        print-sflow.c \
@@ -185,6 +190,7 @@ LIBNETDISSECT_SRC=\
        print-sl.c \
        print-sll.c \
        print-slow.c \
+       print-smtp.c \
        print-snmp.c \
        print-stp.c \
        print-sunatm.c \
@@ -231,7 +237,6 @@ HDR = \
        appletalk.h \
        atm.h \
        atmuni31.h \
-       bootp.h \
        chdlc.h \
        cpack.h \
        ether.h \
@@ -241,7 +246,6 @@ HDR = \
        gmpls.h \
        gmt2local.h \
        interface.h \
-       interface.h \
        ip.h \
        ip6.h \
        ipproto.h \
@@ -330,7 +334,6 @@ EXTRA_DIST = \
        print-dhcp6.c \
        print-frag6.c \
        print-icmp6.c \
-       print-ip6.c \
        print-ip6opts.c \
        print-mobility.c \
        print-ospf6.c \

Modified: vendor/tcpdump/dist/VERSION
==============================================================================
--- vendor/tcpdump/dist/VERSION Mon Jul  6 02:12:49 2015        (r285190)
+++ vendor/tcpdump/dist/VERSION Mon Jul  6 02:16:08 2015        (r285191)
@@ -1 +1 @@
-4.6.2
+4.7.4

Modified: vendor/tcpdump/dist/aclocal.m4
==============================================================================
--- vendor/tcpdump/dist/aclocal.m4      Mon Jul  6 02:12:49 2015        
(r285190)
+++ vendor/tcpdump/dist/aclocal.m4      Mon Jul  6 02:16:08 2015        
(r285191)
@@ -438,27 +438,31 @@ AC_DEFUN(AC_LBL_LIBPCAP,
                    LIBS="$LIBS $pfopen"
            fi
     fi
-    AC_MSG_CHECKING(for local pcap library)
-    libpcap=FAIL
-    lastdir=FAIL
-    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
-       egrep 
'/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
-    places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
-       egrep 
'/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
-    for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 
; do
-           basedir=`echo $dir | sed -e 's/[[ab]][[0-9]]*$//' | \
-               sed -e 's/-PRE-GIT$//' `
-           if test $lastdir = $basedir ; then
-                   dnl skip alphas when an actual release is present
-                   continue;
-           fi
-           lastdir=$dir
-           if test -r $dir/libpcap.a ; then
-                   libpcap=$dir/libpcap.a
-                   d=$dir
-                   dnl continue and select the last one that exists
-           fi
-    done
+       libpcap=FAIL
+       AC_MSG_CHECKING(for local pcap library)
+       AC_ARG_WITH([system-libpcap],
+               [AS_HELP_STRING([--with-system-libpcap], [don't use local pcap 
library])])
+       if test "x$with_system_libpcap" != xyes ; then
+               lastdir=FAIL
+       places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
+               egrep 
'/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
+       places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
+               egrep 
'/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
+       for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap 
$places2 ; do
+               basedir=`echo $dir | sed -e 's/[[ab]][[0-9]]*$//' | \
+                       sed -e 's/-PRE-GIT$//' `
+               if test $lastdir = $basedir ; then
+                       dnl skip alphas when an actual release is present
+                       continue;
+               fi
+               lastdir=$dir
+               if test -r $dir/libpcap.a ; then
+                       libpcap=$dir/libpcap.a
+                       d=$dir
+                       dnl continue and select the last one that exists
+               fi
+               done
+       fi
     if test $libpcap = FAIL ; then
            AC_MSG_RESULT(not found)
 
@@ -620,54 +624,6 @@ not be able to determine why this is hap
 able to fix it, without that information, as we have not been able to
 reproduce this problem ourselves.])
        ])
-
-    dnl
-    dnl Check for "pcap_list_datalinks()", "pcap_set_datalink()",
-    dnl and "pcap_datalink_name_to_val()", and use substitute versions
-    dnl if they're not present.
-    dnl
-    AC_CHECK_FUNC(pcap_list_datalinks,
-       [
-           AC_DEFINE(HAVE_PCAP_LIST_DATALINKS, 1,
-               [define if libpcap has pcap_list_datalinks()])
-           AC_CHECK_FUNCS(pcap_free_datalinks)
-       ],
-       [
-           AC_LIBOBJ(datalinks)
-       ])
-    AC_CHECK_FUNCS(pcap_set_datalink)
-    AC_CHECK_FUNC(pcap_datalink_name_to_val,
-       [
-           AC_DEFINE(HAVE_PCAP_DATALINK_NAME_TO_VAL, 1,
-               [define if libpcap has pcap_datalink_name_to_val()])
-           AC_CHECK_FUNC(pcap_datalink_val_to_description,
-               AC_DEFINE(HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION, 1,
-                   [define if libpcap has pcap_datalink_val_to_description()]),
-               [
-                   AC_LIBOBJ(dlnames)
-               ])
-       ],
-       [
-           AC_LIBOBJ(dlnames)
-       ])
-
-    dnl
-    dnl Check for "pcap_breakloop()"; you can't substitute for it if
-    dnl it's absent (it has hooks into the live capture routines),
-    dnl so just define the HAVE_ value if it's there.
-    dnl
-    AC_CHECK_FUNCS(pcap_breakloop)
-
-    dnl
-    dnl Check for "pcap_dump_ftell()" and use a substitute version
-    dnl if it's not present.
-    dnl
-    AC_CHECK_FUNC(pcap_dump_ftell,
-       AC_DEFINE(HAVE_PCAP_DUMP_FTELL, 1,
-           [define if libpcap has pcap_dump_ftell()]),
-       [
-           AC_LIBOBJ(pcap_dump_ftell)
-       ])
 ])
 
 dnl

Modified: vendor/tcpdump/dist/addrtoname.c
==============================================================================
--- vendor/tcpdump/dist/addrtoname.c    Mon Jul  6 02:12:49 2015        
(r285190)
+++ vendor/tcpdump/dist/addrtoname.c    Mon Jul  6 02:16:08 2015        
(r285191)
@@ -555,7 +555,7 @@ linkaddr_string(netdissect_options *ndo,
                return (etheraddr_string(ndo, ep));
 
        if (type == LINKADDR_FRELAY)
-               return (q922_string(ep));
+               return (q922_string(ndo, ep, len));
 
        tp = lookup_bytestring(ep, len);
        if (tp->e_name)
@@ -1215,3 +1215,15 @@ newh6namemem(void)
        return (p);
 }
 #endif /* INET6 */
+
+/* Represent TCI part of the 802.1Q 4-octet tag as text. */
+const char *
+ieee8021q_tci_string(const uint16_t tci)
+{
+       static char buf[128];
+       snprintf(buf, sizeof(buf), "vlan %u, p %u%s",
+                tci & 0xfff,
+                tci >> 13,
+                (tci & 0x1000) ? ", DEI" : "");
+       return buf;
+}

Modified: vendor/tcpdump/dist/addrtoname.h
==============================================================================
--- vendor/tcpdump/dist/addrtoname.h    Mon Jul  6 02:12:49 2015        
(r285190)
+++ vendor/tcpdump/dist/addrtoname.h    Mon Jul  6 02:16:08 2015        
(r285191)
@@ -51,6 +51,7 @@ extern struct hnamemem *newhnamemem(void
 #ifdef INET6
 extern struct h6namemem *newh6namemem(void);
 #endif
+extern const char * ieee8021q_tci_string(const uint16_t);
 
 #define ipaddr_string(ndo, p) getname(ndo, (const u_char *)(p))
 #ifdef INET6

Modified: vendor/tcpdump/dist/config.guess
==============================================================================
--- vendor/tcpdump/dist/config.guess    Mon Jul  6 02:12:49 2015        
(r285190)
+++ vendor/tcpdump/dist/config.guess    Mon Jul  6 02:16:08 2015        
(r285191)
@@ -1,14 +1,12 @@
 #! /bin/sh
 # Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011, 2012 Free Software Foundation, Inc.
+#   Copyright 1992-2015 Free Software Foundation, Inc.
 
-timestamp='2012-02-10'
+timestamp='2015-02-23'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful, but
@@ -22,19 +20,17 @@ timestamp='2012-02-10'
 # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a
 # configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner.  Please send patches (context
-# diff format) to <[email protected]> and include a ChangeLog
-# entry.
+# the same distribution terms that you use for the rest of that
+# program.  This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
 #
-# This script attempts to guess a canonical system name similar to
-# config.sub.  If it succeeds, it prints the system name on stdout, and
-# exits with 0.  Otherwise, it exits with 1.
+# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
 #
 # You can get the latest version of this script from:
 # 
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+#
+# Please send patches to <[email protected]>.
+
 
 me=`echo "$0" | sed -e 's,.*/,,'`
 
@@ -54,9 +50,7 @@ version="\
 GNU config.guess ($timestamp)
 
 Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
+Copyright 1992-2015 Free Software Foundation, Inc.
 
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -138,6 +132,27 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
 UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
 
+case "${UNAME_SYSTEM}" in
+Linux|GNU|GNU/*)
+       # If the system lacks a compiler, then just pick glibc.
+       # We could probably try harder.
+       LIBC=gnu
+
+       eval $set_cc_for_build
+       cat <<-EOF > $dummy.c
+       #include <features.h>
+       #if defined(__UCLIBC__)
+       LIBC=uclibc
+       #elif defined(__dietlibc__)
+       LIBC=dietlibc
+       #else
+       LIBC=gnu
+       #endif
+       EOF
+       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, 
,,g'`
+       ;;
+esac
+
 # Note: order is significant - the case branches are not exclusive.
 
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
@@ -153,20 +168,27 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
        # Note: NetBSD doesn't particularly care about the vendor
        # portion of the name.  We always set it to "unknown".
        sysctl="sysctl -n hw.machine_arch"
-       UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
-           /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+       UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
+           /sbin/$sysctl 2>/dev/null || \
+           /usr/sbin/$sysctl 2>/dev/null || \
+           echo unknown)`
        case "${UNAME_MACHINE_ARCH}" in
            armeb) machine=armeb-unknown ;;
            arm*) machine=arm-unknown ;;
            sh3el) machine=shl-unknown ;;
            sh3eb) machine=sh-unknown ;;
            sh5el) machine=sh5le-unknown ;;
+           earmv*)
+               arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 
's,^e\(armv[0-9]\).*$,\1,'`
+               endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 
's,^.*\(eb\)$,\1,p'`
+               machine=${arch}${endian}-unknown
+               ;;
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
        esac
        # The Operating System including object format, if it has switched
        # to ELF recently, or will in the future.
        case "${UNAME_MACHINE_ARCH}" in
-           arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+           arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
                eval $set_cc_for_build
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
                        | grep -q __ELF__
@@ -182,6 +204,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
                os=netbsd
                ;;
        esac
+       # Determine ABI tags.
+       case "${UNAME_MACHINE_ARCH}" in
+           earm*)
+               expr='s/^earmv[0-9]/-eabi/;s/eb$//'
+               abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
+               ;;
+       esac
        # The OS release
        # Debian GNU/NetBSD machines have a different userland, and
        # thus, need a distinct triplet. However, they do not need
@@ -198,7 +227,11 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
        # contains redundant information, the shorter form:
        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
-       echo "${machine}-${os}${release}"
+       echo "${machine}-${os}${release}${abi}"
+       exit ;;
+    *:Bitrig:*:*)
+       UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
+       echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
        exit ;;
     *:OpenBSD:*:*)
        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
@@ -302,7 +335,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
        echo arm-acorn-riscix${UNAME_RELEASE}
        exit ;;
-    arm:riscos:*:*|arm:RISCOS:*:*)
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
        echo arm-unknown-riscos
        exit ;;
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
@@ -560,8 +593,9 @@ EOF
        else
                IBM_ARCH=powerpc
        fi
-       if [ -x /usr/bin/oslevel ] ; then
-               IBM_REV=`/usr/bin/oslevel`
+       if [ -x /usr/bin/lslpp ] ; then
+               IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
+                          awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
        else
                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
        fi
@@ -801,10 +835,13 @@ EOF
     i*:CYGWIN*:*)
        echo ${UNAME_MACHINE}-pc-cygwin
        exit ;;
+    *:MINGW64*:*)
+       echo ${UNAME_MACHINE}-pc-mingw64
+       exit ;;
     *:MINGW*:*)
        echo ${UNAME_MACHINE}-pc-mingw32
        exit ;;
-    i*:MSYS*:*)
+    *:MSYS*:*)
        echo ${UNAME_MACHINE}-pc-msys
        exit ;;
     i*:windows32*:*)
@@ -852,21 +889,21 @@ EOF
        exit ;;
     *:GNU:*:*)
        # the GNU system
-       echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo 
${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+       echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo 
${UNAME_RELEASE}|sed -e 's,/.*$,,'`
        exit ;;
     *:GNU/*:*:*)
        # other systems with GNU libc and userland
-       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' 
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' 
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
        exit ;;
     i*86:Minix:*:*)
        echo ${UNAME_MACHINE}-pc-minix
        exit ;;
     aarch64:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     aarch64_be:Linux:*:*)
        UNAME_MACHINE=aarch64_be
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     alpha:Linux:*:*)
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@ -879,59 +916,54 @@ EOF
          EV68*) UNAME_MACHINE=alphaev68 ;;
        esac
        objdump --private-headers /bin/sh | grep -q ld.so.1
-       if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
-       echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+       if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    arc:Linux:*:* | arceb:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     arm*:Linux:*:*)
        eval $set_cc_for_build
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
            | grep -q __ARM_EABI__
        then
-           echo ${UNAME_MACHINE}-unknown-linux-gnu
+           echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        else
            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
                | grep -q __ARM_PCS_VFP
            then
-               echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+               echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
            else
-               echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
+               echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
            fi
        fi
        exit ;;
     avr32*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     cris:Linux:*:*)
-       echo ${UNAME_MACHINE}-axis-linux-gnu
+       echo ${UNAME_MACHINE}-axis-linux-${LIBC}
        exit ;;
     crisv32:Linux:*:*)
-       echo ${UNAME_MACHINE}-axis-linux-gnu
+       echo ${UNAME_MACHINE}-axis-linux-${LIBC}
        exit ;;
     frv:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     hexagon:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     i*86:Linux:*:*)
-       LIBC=gnu
-       eval $set_cc_for_build
-       sed 's/^        //' << EOF >$dummy.c
-       #ifdef __dietlibc__
-       LIBC=dietlibc
-       #endif
-EOF
-       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
-       echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+       echo ${UNAME_MACHINE}-pc-linux-${LIBC}
        exit ;;
     ia64:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     m32r*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     m68*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     mips:Linux:*:* | mips64:Linux:*:*)
        eval $set_cc_for_build
@@ -950,54 +982,63 @@ EOF
        #endif
 EOF
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
-       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
        ;;
-    or32:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+    openrisc*:Linux:*:*)
+       echo or1k-unknown-linux-${LIBC}
+       exit ;;
+    or32:Linux:*:* | or1k*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     padre:Linux:*:*)
-       echo sparc-unknown-linux-gnu
+       echo sparc-unknown-linux-${LIBC}
        exit ;;
     parisc64:Linux:*:* | hppa64:Linux:*:*)
-       echo hppa64-unknown-linux-gnu
+       echo hppa64-unknown-linux-${LIBC}
        exit ;;
     parisc:Linux:*:* | hppa:Linux:*:*)
        # Look for CPU level
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
-         PA7*) echo hppa1.1-unknown-linux-gnu ;;
-         PA8*) echo hppa2.0-unknown-linux-gnu ;;
-         *)    echo hppa-unknown-linux-gnu ;;
+         PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
+         PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
+         *)    echo hppa-unknown-linux-${LIBC} ;;
        esac
        exit ;;
     ppc64:Linux:*:*)
-       echo powerpc64-unknown-linux-gnu
+       echo powerpc64-unknown-linux-${LIBC}
        exit ;;
     ppc:Linux:*:*)
-       echo powerpc-unknown-linux-gnu
+       echo powerpc-unknown-linux-${LIBC}
+       exit ;;
+    ppc64le:Linux:*:*)
+       echo powerpc64le-unknown-linux-${LIBC}
+       exit ;;
+    ppcle:Linux:*:*)
+       echo powerpcle-unknown-linux-${LIBC}
        exit ;;
     s390:Linux:*:* | s390x:Linux:*:*)
-       echo ${UNAME_MACHINE}-ibm-linux
+       echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
        exit ;;
     sh64*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     sh*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     sparc:Linux:*:* | sparc64:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     tile*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     vax:Linux:*:*)
-       echo ${UNAME_MACHINE}-dec-linux-gnu
+       echo ${UNAME_MACHINE}-dec-linux-${LIBC}
        exit ;;
     x86_64:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     xtensa*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
        exit ;;
     i*86:DYNIX/ptx:4*:*)
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -1201,6 +1242,9 @@ EOF
     BePC:Haiku:*:*)    # Haiku running on Intel PC compatible.
        echo i586-pc-haiku
        exit ;;
+    x86_64:Haiku:*:*)
+       echo x86_64-unknown-haiku
+       exit ;;
     SX-4:SUPER-UX:*:*)
        echo sx4-nec-superux${UNAME_RELEASE}
        exit ;;
@@ -1227,19 +1271,31 @@ EOF
        exit ;;
     *:Darwin:*:*)
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
-       case $UNAME_PROCESSOR in
-           i386)
-               eval $set_cc_for_build
-               if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
-                 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo 
'#endif') | \
-                     (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
-                     grep IS_64BIT_ARCH >/dev/null
-                 then
-                     UNAME_PROCESSOR="x86_64"
-                 fi
-               fi ;;
-           unknown) UNAME_PROCESSOR=powerpc ;;
-       esac
+       eval $set_cc_for_build
+       if test "$UNAME_PROCESSOR" = unknown ; then
+           UNAME_PROCESSOR=powerpc
+       fi
+       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
+           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') 
| \
+                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+                   grep IS_64BIT_ARCH >/dev/null
+               then
+                   case $UNAME_PROCESSOR in
+                       i386) UNAME_PROCESSOR=x86_64 ;;
+                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
+                   esac
+               fi
+           fi
+       elif test "$UNAME_PROCESSOR" = i386 ; then
+           # Avoid executing cc on OS X 10.9, as it ships with a stub
+           # that puts up a graphical alert prompting to install
+           # developer tools.  Any system running Mac OS X 10.7 or
+           # later (Darwin 11 and later) is required to have a 64-bit
+           # processor. This is not true of the ARM version of Darwin
+           # that Apple uses in portable devices.
+           UNAME_PROCESSOR=x86_64
+       fi
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
        exit ;;
     *:procnto*:*:* | *:QNX:[0123456789]*:*)
@@ -1256,7 +1312,7 @@ EOF
     NEO-?:NONSTOP_KERNEL:*:*)
        echo neo-tandem-nsk${UNAME_RELEASE}
        exit ;;
-    NSE-?:NONSTOP_KERNEL:*:*)
+    NSE-*:NONSTOP_KERNEL:*:*)
        echo nse-tandem-nsk${UNAME_RELEASE}
        exit ;;
     NSR-?:NONSTOP_KERNEL:*:*)
@@ -1330,157 +1386,6 @@ EOF
        exit ;;
 esac
 
-#echo '(No uname command or uname output not recognized.)' 1>&2
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
-eval $set_cc_for_build
-cat >$dummy.c <<EOF
-#ifdef _SEQUENT_
-# include <sys/types.h>
-# include <sys/utsname.h>
-#endif
-main ()
-{
-#if defined (sony)
-#if defined (MIPSEB)
-  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
-     I don't know....  */
-  printf ("mips-sony-bsd\n"); exit (0);
-#else
-#include <sys/param.h>
-  printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
-       "4"
-#else
-       ""
-#endif
-       ); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
-  printf ("arm-acorn-riscix\n"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
-  printf ("m68k-hp-bsd\n"); exit (0);
-#endif
-
-#if defined (NeXT)
-#if !defined (__ARCHITECTURE__)
-#define __ARCHITECTURE__ "m68k"
-#endif
-  int version;
-  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
-  if (version < 4)
-    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
-  else
-    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
-  exit (0);
-#endif
-
-#if defined (MULTIMAX) || defined (n16)
-#if defined (UMAXV)
-  printf ("ns32k-encore-sysv\n"); exit (0);
-#else
-#if defined (CMU)
-  printf ("ns32k-encore-mach\n"); exit (0);
-#else
-  printf ("ns32k-encore-bsd\n"); exit (0);
-#endif
-#endif
-#endif
-
-#if defined (__386BSD__)
-  printf ("i386-pc-bsd\n"); exit (0);
-#endif
-
-#if defined (sequent)
-#if defined (i386)
-  printf ("i386-sequent-dynix\n"); exit (0);
-#endif
-#if defined (ns32000)
-  printf ("ns32k-sequent-dynix\n"); exit (0);
-#endif
-#endif
-
-#if defined (_SEQUENT_)
-    struct utsname un;
-
-    uname(&un);
-
-    if (strncmp(un.version, "V2", 2) == 0) {
-       printf ("i386-sequent-ptx2\n"); exit (0);
-    }
-    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
-       printf ("i386-sequent-ptx1\n"); exit (0);
-    }
-    printf ("i386-sequent-ptx\n"); exit (0);
-
-#endif
-
-#if defined (vax)
-# if !defined (ultrix)
-#  include <sys/param.h>
-#  if defined (BSD)
-#   if BSD == 43
-      printf ("vax-dec-bsd4.3\n"); exit (0);
-#   else
-#    if BSD == 199006
-      printf ("vax-dec-bsd4.3reno\n"); exit (0);
-#    else
-      printf ("vax-dec-bsd\n"); exit (0);
-#    endif
-#   endif
-#  else
-    printf ("vax-dec-bsd\n"); exit (0);
-#  endif
-# else
-    printf ("vax-dec-ultrix\n"); exit (0);
-# endif
-#endif
-
-#if defined (alliant) && defined (i860)
-  printf ("i860-alliant-bsd\n"); exit (0);
-#endif
-
-  exit (1);
-}
-EOF
-
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
-       { echo "$SYSTEM_NAME"; exit; }
-
-# Apollos put the system type in the environment.
-
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
-    case `getsysinfo -f cpu_type` in
-    c1*)
-       echo c1-convex-bsd
-       exit ;;
-    c2*)
-       if getsysinfo -f scalar_acc
-       then echo c32-convex-bsd
-       else echo c2-convex-bsd
-       fi
-       exit ;;
-    c34*)
-       echo c34-convex-bsd
-       exit ;;
-    c38*)
-       echo c38-convex-bsd
-       exit ;;
-    c4*)
-       echo c4-convex-bsd
-       exit ;;
-    esac
-fi
-
 cat >&2 <<EOF
 $0: unable to guess system type
 

Modified: vendor/tcpdump/dist/config.h.in
==============================================================================
--- vendor/tcpdump/dist/config.h.in     Mon Jul  6 02:12:49 2015        
(r285190)
+++ vendor/tcpdump/dist/config.h.in     Mon Jul  6 02:16:08 2015        
(r285191)
@@ -18,8 +18,8 @@
 /* Define to 1 if you have the `cap_ioctls_limit' function. */
 #undef HAVE_CAP_IOCTLS_LIMIT
 
-/* Define to 1 if you have the `cap_rights_init' function. */
-#undef HAVE_CAP_RIGHTS_INIT
+/* Define to 1 if you have the <cap-ng.h> header file. */
+#undef HAVE_CAP_NG_H
 
 /* Define to 1 if you have the `cap_rights_limit' function. */
 #undef HAVE_CAP_RIGHTS_LIMIT
@@ -55,6 +55,9 @@
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
 
+/* Define to 1 if you have the `cap-ng' library (-lcap-ng). */
+#undef HAVE_LIBCAP_NG
+
 /* Define to 1 if you have the `crypto' library (-lcrypto). */
 #undef HAVE_LIBCRYPTO
 
@@ -136,6 +139,9 @@
 /* Define to 1 if you have the `pcap_set_datalink' function. */
 #undef HAVE_PCAP_SET_DATALINK
 
+/* Define to 1 if you have the `pcap_set_immediate_mode' function. */
+#undef HAVE_PCAP_SET_IMMEDIATE_MODE
+
 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
 #undef HAVE_PCAP_SET_TSTAMP_PRECISION
 
@@ -211,6 +217,9 @@
 /* Define to 1 if you have the <sys/types.h> header file. */
 #undef HAVE_SYS_TYPES_H
 
+/* Define to 1 if the system has the type `uintptr_t'. */
+#undef HAVE_UINTPTR_T
+
 /* Define to 1 if you have the <unistd.h> header file. */
 #undef HAVE_UNISTD_H
 
@@ -382,3 +391,7 @@
 /* Define to the type of an unsigned integer type of width exactly 8 bits if
    such a type exists and the standard includes do not define it. */
 #undef uint8_t
+
+/* Define to the type of an unsigned integer type wide enough to hold a
+   pointer, if such a type exists, and if the system does not define it. */
+#undef uintptr_t

Modified: vendor/tcpdump/dist/config.sub
==============================================================================
--- vendor/tcpdump/dist/config.sub      Mon Jul  6 02:12:49 2015        
(r285190)
+++ vendor/tcpdump/dist/config.sub      Mon Jul  6 02:16:08 2015        
(r285191)
@@ -1,24 +1,18 @@
 #! /bin/sh
 # Configuration validation subroutine script.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011, 2012 Free Software Foundation, Inc.
-
-timestamp='2012-04-18'
-
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine.  It does not imply ALL GNU software can.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+#   Copyright 1992-2015 Free Software Foundation, Inc.
+
+timestamp='2015-02-22'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, see <http://www.gnu.org/licenses/>.
@@ -26,11 +20,12 @@ timestamp='2012-04-18'
 # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a
 # configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
+# the same distribution terms that you use for the rest of that
+# program.  This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
 
 
-# Please send patches to <[email protected]>.  Submit a context
-# diff and a properly formatted GNU ChangeLog entry.
+# Please send patches to <[email protected]>.
 #
 # Configuration subroutine to validate and canonicalize a configuration type.
 # Supply the specified configuration type as an argument.
@@ -73,9 +68,7 @@ Report bugs and patches to <config-patch
 version="\
 GNU config.sub ($timestamp)
 
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
+Copyright 1992-2015 Free Software Foundation, Inc.
 
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -123,8 +116,8 @@ esac
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 case $maybe_os in
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
-  knetbsd*-gnu* | netbsd*-gnu* | \
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | 
kfreebsd*-gnu* | \
+  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
   kopensolaris*-gnu* | \
   storm-chaos* | os2-emx* | rtmk-nova*)

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to