closein: correct comments
[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 snippet/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 if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
20   AC_LIBOBJ([getfilecon])
21 fi
22
23 Makefile.am:
24 lib_SOURCES += se-context.in.h se-selinux.in.h
25
26 BUILT_SOURCES += selinux/selinux.h
27 selinux/selinux.h: se-selinux.in.h $(top_builddir)/config.status $(UNUSED_PARAMETER_H)
28         $(AM_V_at)$(MKDIR_P) selinux
29         $(AM_V_GEN)rm -f $@-t $@ && \
30         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
31           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
32               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
33               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
34               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
35               -e 's|@''NEXT_SELINUX_SELINUX_H''@|$(NEXT_SELINUX_SELINUX_H)|g' \
36               -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
37               < $(srcdir)/se-selinux.in.h; \
38         } > $@-t && \
39         chmod a-x $@-t && \
40         mv $@-t $@
41 MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t
42
43 BUILT_SOURCES += $(SELINUX_CONTEXT_H)
44 if GL_GENERATE_SELINUX_CONTEXT_H
45 selinux/context.h: se-context.in.h $(top_builddir)/config.status $(UNUSED_PARAMETER_H)
46         $(AM_V_at)$(MKDIR_P) selinux
47         $(AM_V_GEN)rm -f $@-t $@ && \
48         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
49           sed -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
50               < $(srcdir)/se-context.in.h; \
51         } > $@-t && \
52         chmod a-x $@-t && \
53         mv $@-t $@
54 else
55 selinux/context.h: $(top_builddir)/config.status
56         rm -f $@
57 endif
58 MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
59 MOSTLYCLEANDIRS += selinux
60
61 Include:
62 <selinux/selinux.h>
63 <selinux/context.h>
64
65 Link:
66 $(LIB_SELINUX)
67
68 License:
69 LGPLv2+
70
71 Maintainer:
72 Jim Meyering