summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-27 16:33:48 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-27 16:33:48 +0000
commit60514309c0a2edc2bbb9bca527e10ceeef0c5691 (patch)
treee07dac4188c7492565f7484b30897ad60827761c /configure
parenta6a75f6442743fb7c21ba649a068d764d961d6f3 (diff)
Detect SELinux support (for install target) in autoconf.
Can be manually overriden in configure or make. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3195 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 23 insertions, 2 deletions
diff --git a/configure b/configure
index 058e909..4705ff9 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Revision: 2990 .
+# From configure.ac Revision: 2999 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61.
#
@@ -686,6 +686,7 @@ PBX_LIBNEWT
USB_LIB
USB_INCLUDE
PBX_LIBUSB
+USE_SELINUX
ASCIIDOC
PPPD_VERSION
LIBOBJS
@@ -1272,6 +1273,7 @@ Optional Packages:
--with-ncurses=PATH use ncurses files in PATH
--with-newt=PATH use newt files in PATH
--with-usb=PATH use libusb files in PATH
+ --with-selinux enable (with) / disable (without) SELinux
--with-ppp=PATH Use ppp support from PATH
Some influential environment variables:
@@ -5328,6 +5330,24 @@ fi
+
+# Check whether --with-selinux was given.
+if test "${with_selinux+set}" = set; then
+ withval=$with_selinux; USE_SELINUX=$withval
+else
+ if test ! -x /usr/sbin/sestatus; then
+ USE_SELINUX=no;
+ elif /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"; then
+ USE_SELINUX=yes
+ fi
+
+
+fi
+
+
+
+
+
# for asciidoc before ver. 7, the backend must be stated explicitly:
ASCIIDOC='asciidoc'
asciidoc_ver=`asciidoc --version 2>&1 | awk '/^asciidoc /{print $2}' | cut -d. -f 1 | head -n 1`
@@ -6076,13 +6096,14 @@ PBX_LIBNEWT!$PBX_LIBNEWT$ac_delim
USB_LIB!$USB_LIB$ac_delim
USB_INCLUDE!$USB_INCLUDE$ac_delim
PBX_LIBUSB!$PBX_LIBUSB$ac_delim
+USE_SELINUX!$USE_SELINUX$ac_delim
ASCIIDOC!$ASCIIDOC$ac_delim
PPPD_VERSION!$PPPD_VERSION$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5