blob: 3152ce288a1c1296c2d5b7bc2425fc6f73e99724 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From ad65b106d3cb3c6e595381be1c45a73c1ef6eb5e Mon Sep 17 00:00:00 2001
Andrew Geisslereafcbb82020-06-05 17:59:17 -05002From: Chong Lu <Chong.Lu@windriver.com>
3Date: Thu, 28 May 2020 09:46:34 -0500
4Subject: [PATCH] net-snmp: add knob whether nlist.h are checked
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005
6Previously, it still was checked when there was no nlish.h in sysroots directory.
7Add knob to decide whether nlist.h are checked or not.
8
Patrick Williamsb9af8752023-01-30 13:28:01 -06009Upstream-Status: Pending
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010
11Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Andrew Geisslerd688a012020-09-18 13:36:00 -050012
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013---
Andrew Geisslereafcbb82020-06-05 17:59:17 -050014 configure.d/config_os_headers | 2 ++
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015 1 file changed, 2 insertions(+)
16
17diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers
Patrick Williams92b42cb2022-09-03 06:53:57 -050018index b9c8c31..01c3376 100644
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019--- a/configure.d/config_os_headers
20+++ b/configure.d/config_os_headers
Andrew Geisslerd688a012020-09-18 13:36:00 -050021@@ -37,6 +37,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl
22 [sys/timeb.h ])
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023
24 # Library and Agent:
25+if test "x$with_elf" != "xno"; then
26 AC_CHECK_HEADERS([nlist.h],,,[
27 AC_INCLUDES_DEFAULT
28 [
Andrew Geisslerd688a012020-09-18 13:36:00 -050029@@ -44,6 +45,7 @@ AC_INCLUDES_DEFAULT
Patrick Williamsb48b7b42016-08-17 15:04:38 -050030 #define LIBBSD_DISABLE_DEPRECATED 1
31 #endif
32 ]])
33+fi
34
35 # Library:
Andrew Geisslerd688a012020-09-18 13:36:00 -050036 AC_CHECK_HEADERS([crt_externs.h ] dnl