summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 21 insertions, 2 deletions
diff --git a/configure b/configure
index 4198718d..18390a21 100755
--- a/configure
+++ b/configure
@@ -2506,7 +2506,7 @@ else
printf "no\n"
fi
-printf "Checking for _wspawnlp ... "
+printf "Checking for _wspawnvp ... "
cat > conftest.c <<!
#include "config.h"
@@ -2516,7 +2516,7 @@ cat > conftest.c <<!
int main(int argc, char **argv)
{
wchar_t *wargv[] = { L"foo", L"bar", 0 };
- int r = _wspawnlp(_P_WAIT, L"foo", wargv);
+ int r = _wspawnvp(_P_WAIT, L"foo", wargv);
return 0;
}
!
@@ -2527,6 +2527,25 @@ else
printf "no\n"
fi
+printf "Checking for spawnvp ... "
+
+cat > conftest.c <<!
+#include "config.h"
+#include <process.h>
+
+int main(int argc, char **argv)
+{
+ int r = spawnvp(_P_WAIT, "foo", argv);
+ return 0;
+}
+!
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_SPAWN 1\n" >> config.h
+else
+ printf "no\n"
+fi
+
printf "Checking for chsize ... "
cat > conftest.c <<!
#include <unistd.h>