Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame^] | 1 | From 787269b337e70f073e194c3b361eaf4d5f2291ce Mon Sep 17 00:00:00 2001 |
Andrew Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame] | 2 | From: Chong Lu <Chong.Lu@windriver.com> |
| 3 | Date: Thu, 28 May 2020 09:46:34 -0500 |
| 4 | Subject: [PATCH] net-snmp: add knob whether nlist.h are checked |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | |
| 6 | Previously, it still was checked when there was no nlish.h in sysroots directory. |
| 7 | Add knob to decide whether nlist.h are checked or not. |
| 8 | |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 9 | Upstream-Status: Pending |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | |
| 11 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> |
| 12 | --- |
Andrew Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame] | 13 | configure.d/config_os_headers | 2 ++ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | 1 file changed, 2 insertions(+) |
| 15 | |
| 16 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame^] | 17 | index 584064e..c0688f8 100644 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | --- a/configure.d/config_os_headers |
| 19 | +++ b/configure.d/config_os_headers |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 20 | @@ -37,6 +37,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl |
| 21 | [sys/timeb.h ]) |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | |
| 23 | # Library and Agent: |
| 24 | +if test "x$with_elf" != "xno"; then |
| 25 | AC_CHECK_HEADERS([nlist.h],,,[ |
| 26 | AC_INCLUDES_DEFAULT |
| 27 | [ |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 28 | @@ -44,6 +45,7 @@ AC_INCLUDES_DEFAULT |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | #define LIBBSD_DISABLE_DEPRECATED 1 |
| 30 | #endif |
| 31 | ]]) |
| 32 | +fi |
| 33 | |
| 34 | # Library: |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 35 | AC_CHECK_HEADERS([crt_externs.h ] dnl |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame^] | 36 | -- |
| 37 | 2.25.1 |
| 38 | |