summaryrefslogtreecommitdiff
path: root/modules/getrusage
diff options
context:
space:
mode:
Diffstat (limited to 'modules/getrusage')
-rw-r--r--modules/getrusage7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/getrusage b/modules/getrusage
index 4f58f9663d..512fb1c419 100644
--- a/modules/getrusage
+++ b/modules/getrusage
@@ -11,12 +11,13 @@ stdint [test $HAVE_GETRUSAGE = 0]
configure.ac:
gl_FUNC_GETRUSAGE
-if test $HAVE_GETRUSAGE = 0; then
- AC_LIBOBJ([getrusage])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETRUSAGE], [test $HAVE_GETRUSAGE = 0])
gl_SYS_RESOURCE_MODULE_INDICATOR([getrusage])
Makefile.am:
+if GL_COND_OBJ_GETRUSAGE
+lib_SOURCES += getrusage.c
+endif
Include:
<sys/resource.h>