stdbit: don’t assume -DHAVE_CONFIG_H
[gnulib.git] / modules / sys_resource
blob3cdac75a18326a8832f61e0e273d602ac2b3d41c
1 Description:
2 A POSIX-like <sys/resource.h>.
4 Files:
5 lib/sys_resource.in.h
6 m4/sys_resource_h.m4
8 Depends-on:
9 gen-header
10 include_next
11 snippet/arg-nonnull
12 snippet/c++defs
13 snippet/warn-on-use
14 sys_time
16 configure.ac:
17 gl_SYS_RESOURCE_H
18 gl_SYS_RESOURCE_H_REQUIRE_DEFAULTS
19 AC_PROG_MKDIR_P
21 Makefile.am:
22 BUILT_SOURCES += sys/resource.h
24 # We need the following in order to create <sys/resource.h> when the system
25 # doesn't have one.
26 sys/resource.h: sys_resource.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
27         $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
28         $(AM_V_at)$(SED_HEADER_STDOUT) \
29               -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
30               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
33               -e 's|@''NEXT_SYS_RESOURCE_H''@|$(NEXT_SYS_RESOURCE_H)|g' \
34               -e 's|@''HAVE_SYS_RESOURCE_H''@|$(HAVE_SYS_RESOURCE_H)|g' \
35               -e 's/@''GNULIB_GETRUSAGE''@/$(GNULIB_GETRUSAGE)/g' \
36               -e 's/@''HAVE_GETRUSAGE''@/$(HAVE_GETRUSAGE)/g' \
37               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
38               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
39               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
40               $(srcdir)/sys_resource.in.h > $@-t
41         $(AM_V_at)mv $@-t $@
42 MOSTLYCLEANFILES += sys/resource.h sys/resource.h-t
43 MOSTLYCLEANDIRS += sys
45 Include:
46 <sys/resource.h>
48 License:
49 LGPLv2+
51 Maintainer:
52 all