diff options
author | Jim Meyering <jim@meyering.net> | 2003-11-08 13:24:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-11-08 13:24:12 +0000 |
commit | a70f678c6996c18424e29a86eb73fd7fd73069c5 (patch) | |
tree | 7a2ad0f79d55bd77f69a2e61f1fdd0c79cbceceb | |
parent | b29cc48feb38074f428ba03dc05aadabdec8df00 (diff) | |
download | coreutils-a70f678c6996c18424e29a86eb73fd7fd73069c5.tar.xz |
(jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
value, $ac_cv_search_nanosleep, if it's "none required".
-rw-r--r-- | m4/nanosleep.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/nanosleep.m4 b/m4/nanosleep.m4 index bfe8d5745..fd5fd92fc 100644 --- a/m4/nanosleep.m4 +++ b/m4/nanosleep.m4 @@ -11,8 +11,10 @@ AC_DEFUN([jm_FUNC_NANOSLEEP], # Solaris 2.5.1 needs -lposix4 to get the nanosleep function. # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. - AC_SEARCH_LIBS(nanosleep, [rt posix4], [LIB_NANOSLEEP=$ac_cv_search_nanosleep]) - AC_SUBST(LIB_NANOSLEEP) + AC_SEARCH_LIBS([nanosleep], [rt posix4], + [test "$ac_cv_search_nanosleep" = "none required" || + LIB_NANOSLEEP=$ac_cv_search_nanosleep]) + AC_SUBST([LIB_NANOSLEEP]) AC_CACHE_CHECK([whether nanosleep works], jm_cv_func_nanosleep_works, |