diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-07 22:29:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-07 22:29:11 +0100 |
commit | e4b78e2a42e9030348770764c478b73caa925539 (patch) | |
tree | b27e254f7dcaf5a4e38a1515ff0e2a5c5bce80ea /src/auto | |
parent | 3388d334572f9d65a603d09d75e363805d96c5d9 (diff) | |
download | vim-git-e4b78e2a42e9030348770764c478b73caa925539.tar.gz |
patch 8.0.1379: configure check for selinux does not check for header filev8.0.1379
Problem: Configure check for selinux does not check for header file.
Solution: Add an AC_CHECK_HEADER(). (Benny Siegert)
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/auto/configure b/src/auto/configure index 6e0237417..208032ad6 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -4781,8 +4781,13 @@ fi { $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 |