install-reloc: Support multi-binary installation.
[gnulib.git] / modules / popen
index d4ba0ab..eb41029 100644 (file)
@@ -7,10 +7,14 @@ m4/popen.m4
 
 Depends-on:
 stdio
-open            [test $REPLACE_POPEN = 1]
+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_PREREQ_POPEN
+fi
 gl_STDIO_MODULE_INDICATOR([popen])
 
 Makefile.am: