summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure b/configure
index 22b61cdc..b184d6c4 100755
--- a/configure
+++ b/configure
@@ -1278,6 +1278,26 @@ int x = sizeof ((struct tm *) 0)->$try_field;
fi
done
+printf "Checking for POSIX sleep function ... "
+
+cat > conftest.c <<!
+#include <unistd.h>
+
+int main(int argc, char **argv)
+{
+ sleep(42);
+ return 0;
+}
+!
+rm -f conftest
+if ! $make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then
+ printf "no\n"
+else
+ printf "yes\n"
+ printf "#define HAVE_POSIX_SLEEP 1\n" >> config.h
+fi
+
+
printf "done\n"
#