Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | net-snmp: add knob whether nlist.h are checked |
| 2 | |
| 3 | Previously, it still was checked when there was no nlish.h in sysroots directory. |
| 4 | Add knob to decide whether nlist.h are checked or not. |
| 5 | |
| 6 | Upstream-status: Pending |
| 7 | |
| 8 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> |
| 9 | --- |
| 10 | configure.d/config_os_headers | 2 ++ |
| 11 | 1 file changed, 2 insertions(+) |
| 12 | |
| 13 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
| 14 | index d903f58..a05d30e 100644 |
| 15 | --- a/configure.d/config_os_headers |
| 16 | +++ b/configure.d/config_os_headers |
| 17 | @@ -31,6 +31,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl |
| 18 | [sys/un.h ]) |
| 19 | |
| 20 | # Library and Agent: |
| 21 | +if test "x$with_elf" != "xno"; then |
| 22 | AC_CHECK_HEADERS([nlist.h],,,[ |
| 23 | AC_INCLUDES_DEFAULT |
| 24 | [ |
| 25 | @@ -38,6 +39,7 @@ AC_INCLUDES_DEFAULT |
| 26 | #define LIBBSD_DISABLE_DEPRECATED 1 |
| 27 | #endif |
| 28 | ]]) |
| 29 | +fi |
| 30 | |
| 31 | # Library: |
| 32 | AC_CHECK_HEADERS([fcntl.h io.h kstat.h ] dnl |
| 33 | -- |
| 34 | 1.7.9.5 |
| 35 | |