-dnl Mac OS X and other OSes don't have declaration for nanosleep
-if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
- AC_MSG_CHECKING(for nanosleep in time.h)
- AC_EGREP_HEADER(nanosleep,time.h,[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_DECL_NANOSLEEP, 1,
- Define if <time.h> defines nanosleep.)
- ],[
- AC_MSG_RESULT(no)
- ])
-fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
-
-dnl Make sure we have timespecs
-AC_MSG_CHECKING(for timespec in sys/time.h)
-AC_EGREP_HEADER(timespec,sys/time.h,[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_STRUCT_TIMESPEC, 1,
- Define if <sys/time.h> defines struct timespec.)
-],[
- AC_MSG_RESULT(no)
-])
-