summaryrefslogtreecommitdiff
path: root/modules/popen
diff options
context:
space:
mode:
Diffstat (limited to 'modules/popen')
-rw-r--r--modules/popen10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/popen b/modules/popen
index eb4102978a..6dbb4f3ed6 100644
--- a/modules/popen
+++ b/modules/popen
@@ -11,13 +11,17 @@ open [test $HAVE_POPEN = 0 || test $REPLACE_POPEN = 1]
configure.ac:
gl_FUNC_POPEN
-if test $HAVE_POPEN = 0 || test $REPLACE_POPEN = 1; then
- AC_LIBOBJ([popen])
+gl_CONDITIONAL([GL_COND_OBJ_POPEN],
+ [test $HAVE_POPEN = 0 || test $REPLACE_POPEN = 1])
+AM_COND_IF([GL_COND_OBJ_POPEN], [
gl_PREREQ_POPEN
-fi
+])
gl_STDIO_MODULE_INDICATOR([popen])
Makefile.am:
+if GL_COND_OBJ_POPEN
+lib_SOURCES += popen.c
+endif
Include:
<stdio.h>