1Description: 2A <sys/utsname.h> for systems which lack it. 3 4Files: 5lib/sys_utsname.in.h 6m4/sys_utsname_h.m4 7 8Depends-on: 9include_next 10snippet/arg-nonnull 11snippet/warn-on-use 12 13configure.ac: 14gl_SYS_UTSNAME_H 15AC_PROG_MKDIR_P 16 17Makefile.am: 18BUILT_SOURCES += sys/utsname.h 19 20# We need the following in order to create <sys/utsname.h> when the system 21# does not have one. 22sys/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 $@ 40MOSTLYCLEANFILES += sys/utsname.h sys/utsname.h-t 41MOSTLYCLEANDIRS += sys 42 43Include: 44<sys/utsname.h> 45 46License: 47LGPLv2+ 48 49Maintainer: 50Bruno Haible 51