summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index ff7f67fa..f20ec31d 100755
--- a/configure
+++ b/configure
@@ -1720,6 +1720,27 @@ else
printf "no\n"
fi
+printf "Checking for _wspawvp ... "
+
+cat > conftest.c <<!
+#include "config.h"
+#include <process.h>
+#include <wchar.h>
+
+int main(int argc, char **argv)
+{
+ wchar_t *wargv[] = { L"foo", L"bar", 0 };
+ int r = _wspawnlp(_P_WAIT, L"foo", wargv);
+ return 0;
+}
+!
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_WSPAWN 1\n" >> config.h
+else
+ printf "no\n"
+fi
+
#
# Dependent variables
#