{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
- REPLAY_LIBS="${REPLAY_LIBS} -lrt"
+
+ $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
+
+ LIBRT="-lrt"
+
else
case " $LIBOBJS " in
])
AC_CHECK_FUNCS(nanosleep, [], [
# On Solaris, nanosleep is in librt
- AC_CHECK_LIB(rt, nanosleep, [REPLAY_LIBS="${REPLAY_LIBS} -lrt"], [
+ AC_CHECK_LIB(rt, nanosleep, [
+ AC_DEFINE(HAVE_NANOSLEEP)
+ LIBRT="-lrt"
+ ], [
AC_LIBOBJ(nanosleep)
SUDO_APPEND_COMPAT_EXP(sudo_nanosleep)
])