blob: 4f89d8f2e6ae92ace54656601ca236f06c026dd1 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From 887a403e38f590ebf1d04ce600d94cb7a351744c Mon Sep 17 00:00:00 2001
2From: Wenzong Fan <wenzong.fan@windriver.com>
3Date: Mon, 1 Dec 2014 00:57:42 -0500
4Subject: [PATCH] ltrace: allow to enable/disable selinux support
5
6Upstream-Status: Pending
7
8Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
9---
10 configure.ac | 10 ++++++++--
11 1 file changed, 8 insertions(+), 2 deletions(-)
12
13diff --git a/configure.ac b/configure.ac
14index 6fe5e3b..189885a 100644
15--- a/configure.ac
16+++ b/configure.ac
17@@ -125,8 +125,14 @@ AC_SUBST(libstdcxx_LIBS)
18
19
20 dnl Check security_get_boolean_active availability.
21-AC_CHECK_HEADERS(selinux/selinux.h)
22-AC_CHECK_LIB(selinux, security_get_boolean_active)
23+AC_ARG_ENABLE([selinux],
24+ AS_HELP_STRING([--enable-selinux],[enable SELinux support [default=auto]]),
25+ [], [enable_selinux=auto])
26+
27+if test x$enable_selinux != xno; then
28+ AC_CHECK_HEADERS(selinux/selinux.h)
29+ AC_CHECK_LIB(selinux, security_get_boolean_active)
30+fi
31
32 dnl Whether (and which) elfutils libdw.so to use for unwinding.
33 AC_ARG_WITH(elfutils,
34--
351.7.9.5
36