X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fselinux-h;h=745ea4950d7394024beebe758b89126a4d40b08c;hb=423d3cac13c30bb0d5f85e5fac6ab1406ed1731a;hp=fd01241c709df74f5e85d9e1ddc09caabf54535d;hpb=f4dc80620e25623a69aa852bec5a52e150cedd4a;p=gnulib.git diff --git a/modules/selinux-h b/modules/selinux-h index fd01241c7..745ea4950 100644 --- a/modules/selinux-h +++ b/modules/selinux-h @@ -10,6 +10,7 @@ m4/selinux-selinux-h.m4 Depends-on: errno +unused-parameter configure.ac: gl_HEADERS_SELINUX_SELINUX_H @@ -20,13 +21,15 @@ Makefile.am: lib_SOURCES += se-context.in.h se-selinux.in.h BUILT_SOURCES += selinux/selinux.h -selinux/selinux.h: se-selinux.in.h +selinux/selinux.h: se-selinux.in.h $(UNUSED_PARAMETER_H) $(AM_V_at)$(MKDIR_P) selinux $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SELINUX_SELINUX_H''@|$(NEXT_SELINUX_SELINUX_H)|g' \ + -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \ < $(srcdir)/se-selinux.in.h; \ } > $@-t && \ chmod a-x $@-t && \ @@ -34,10 +37,13 @@ selinux/selinux.h: se-selinux.in.h MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t BUILT_SOURCES += $(SELINUX_CONTEXT_H) -selinux/context.h: se-context.in.h +selinux/context.h: se-context.in.h $(UNUSED_PARAMETER_H) $(AM_V_at)$(MKDIR_P) selinux $(AM_V_GEN)rm -f $@-t $@ && \ - cp $(srcdir)/se-context.in.h $@-t && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \ + < $(srcdir)/se-context.in.h; \ + } > $@-t && \ chmod a-x $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t