diff options
Diffstat (limited to 'recipes-networking/openvswitch/files/configure-Only-link-against-libpcap-on-FreeBSD.patch')
-rw-r--r-- | recipes-networking/openvswitch/files/configure-Only-link-against-libpcap-on-FreeBSD.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/recipes-networking/openvswitch/files/configure-Only-link-against-libpcap-on-FreeBSD.patch b/recipes-networking/openvswitch/files/configure-Only-link-against-libpcap-on-FreeBSD.patch new file mode 100644 index 00000000..0a44b85e --- /dev/null +++ b/recipes-networking/openvswitch/files/configure-Only-link-against-libpcap-on-FreeBSD.patch | |||
@@ -0,0 +1,70 @@ | |||
1 | From d30e714ccb9d13caf39d14d5b2fc9523b678ed51 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ben Pfaff <blp@nicira.com> | ||
3 | Date: Thu, 14 Mar 2013 15:20:55 -0700 | ||
4 | Subject: [PATCH] configure: Only link against libpcap on FreeBSD. | ||
5 | |||
6 | commit d30e714ccb9d13caf39d14d5b2fc9523b678ed51 upstream | ||
7 | http://git.openvswitch.org/git/openvswitch | ||
8 | |||
9 | On other platforms there is no benefit to linking against libpcap, because | ||
10 | it is not used. | ||
11 | |||
12 | Signed-off-by: Ben Pfaff <blp@nicira.com> | ||
13 | CC: Ed Maste <emaste@freebsd.org> | ||
14 | --- | ||
15 | acinclude.m4 | 7 ++++++- | ||
16 | configure.ac | 3 +-- | ||
17 | 2 files changed, 7 insertions(+), 3 deletions(-) | ||
18 | |||
19 | diff --git a/acinclude.m4 b/acinclude.m4 | ||
20 | index f0610c9..19a47dd 100644 | ||
21 | --- a/acinclude.m4 | ||
22 | +++ b/acinclude.m4 | ||
23 | @@ -1,6 +1,6 @@ | ||
24 | # -*- autoconf -*- | ||
25 | |||
26 | -# Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. | ||
27 | +# Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. | ||
28 | # | ||
29 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
30 | # you may not use this file except in compliance with the License. | ||
31 | @@ -295,6 +295,8 @@ AC_DEFUN([OVS_CHECK_IF_PACKET], | ||
32 | fi]) | ||
33 | |||
34 | dnl Checks for net/if_dl.h. | ||
35 | +dnl | ||
36 | +dnl (We use this as a proxy for checking whether we're building on FreeBSD.) | ||
37 | AC_DEFUN([OVS_CHECK_IF_DL], | ||
38 | [AC_CHECK_HEADER([net/if_dl.h], | ||
39 | [HAVE_IF_DL=yes], | ||
40 | @@ -303,6 +305,9 @@ AC_DEFUN([OVS_CHECK_IF_DL], | ||
41 | if test "$HAVE_IF_DL" = yes; then | ||
42 | AC_DEFINE([HAVE_IF_DL], [1], | ||
43 | [Define to 1 if net/if_dl.h is available.]) | ||
44 | + | ||
45 | + # On FreeBSD we use libpcap to access network devices. | ||
46 | + AC_SEARCH_LIBS([pcap_open_live], [pcap]) | ||
47 | fi]) | ||
48 | |||
49 | dnl Checks for buggy strtok_r. | ||
50 | diff --git a/configure.ac b/configure.ac | ||
51 | index 1cacd29..bd49179 100644 | ||
52 | --- a/configure.ac | ||
53 | +++ b/configure.ac | ||
54 | @@ -1,4 +1,4 @@ | ||
55 | -# Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. | ||
56 | +# Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. | ||
57 | # | ||
58 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
59 | # you may not use this file except in compliance with the License. | ||
60 | @@ -44,7 +44,6 @@ AC_SYS_LARGEFILE | ||
61 | AC_SEARCH_LIBS([pow], [m]) | ||
62 | AC_SEARCH_LIBS([clock_gettime], [rt]) | ||
63 | AC_SEARCH_LIBS([timer_create], [rt]) | ||
64 | -AC_SEARCH_LIBS([pcap_open_live], [pcap]) | ||
65 | |||
66 | OVS_CHECK_ESX | ||
67 | OVS_CHECK_COVERAGE | ||
68 | -- | ||
69 | 1.8.3.2 | ||
70 | |||