From 201640b4b9b7ea1f6b171cb43ed033e315fcbbc1 Mon Sep 17 00:00:00 2001 From: Seungha Son Date: Tue, 23 Nov 2021 15:07:51 +0900 Subject: [PATCH] Fix build when crypt() is not part of crypt_libs * configure.ac: Don't set empty -l option in crypt check upstream : https://github.com/linux-pam/linux-pam/commit/01e0038fa55581c4afc9d63b6180d2ea77ba2940 Change-Id: Ibcab19d61f8f3c074b48e696b17b5a7ebf233b91 Signed-off-by: Seungha Son (cherry picked from commit 5b0f078ec372f810b832d0f261c68826fb97d4f9) --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index ae762a2..385f065 100644 --- a/configure.in +++ b/configure.in @@ -400,7 +400,7 @@ AS_IF([test "x$ac_cv_header_xcrypt_h" = "xyes"], [crypt_libs="crypt"]) BACKUP_LIBS=$LIBS -AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="-l$ac_lib", LIBCRYPT="") +AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="${ac_lib:+-l$ac_lib}", LIBCRYPT="") AC_CHECK_FUNCS(crypt_r crypt_gensalt_r) LIBS=$BACKUP_LIBS AC_SUBST(LIBCRYPT) -- 2.7.4