From 4f6d1728254c8503e71c6fdd008fb7264dec26c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 12 Feb 2009 11:14:18 +0100 Subject: [PATCH] There are systems where nanosleep is in libc *and* in librt. Let's just do the test in librt when the first one failed. --- source3/configure.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/configure.in b/source3/configure.in index 46e863a14d6..d11ece1b539 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1029,8 +1029,7 @@ AC_CHECK_FUNCS(getdents64) AC_CHECK_FUNCS(setenv strcasecmp fcvt fcvtl) AC_CHECK_FUNCS(syslog vsyslog timegm) AC_CHECK_FUNCS(setlocale nl_langinfo) -AC_CHECK_FUNCS(nanosleep) -AC_CHECK_LIB_EXT(rt, LIBS, nanosleep) +AC_CHECK_FUNCS(nanosleep,,[AC_CHECK_LIB_EXT(rt, LIBS, nanosleep)]) AC_CHECK_FUNCS(mlock munlock mlockall munlockall) AC_CHECK_FUNCS(memalign posix_memalign hstrerror) AC_CHECK_HEADERS(sys/mman.h) -- 2.11.4.GIT