1
0
forked from brl/citadel
citadel/meta-citadel/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch

43 lines
1.2 KiB
Diff
Raw Normal View History

2019-01-15 12:34:27 -05:00
From 38de4bccdb8a861ffdd447f12fdab19d6d852c02 Mon Sep 17 00:00:00 2001
From: Chong Lu <Chong.Lu@windriver.com>
Date: Tue, 26 Jun 2018 17:34:15 +0800
Subject: [PATCH] vim: add knob whether elf.h are checked
2017-12-04 16:33:20 -05:00
Previously, it still was checked when there was no elf library in sysroots directory.
Add knob to decide whether elf.h are checked or not.
2019-01-15 12:34:27 -05:00
Upstream-Status: Pending
2017-12-04 16:33:20 -05:00
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
2019-01-15 12:34:27 -05:00
Signed-off-by: Changqing Li <changqing.li@windriver.com>
2017-12-04 16:33:20 -05:00
---
2019-01-15 12:34:27 -05:00
src/configure.ac | 7 +++++++
2017-12-04 16:33:20 -05:00
1 file changed, 7 insertions(+)
diff --git a/src/configure.ac b/src/configure.ac
2019-01-15 12:34:27 -05:00
index 0ee86ad..64736f0 100644
2017-12-04 16:33:20 -05:00
--- a/src/configure.ac
+++ b/src/configure.ac
2019-01-15 12:34:27 -05:00
@@ -3192,11 +3192,18 @@ AC_TRY_COMPILE([#include <stdio.h>], [int x __attribute__((unused));],
2017-12-04 16:33:20 -05:00
AC_MSG_RESULT(no))
dnl Checks for header files.
+AC_MSG_CHECKING(whether or not to look for elf.h)
+AC_ARG_ENABLE(elf-check,
+ [ --enable-elf-check If elfutils, check for elf.h [default=no]],
+ , enable_elf_check="no")
+AC_MSG_RESULT($enable_elf_check)
+if test "x$enable_elf_check" != "xno"; then
AC_CHECK_HEADER(elf.h, HAS_ELF=1)
dnl AC_CHECK_HEADER(dwarf.h, SVR4=1)
if test "$HAS_ELF" = 1; then
AC_CHECK_LIB(elf, main)
fi
+fi
AC_HEADER_DIRENT
--
2019-01-15 12:34:27 -05:00
2.7.4
2017-12-04 16:33:20 -05:00