0004-build-fix-build-when-crypt-is-not-part-of-crypt_libs.patch 860 B

12345678910111213141516171819202122232425262728
  1. From a35daea1b8be768d1b0be6eae157fbf3e5380f92 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Wed, 17 Jun 2015 18:22:31 +0800
  4. Subject: [PATCH 4/7] build: fix build when crypt() is not part of crypt_libs.
  5. * configure.ac: ditto.
  6. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  7. ---
  8. configure.ac | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/configure.ac b/configure.ac
  11. index ca4bf5b..6553c78 100644
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -408,7 +408,7 @@ AS_IF([test "x$ac_cv_header_xcrypt_h" = "xyes"],
  15. [crypt_libs="crypt"])
  16. BACKUP_LIBS=$LIBS
  17. -AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="-l$ac_lib", LIBCRYPT="")
  18. +AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="${ac_lib:+-l$ac_lib}", LIBCRYPT="")
  19. AC_CHECK_FUNCS(crypt_r crypt_gensalt_r)
  20. LIBS=$BACKUP_LIBS
  21. AC_SUBST(LIBCRYPT)
  22. --
  23. 1.7.10.4