summaryrefslogtreecommitdiff
path: root/modules/mkdtemp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mkdtemp')
-rw-r--r--modules/mkdtemp13
1 files changed, 10 insertions, 3 deletions
diff --git a/modules/mkdtemp b/modules/mkdtemp
index 3bd83e2262..5f65e45a6b 100644
--- a/modules/mkdtemp
+++ b/modules/mkdtemp
@@ -12,17 +12,24 @@ tempname [test $HAVE_MKDTEMP = 0]
configure.ac:
gl_FUNC_MKDTEMP
-if test $HAVE_MKDTEMP = 0; then
- AC_LIBOBJ([mkdtemp])
+gl_CONDITIONAL([GL_COND_OBJ_MKDTEMP], [test $HAVE_MKDTEMP = 0])
+AM_COND_IF([GL_COND_OBJ_MKDTEMP], [
gl_PREREQ_MKDTEMP
-fi
+])
gl_STDLIB_MODULE_INDICATOR([mkdtemp])
Makefile.am:
+if GL_COND_OBJ_MKDTEMP
+lib_SOURCES += mkdtemp.c
+endif
Include:
<stdlib.h>
+Link:
+$(GETRANDOM_LIB)
+$(CLOCK_TIME_LIB)
+
License:
LGPLv2+

Return to:

Send suggestions and report system problems to the System administrator.