patch 8.0.1379: configure check for selinux does not check for header file
Problem: Configure check for selinux does not check for header file.
Solution: Add an AC_CHECK_HEADER(). (Benny Siegert)
diff --git a/src/auto/configure b/src/auto/configure
index 6e02374..208032a 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -4781,8 +4781,13 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
+ ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
+if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
LIBS="$LIBS -lselinux"
- $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
+ $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
+
+fi
+
fi