mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
configure: add detection for 'nanosleep' function with appropriate headers
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.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
484c880fd0
commit
ff8fc10a65
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user