1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 10:16:53 +02:00

(jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt

(for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
This commit is contained in:
Jim Meyering
2000-01-03 19:58:09 +00:00
parent 3206a63225
commit 2ff3485a8d
+6 -2
View File
@@ -1,11 +1,15 @@
#serial 1
#serial 2
dnl From Jim Meyering.
dnl FIXME
dnl Check for the nanosleep function
dnl
AC_DEFUN(jm_FUNC_NANOSLEEP,
[
# Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
# Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
AC_SEARCH_LIBS(nanosleep, [rt posix4])
AC_CACHE_CHECK([whether nanosleep works],
jm_cv_func_nanosleep_works,
[AC_TRY_RUN([