1From b1c941c20577578aa5ff3450d9d8d7a23c55d14a Mon Sep 17 00:00:00 2001
2From: Li xin <lixin.fnst@cn.fujitsu.com>
3Date: Fri, 21 Aug 2015 18:23:13 +0900
4Subject: [PATCH] config_os_headers: Error Fix
5
6ERROR: This autoconf log indicates errors, it looked at host include
7and/or library paths while determining system capabilities.
8cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories]
9conftest.c:168:17: fatal error: pkg.h: No such file or directory
10 #include <pkg.h>
11                 ^
12
13Upstream-Status: Pending
14
15Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
16---
17 configure.d/config_os_headers | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers
21index c0688f8..f68713c 100644
22--- a/configure.d/config_os_headers
23+++ b/configure.d/config_os_headers
24@@ -395,8 +395,8 @@ then
25     unset ac_cv_header_pkg_h
26     netsnmp_save_CPPFLAGS="$CPPFLAGS"
27     netsnmp_save_LDFLAGS="$LDFLAGS"
28-    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
29-    LDFLAGS="$LDFLAGS -L/usr/local/lib"
30+    CPPFLAGS="$CPPFLAGS"
31+    LDFLAGS="$LDFLAGS"
32     AC_CHECK_HEADERS(pkg.h,
33         NETSNMP_SEARCH_LIBS(pkg_init, pkg,
34 	    AC_DEFINE(HAVE_LIBPKG, 1, [define if you have BSD pkg-ng])))
35--
362.25.1
37
38