Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 38de4bccdb8a861ffdd447f12fdab19d6d852c02 Mon Sep 17 00:00:00 2001 |
| 2 | From: Chong Lu <Chong.Lu@windriver.com> |
| 3 | Date: Tue, 26 Jun 2018 17:34:15 +0800 |
| 4 | Subject: [PATCH] vim: add knob whether elf.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 elf library in sysroots directory. |
| 7 | Add knob to decide whether elf.h are checked or not. |
| 8 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [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> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | --- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | src/configure.ac | 7 +++++++ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | 1 file changed, 7 insertions(+) |
| 16 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 17 | Index: git/src/configure.ac |
| 18 | =================================================================== |
| 19 | --- git.orig/src/configure.ac |
| 20 | +++ git/src/configure.ac |
| 21 | @@ -3264,11 +3264,18 @@ AC_TRY_COMPILE([#include <stdio.h>], [in |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | AC_MSG_RESULT(no)) |
| 23 | |
| 24 | dnl Checks for header files. |
| 25 | +AC_MSG_CHECKING(whether or not to look for elf.h) |
| 26 | +AC_ARG_ENABLE(elf-check, |
| 27 | + [ --enable-elf-check If elfutils, check for elf.h [default=no]], |
| 28 | + , enable_elf_check="no") |
| 29 | +AC_MSG_RESULT($enable_elf_check) |
| 30 | +if test "x$enable_elf_check" != "xno"; then |
| 31 | AC_CHECK_HEADER(elf.h, HAS_ELF=1) |
| 32 | dnl AC_CHECK_HEADER(dwarf.h, SVR4=1) |
| 33 | if test "$HAS_ELF" = 1; then |
| 34 | AC_CHECK_LIB(elf, main) |
| 35 | fi |
| 36 | +fi |
| 37 | |
| 38 | AC_HEADER_DIRENT |
| 39 | |