Merge commit '039ae97'
[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
11 configure.ac:
12 gl_SYS_UTSNAME_H
13 AC_PROG_MKDIR_P
14
15 Makefile.am:
16 BUILT_SOURCES += $(SYS_UTSNAME_H)
17
18 # We need the following in order to create <sys/utsname.h> when the system
19 # does not have one.
20 sys/utsname.h: sys_utsname.in.h $(LINK_WARNING_H)
21         $(AM_V_at)$(MKDIR_P) sys
22         $(AM_V_GEN)rm -f $@-t $@ && \
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''GNULIB_UNAME''@|$(GNULIB_UNAME)|g' \
25               -e 's|@''HAVE_UNAME''@|$(HAVE_UNAME)|g' \
26               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
27               < $(srcdir)/sys_utsname.in.h; \
28         } > $@-t && \
29         mv $@-t $@
30 MOSTLYCLEANFILES += sys/utsname.h sys/utsname.h-t
31 MOSTLYCLEANDIRS += sys
32
33 Include:
34 <sys/utsname.h>
35
36 License:
37 LGPLv2+
38
39 Maintainer:
40 Bruno Haible