diff options
-rw-r--r-- | m4/lib-check.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/lib-check.m4 b/m4/lib-check.m4 index 15ffe542d..92a368598 100644 --- a/m4/lib-check.m4 +++ b/m4/lib-check.m4 @@ -1,4 +1,4 @@ -#serial 5 +#serial 6 dnl Misc lib-related macros for fileutils, sh-utils, textutils. @@ -57,7 +57,9 @@ $ac_includes_default # SCO-ODT-3.0 is reported to need -lufc for crypt. # NetBSD needs -lcrypt for crypt. ac_su_saved_lib="$LIBS" - AC_SEARCH_LIBS(crypt, [ufc crypt], [LIB_CRYPT="$ac_cv_search_crypt"]) + AC_SEARCH_LIBS(crypt, [ufc crypt], + [test "$ac_cv_search_crypt" = "none required" || + LIB_CRYPT="$ac_cv_search_crypt"]) LIBS="$ac_su_saved_lib" AC_SUBST(LIB_CRYPT) ]) |