diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-04-16 21:34:19 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-04-16 21:34:19 -0700 |
commit | e0fa761ad7a76f760fb358f5d5855bdd55eef13c (patch) | |
tree | 5d4c615ed10e235b4776a56f6f55d71bbeeb67dd /configure | |
parent | 83aea1f74dd3de219de053d9162f8b217b0530ca (diff) | |
download | txr-e0fa761ad7a76f760fb358f5d5855bdd55eef13c.tar.gz txr-e0fa761ad7a76f760fb358f5d5855bdd55eef13c.tar.bz2 txr-e0fa761ad7a76f760fb358f5d5855bdd55eef13c.zip |
Add exec and pipe functions.
* configure: Check for pipe.
* sysif.c (exec_wrap, pipe_wrap): New static functions.
(sysif_init): Register exec and pipe intrinsics.
* txr.1: Documented exec and pipe.
* tl.vim, txr.vim: Regenerated.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1889,6 +1889,25 @@ else printf "no\n" fi +printf "Checking for pipe ... " +cat > conftest.c <<! +#include <unistd.h> + +int main(void) +{ + int p[2]; + int r = pipe(p); + return 0; +} +! +if conftest ; then + printf "yes\n" + printf "#define HAVE_PIPE 1\n" >> $config_h +else + printf "no\n" +fi + + printf "Checking for _wspawnlp ... " cat > conftest.c <<! |