AC_CHECK_FUNCS_ONCE([usleep])
AC_CHECK_TYPE([useconds_t], [],
[AC_DEFINE([useconds_t], [unsigned int], [Define to an unsigned 32-bit
type if <sys/types.h> lacks this type.])])
if test $ac_cv_func_usleep = no; then
HAVE_USLEEP=0
AC_CHECK_FUNCS_ONCE([usleep])
AC_CHECK_TYPE([useconds_t], [],
[AC_DEFINE([useconds_t], [unsigned int], [Define to an unsigned 32-bit
type if <sys/types.h> lacks this type.])])
if test $ac_cv_func_usleep = no; then
HAVE_USLEEP=0