summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0001-configure.ac-add-valgrind-header-checking-option.patch
blob: 89f334842fe41f433382bd4805bb8be41c4cff7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Upstream-Status: Pending

Subject: configure.ac: add valgrind header checking option

Signed-off-by: Chen qi <Qi.Chen@windriver.com>
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 945adfc..dd4d7b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1141,7 +1141,10 @@ AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
 
 AC_SUBST(TELINIT)
 
-AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
+AC_ARG_ENABLE(valgrindheader, AS_HELP_STRING([--disable-valgrindheader], [disable valgrind header checking]))
+if test "x$enable_valgrindheader" != "xno"; then
+        AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
+fi
 
 # ------------------------------------------------------------------------------
 have_myhostname=no
-- 
1.9.1