libposix: Add _HEADERS primaries to posix modules.
[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 arg-nonnull
10 include_next
11 warn-on-use
12
13 configure.ac:
14 gl_SYS_UTSNAME_H
15 AC_PROG_MKDIR_P
16
17 Makefile.am:
18 nobase_nodist_pkginclude_HEADERS += sys/utsname.h
19
20 BUILT_SOURCES += sys/utsname.h
21
22 # We need the following in order to create <sys/utsname.h> when the system
23 # does not have one.
24 sys/utsname.h: sys_utsname.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
25         $(AM_V_at)$(MKDIR_P) sys
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28           sed -e 's/@''HAVE_SYS_UTSNAME_H''@/$(HAVE_SYS_UTSNAME_H)/g' \
29               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
32               -e 's|@''NEXT_SYS_UTSNAME_H''@|$(NEXT_SYS_UTSNAME_H)|g' \
33               -e 's|@''GNULIB_UNAME''@|$(GNULIB_UNAME)|g' \
34               -e 's|@''HAVE_STRUCT_UTSNAME''@|$(HAVE_STRUCT_UTSNAME)|g' \
35               -e 's|@''HAVE_UNAME''@|$(HAVE_UNAME)|g' \
36               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
37               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
38               < $(srcdir)/sys_utsname.in.h; \
39         } > $@-t && \
40         mv $@-t $@
41 MOSTLYCLEANFILES += sys/utsname.h sys/utsname.h-t
42 MOSTLYCLEANDIRS += sys
43
44 Include:
45 <sys/utsname.h>
46
47 License:
48 LGPLv2+
49
50 Maintainer:
51 Bruno Haible