build: Build and check (ice-9 popen) only when --enable-posix and HAVE_FORK.
authorLudovic Courtès <ludo@gnu.org>
Fri, 29 Mar 2013 18:04:56 +0000 (19:04 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 29 Mar 2013 18:20:01 +0000 (19:20 +0100)
commitdf3d365a99311ecfe921d1dfd1848ff65112e572
tree88e440e4df9657cd4a8a1e203df5a235235b2aec
parent7e7c6f6a937005b08fffd5aeccdf992459b07137
build: Build and check (ice-9 popen) only when --enable-posix and HAVE_FORK.

Fixes <http://bugs.gnu.org/13848>.
Reported by Jan Schukat <shookie@email.de>.

* configure.ac: Rename `HAVE_FORK' conditional to `BUILD_ICE_9_POPEN'.
  Set it when both $enable_posix and $ac_cv_func_fork are true.
* libguile/posix.c (scm_init_posix): Add the `fork' feature.
* doc/ref/api-options.texi (Common Feature Symbols): Add `fork'.
* doc/ref/posix.texi (Pipes): Add footnote mentioning the `fork'
  feature.
* module/Makefile.am (SCRIPTS_SOURCES): Make `scripts/autofrisk.scm' and
  `scripts/scan-api.scm' conditional on `BUILD_ICE_9_POPEN'.
* test-suite/tests/popen.test (if-supported): New macro.
  Wrap body in `if-supported'.
configure.ac
doc/ref/api-options.texi
doc/ref/posix.texi
libguile/posix.c
module/Makefile.am
test-suite/tests/popen.test