| 1 |
# serial 4 -*- Autoconf -*- |
| 2 |
# Copyright (C) 2006-2007, 2009-2022 Free Software Foundation, Inc. |
| 3 |
# This file is free software; the Free Software Foundation |
| 4 |
# gives unlimited permission to copy and/or distribute it, |
| 5 |
# with or without modifications, as long as this notice is preserved. |
| 6 |
|
| 7 |
# From Jim Meyering |
| 8 |
# Provide <selinux/context.h>, if necessary. |
| 9 |
|
| 10 |
AC_DEFUN([gl_HEADERS_SELINUX_CONTEXT_H], |
| 11 |
[ |
| 12 |
AC_REQUIRE([gl_LIBSELINUX]) |
| 13 |
if test "$with_selinux" != no; then |
| 14 |
AC_CHECK_HEADERS([selinux/context.h], |
| 15 |
[GL_GENERATE_SELINUX_CONTEXT_H=false], |
| 16 |
[GL_GENERATE_SELINUX_CONTEXT_H=true]) |
| 17 |
else |
| 18 |
GL_GENERATE_SELINUX_CONTEXT_H=true |
| 19 |
fi |
| 20 |
]) |