1From fc9bf1ce9f1a21150b10736a1c968d4ca6d4eaa3 Mon Sep 17 00:00:00 2001
2From: Martin Kelly <mkelly@xevo.com>
3Date: Fri, 7 Apr 2017 15:20:30 -0700
4Subject: [PATCH] configure.ac: don't use dnet-config
5
6The dnet-config tool doesn't know about cross-compilation, so it injects
7-I/usr/include into the path, causing compiler errors. So instead find dnet via
8-ldnet.
9
10Upstream-Status: Inappropriate [embedded specific]
11
12Signed-off-by: Martin Kelly <mkelly@xevo.com>
13---
14 open-vm-tools/configure.ac | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17--- a/open-vm-tools/configure.ac
18+++ b/open-vm-tools/configure.ac
19@@ -937,7 +937,7 @@ if test "$with_dnet" = "yes"; then
20       AC_VMW_CHECK_LIB([dnet],
21                        [DNET],
22                        [],
23-                       [dnet-config],
24+                       [],
25                        [],
26                        [dnet.h],
27                        [intf_open],
28@@ -947,7 +947,7 @@ if test "$with_dnet" = "yes"; then
29
30    if test $have_dnet = "no"; then
31 		AC_MSG_ERROR(
32-		   [dnet-config was not found on your PATH. Please configure without dnet or install dnet - http://libdnet.sourceforge.net])
33+		   [dnet was not found. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net])
34    fi
35 fi
36
37