Fix "warning: 'format' attribute argument not supported: rpl_printf".
[gnulib.git] / modules / sys_utsname
blobbefd0d345781a67a0875fcdd7352ec4248436ee7
1 Description:
2 A <sys/utsname.h> for systems which lack it.
4 Files:
5 lib/sys_utsname.in.h
6 m4/sys_utsname_h.m4
8 Depends-on:
9 include_next
10 snippet/arg-nonnull
11 snippet/warn-on-use
13 configure.ac:
14 gl_SYS_UTSNAME_H
15 AC_PROG_MKDIR_P
17 Makefile.am:
18 BUILT_SOURCES += sys/utsname.h
20 # We need the following in order to create <sys/utsname.h> when the system
21 # does not have one.
22 sys/utsname.h: sys_utsname.in.h $(top_builddir)/config.status $(WARN_ON_USE_H) $(ARG_NONNULL_H)
23         $(AM_V_at)$(MKDIR_P) sys
24         $(AM_V_GEN)rm -f $@-t $@ && \
25         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
27               -e 's/@''HAVE_SYS_UTSNAME_H''@/$(HAVE_SYS_UTSNAME_H)/g' \
28               -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_SYS_UTSNAME_H''@|$(NEXT_SYS_UTSNAME_H)|g' \
32               -e 's/@''GNULIB_UNAME''@/$(GNULIB_UNAME)/g' \
33               -e 's|@''HAVE_STRUCT_UTSNAME''@|$(HAVE_STRUCT_UTSNAME)|g' \
34               -e 's|@''HAVE_UNAME''@|$(HAVE_UNAME)|g' \
35               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
36               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
37               < $(srcdir)/sys_utsname.in.h; \
38         } > $@-t && \
39         mv $@-t $@
40 MOSTLYCLEANFILES += sys/utsname.h sys/utsname.h-t
41 MOSTLYCLEANDIRS += sys
43 Include:
44 <sys/utsname.h>
46 License:
47 LGPLv2+
49 Maintainer:
50 all