From 829572d77327f8b0b749dc6671b86cf276b08187 Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 3 Nov 2003 14:46:15 -0800 Subject: [PATCH] [svn] Check for nanosleep in -lrt and -lposix4. --- ChangeLog | 5 +++++ configure.in | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a49627c1..4c2f61c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-11-03 Hrvoje Niksic + + * configure.in: Look for nanosleep in -lrt and -lposix4, which is + where Solaris has them. + 2003-11-03 Hrvoje Niksic * configure.in: Check for nanosleep. diff --git a/configure.in b/configure.in index eed67f1e..d49233bd 100644 --- a/configure.in +++ b/configure.in @@ -194,7 +194,10 @@ AC_FUNC_MMAP 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 nanosleep usleep) +AC_CHECK_FUNCS(uname gethostname usleep) +AC_CHECK_FUNC(nanosleep,,[ + AC_CHECK_LIB(rt,nanosleep,,[ + AC_CHECK_LIB(posix4,nanosleep)])]) dnl dnl Check if we need to compile in getopt.c.