845
845
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846
846
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847
847
--disable-darwin Disable Darwin (Mac OS X) support.
848
--disable-selinux Don't check for SELinux support.
848
849
--disable-xsmp Disable XSMP session management
849
850
--disable-xsmp-interact Disable XSMP interaction
850
851
--enable-mzschemeinterp Include MzScheme interpreter.
3615
echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
3616
echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6
3617
# Check whether --enable-selinux or --disable-selinux was given.
3618
if test "${enable_selinux+set}" = set; then
3619
enableval="$enable_selinux"
3622
enable_selinux="yes"
3624
if test "$enable_selinux" = "yes"; then
3625
echo "$as_me:$LINENO: result: no" >&5
3626
echo "${ECHO_T}no" >&6
3627
echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
3628
echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
3629
if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
3630
echo $ECHO_N "(cached) $ECHO_C" >&6
3632
ac_check_lib_save_LIBS=$LIBS
3633
LIBS="-lselinux $LIBS"
3634
cat >conftest.$ac_ext <<_ACEOF
3637
cat confdefs.h >>conftest.$ac_ext
3638
cat >>conftest.$ac_ext <<_ACEOF
3639
/* end confdefs.h. */
3641
/* Override any gcc2 internal prototype to avoid an error. */
3645
/* We use char because int might match the return type of a gcc2
3646
builtin and then its argument prototype would still apply. */
3647
char is_selinux_enabled ();
3651
is_selinux_enabled ();
3656
rm -f conftest.$ac_objext conftest$ac_exeext
3657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658
(eval $ac_link) 2>conftest.er1
3660
grep -v '^ *+' conftest.er1 >conftest.err
3662
cat conftest.err >&5
3663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664
(exit $ac_status); } &&
3665
{ ac_try='test -z "$ac_c_werror_flag"
3666
|| test ! -s conftest.err'
3667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671
(exit $ac_status); }; } &&
3672
{ ac_try='test -s conftest$ac_exeext'
3673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677
(exit $ac_status); }; }; then
3678
ac_cv_lib_selinux_is_selinux_enabled=yes
3680
echo "$as_me: failed program was:" >&5
3681
sed 's/^/| /' conftest.$ac_ext >&5
3683
ac_cv_lib_selinux_is_selinux_enabled=no
3685
rm -f conftest.err conftest.$ac_objext \
3686
conftest$ac_exeext conftest.$ac_ext
3687
LIBS=$ac_check_lib_save_LIBS
3689
echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
3690
echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
3691
if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
3692
LIBS="$LIBS -lselinux"
3693
cat >>confdefs.h <<\_ACEOF
3694
#define HAVE_SELINUX 1
3700
echo "$as_me:$LINENO: result: yes" >&5
3701
echo "${ECHO_T}yes" >&6
3616
3705
echo "$as_me:$LINENO: checking --with-features argument" >&5