diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/selinux-selinux-h.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/m4/selinux-selinux-h.m4 b/m4/selinux-selinux-h.m4 index f69eb3c375..7028248c71 100644 --- a/m4/selinux-selinux-h.m4 +++ b/m4/selinux-selinux-h.m4 @@ -1,4 +1,4 @@ -# serial 5 -*- Autoconf -*- +# serial 6 -*- Autoconf -*- # Copyright (C) 2006-2007, 2009-2023 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -15,6 +15,13 @@ AC_DEFUN([gl_HEADERS_SELINUX_SELINUX_H], if test "$with_selinux" != no; then AC_CHECK_HEADERS([selinux/selinux.h]) + if test $ac_cv_header_selinux_selinux_h = yes; then + HAVE_SELINUX_SELINUX_H=1 + else + HAVE_SELINUX_SELINUX_H=0 + fi + AC_SUBST([HAVE_SELINUX_SELINUX_H]) + if test "$ac_cv_header_selinux_selinux_h" = yes; then # We do have <selinux/selinux.h>, so do compile getfilecon.c # and arrange to use its wrappers. |