0004-build-fix-build-when-crypt-is-not-part-of-crypt_libs.patch (860B)
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 6 * configure.ac: ditto. 7 8 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> 9 --- 10 configure.ac | 2 +- 11 1 file changed, 1 insertion(+), 1 deletion(-) 12 13 diff --git a/configure.ac b/configure.ac 14 index ca4bf5b..6553c78 100644 15 --- a/configure.ac 16 +++ b/configure.ac 17 @@ -408,7 +408,7 @@ AS_IF([test "x$ac_cv_header_xcrypt_h" = "xyes"], 18 [crypt_libs="crypt"]) 19 20 BACKUP_LIBS=$LIBS 21 -AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="-l$ac_lib", LIBCRYPT="") 22 +AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="${ac_lib:+-l$ac_lib}", LIBCRYPT="") 23 AC_CHECK_FUNCS(crypt_r crypt_gensalt_r) 24 LIBS=$BACKUP_LIBS 25 AC_SUBST(LIBCRYPT) 26 -- 27 1.7.10.4 28