Merge branch 'upstream' into stable
[gnulib.git] / modules / selinux-h
1 Description:
2 SELinux-related headers for systems that lack them.
3
4 Files:
5 lib/getfilecon.c
6 lib/se-context.in.h
7 lib/se-selinux.in.h
8 m4/selinux-context-h.m4
9 m4/selinux-selinux-h.m4
10
11 Depends-on:
12 errno
13 unused-parameter
14
15 configure.ac:
16 gl_HEADERS_SELINUX_SELINUX_H
17 gl_HEADERS_SELINUX_CONTEXT_H
18 AC_REQUIRE([AC_C_INLINE])
19
20 Makefile.am:
21 lib_SOURCES += se-context.in.h se-selinux.in.h
22
23 BUILT_SOURCES += selinux/selinux.h
24 selinux/selinux.h: se-selinux.in.h $(UNUSED_PARAMETER_H)
25         $(AM_V_at)$(MKDIR_P) selinux
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
28           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
31               -e 's|@''NEXT_SELINUX_SELINUX_H''@|$(NEXT_SELINUX_SELINUX_H)|g' \
32               -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
33               < $(srcdir)/se-selinux.in.h; \
34         } > $@-t && \
35         chmod a-x $@-t && \
36         mv $@-t $@
37 MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t
38
39 BUILT_SOURCES += $(SELINUX_CONTEXT_H)
40 selinux/context.h: se-context.in.h $(UNUSED_PARAMETER_H)
41         $(AM_V_at)$(MKDIR_P) selinux
42         $(AM_V_GEN)rm -f $@-t $@ && \
43         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
44           sed -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
45               < $(srcdir)/se-context.in.h; \
46         } > $@-t && \
47         chmod a-x $@-t && \
48         mv $@-t $@
49 MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
50 MOSTLYCLEANDIRS += selinux
51
52 Include:
53 <selinux/selinux.h>
54 <selinux/context.h>
55
56 Link:
57 $(LIB_SELINUX)
58
59 License:
60 LGPLv2+
61
62 Maintainer:
63 Jim Meyering