From df3d365a99311ecfe921d1dfd1848ff65112e572 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 29 Mar 2013 19:04:56 +0100 Subject: build: Build and check (ice-9 popen) only when --enable-posix and HAVE_FORK. Fixes . Reported by Jan Schukat . * 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'. --- doc/ref/api-options.texi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/ref/api-options.texi') diff --git a/doc/ref/api-options.texi b/doc/ref/api-options.texi index a1575c5af..8fa4f98a5 100644 --- a/doc/ref/api-options.texi +++ b/doc/ref/api-options.texi @@ -1,6 +1,7 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011, 2012 +@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, +@c 2008, 2009, 2010, 2011, 2012, 2013 @c Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @@ -281,6 +282,11 @@ Databases}). Indicates support for POSIX functions: @code{pipe}, @code{getgroups}, @code{kill}, @code{execl} and so on (@pxref{POSIX}). +@item fork +Indicates support for the POSIX @code{fork} function (@pxref{Processes, +@code{primitive-fork}}). This is a prerequisite for the @code{(ice-9 +popen)} module (@pxref{Pipes}). + @item random Indicates availability of random number generation functions: @code{random}, @code{copy-random-state}, @code{random-uniform} and so on -- cgit v1.2.3