summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-10-20 09:50:59 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-10-20 09:50:59 +0000
commit6b963e9bb457191869a1f85cf2db2396369f6b98 (patch)
tree632b310b39b6b8c89f0c8b98aa87080cfb3cd2ad
parent44e61e36ea5ba28025f949dd0689b3ac6bdd134a (diff)
downloadlibapr-util-6b963e9bb457191869a1f85cf2db2396369f6b98.tar.gz
configure: Link to libcrypt (when available) for apr_password_validate.
Merges r1904726 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.7.x@1904730 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 2bddb65e..d894ec53 100644
--- a/configure.in
+++ b/configure.in
@@ -176,7 +176,8 @@ APU_FIND_ICONV
dnl Enable DSO build; must be last:
APU_CHECK_UTIL_DSO
-AC_SEARCH_LIBS(crypt, crypt ufc)
+AC_SEARCH_LIBS(crypt, crypt ufc,
+ [APR_ADDTO(APRUTIL_LIBS, [$ac_cv_search_crypt])])
AC_MSG_CHECKING(if system crypt() function is threadsafe)
if test "x$apu_crypt_threadsafe" = "x1"; then
AC_DEFINE(APU_CRYPT_THREADSAFE, 1, [Define if the system crypt() function is threadsafe])