2 A <sys/utsname.h> for systems which lack it.
16 BUILT_SOURCES += $(SYS_UTSNAME_H)
18 # We need the following in order to create <sys/utsname.h> when the system
20 sys/utsname.h: sys_utsname.in.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; \
30 MOSTLYCLEANFILES += sys/utsname.h sys/utsname.h-t
31 MOSTLYCLEANDIRS += sys