AC_FUNC_STRFTIME
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([alarm gettimeofday localtime_r memmove memset putenv setenv strdup strerror strrchr strstr])
-AC_REPLACE_FUNCS([strsignal])
+AC_REPLACE_FUNCS([sleep strsignal])
# Output files
AC_CONFIG_HEADERS([config.h])
--- /dev/null
+/* This file gets included if AC_REPLACE_FUNCS([sleep]) cannot find the function. */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <sys/types.h>
+
+#if !HAVE_SLEEP
+unsigned int sleep (unsigned int seconds);
+#endif /* !HAVE_SLEEP */
+
+unsigned int
+sleep (unsigned int seconds)
+{
+ return 0;
+}