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 ed45dc8d..f833ef10 100755
--- a/configure
+++ b/configure
@@ -838,6 +838,27 @@ else
fi
#
+# sys/wait.h
+#
+
+printf "Checking whether we have <sys/wait.h> ... "
+
+cat > conftest.c <<!
+#include <sys/wait.h>
+
+int main(void)
+{
+ return 0;
+}
+!
+if ! make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then
+ printf "no\n"
+else
+ printf "yes\n"
+ printf "#define HAVE_SYS_WAIT 1\n" >> config.h
+fi
+
+#
# Clean up
#