From: Damien Miller Date: Fri, 26 Feb 2021 04:45:38 +0000 (+1100) Subject: detech BSD libc hash functions in libbsd / libmd X-Git-Tag: V_8_5_P1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=493339a940b13be6071629c3c2dd5a3b6fc17023;p=thirdparty%2Fopenssh-portable.git detech BSD libc hash functions in libbsd / libmd Some Linux distributions are shipping the BSD-style hashing functions (e.g. SHA256Update) in libbsd and/or libmd. Detect this situation to avoid header/replacement clashes later. ok dtucker@ --- diff --git a/configure.ac b/configure.ac index fe2257314..1c2757ca5 100644 --- a/configure.ac +++ b/configure.ac @@ -1446,6 +1446,10 @@ AC_CHECK_FUNCS([fmt_scaled scan_scaled login logout openpty updwtmp logwtmp]) AC_SEARCH_LIBS([inet_ntop], [resolv nsl]) AC_SEARCH_LIBS([gethostbyname], [resolv nsl]) +# Some Linux distribtions ship the BSD libc hashing functions in +# separate libraries. +AC_SEARCH_LIBS([SHA256Update], [md bsd]) + # "Particular Function Checks" # see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html AC_FUNC_STRFTIME