summaryrefslogtreecommitdiff
path: root/modules/posix_spawnattr_destroy
diff options
context:
space:
mode:
Diffstat (limited to 'modules/posix_spawnattr_destroy')
-rw-r--r--modules/posix_spawnattr_destroy8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/posix_spawnattr_destroy b/modules/posix_spawnattr_destroy
index 06d28bcc77..751981b1ca 100644
--- a/modules/posix_spawnattr_destroy
+++ b/modules/posix_spawnattr_destroy
@@ -11,12 +11,14 @@ spawn
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_destroy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_DESTROY],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_destroy])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_DESTROY
+lib_SOURCES += spawnattr_destroy.c
+endif
Include:
<spawn.h>