New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
[gnulib.git] / modules / sys_utsname
1 Description:
2 A <sys/utsname.h> for systems which lack it.
3
4 Files:
5 lib/sys_utsname.in.h
6 m4/sys_utsname_h.m4
7
8 Depends-on:
9 link-warning
10 arg-nonnull
11
12 configure.ac:
13 gl_SYS_UTSNAME_H
14 AC_PROG_MKDIR_P
15
16 Makefile.am:
17 BUILT_SOURCES += $(SYS_UTSNAME_H)
18
19 # We need the following in order to create <sys/utsname.h> when the system
20 # does not have one.
21 sys/utsname.h: sys_utsname.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
22         $(AM_V_at)$(MKDIR_P) sys
23         $(AM_V_GEN)rm -f $@-t $@ && \
24         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25           sed -e 's|@''GNULIB_UNAME''@|$(GNULIB_UNAME)|g' \
26               -e 's|@''HAVE_UNAME''@|$(HAVE_UNAME)|g' \
27               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
28               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
29               < $(srcdir)/sys_utsname.in.h; \
30         } > $@-t && \
31         mv $@-t $@
32 MOSTLYCLEANFILES += sys/utsname.h sys/utsname.h-t
33 MOSTLYCLEANDIRS += sys
34
35 Include:
36 <sys/utsname.h>
37
38 License:
39 LGPLv2+
40
41 Maintainer:
42 Bruno Haible