From: Christophe CURIS <christophe.cu...@free.fr>

As reported by Milan Čermák, Solaris needs extra library 'rt' to have
access to that POSIX function, so we properly check for it.

Signed-off-by: Christophe CURIS <christophe.cu...@free.fr>
---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index a73f703..7097e9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -258,6 +258,12 @@ AC_CHECK_FUNCS(gethostname select poll strcasecmp 
strncasecmp \
               setsid mallinfo mkstemp sysconf)
 AC_SEARCH_LIBS([strerror], [cposix])
 
+dnl nanosleep is generally available in standard libc, although not always the
+dnl case. One known example is Solaris which needs -lrt
+AC_SEARCH_LIBS([nanosleep], [rt], [],
+    [AC_MSG_ERROR([function 'nanosleep' not found, please report to 
wmaker-dev@lists.windowmaker.org])])
+
+
 dnl Check for strlcat/strlcpy
 dnl =========================
 AC_ARG_WITH([libbsd],
-- 
2.1.1


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to