NEWS.stable: log cherry-pick [79aac72]->[cc1a9b7] canonicalize-lgpl: use common idiom
[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 $(top_builddir)/config.status $(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 if GL_GENERATE_SELINUX_CONTEXT_H
41 selinux/context.h: se-context.in.h $(top_builddir)/config.status $(UNUSED_PARAMETER_H)
42         $(AM_V_at)$(MKDIR_P) selinux
43         $(AM_V_GEN)rm -f $@-t $@ && \
44         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
45           sed -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
46               < $(srcdir)/se-context.in.h; \
47         } > $@-t && \
48         chmod a-x $@-t && \
49         mv $@-t $@
50 else
51 selinux/context.h: $(top_builddir)/config.status
52         rm -f $@
53 endif
54 MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
55 MOSTLYCLEANDIRS += selinux
56
57 Include:
58 <selinux/selinux.h>
59 <selinux/context.h>
60
61 Link:
62 $(LIB_SELINUX)
63
64 License:
65 LGPLv2+
66
67 Maintainer:
68 Jim Meyering