From 3f039e93604a9914d45cbed6fa943c492c7ea570 Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 3 Nov 2003 15:13:11 -0800 Subject: [PATCH] [svn] Actually define HAVE_NANOSLEEP if it's found in -lrt. --- configure.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index d49233bd..ae931640 100644 --- a/configure.in +++ b/configure.in @@ -195,9 +195,9 @@ AC_CHECK_FUNCS(strdup strstr strcasecmp strncasecmp strpbrk memmove) AC_CHECK_FUNCS(gettimeofday mktime strptime strerror snprintf vsnprintf) AC_CHECK_FUNCS(select sigblock sigsetjmp signal symlink access isatty) AC_CHECK_FUNCS(uname gethostname usleep) -AC_CHECK_FUNC(nanosleep,,[ - AC_CHECK_LIB(rt,nanosleep,,[ - AC_CHECK_LIB(posix4,nanosleep)])]) +AC_CHECK_FUNCS(nanosleep,,[ + AC_CHECK_LIB(rt,nanosleep,[AC_DEFINE(HAVE_NANOSLEEP)],[ + AC_CHECK_LIB(posix4,nanosleep,[AC_DEFINE(HAVE_NANOSLEEP)])])]) dnl dnl Check if we need to compile in getopt.c.