Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 887a403e38f590ebf1d04ce600d94cb7a351744c Mon Sep 17 00:00:00 2001 |
| 2 | From: Wenzong Fan <wenzong.fan@windriver.com> |
| 3 | Date: Mon, 1 Dec 2014 00:57:42 -0500 |
| 4 | Subject: [PATCH] ltrace: allow to enable/disable selinux support |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> |
| 9 | --- |
| 10 | configure.ac | 10 ++++++++-- |
| 11 | 1 file changed, 8 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/configure.ac b/configure.ac |
| 14 | index 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 | -- |
| 35 | 1.7.9.5 |
| 36 | |