]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
detech BSD libc hash functions in libbsd / libmd
authorDamien Miller <djm@mindrot.org>
Fri, 26 Feb 2021 04:45:38 +0000 (15:45 +1100)
committerDamien Miller <djm@mindrot.org>
Fri, 26 Feb 2021 04:46:47 +0000 (15:46 +1100)
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@

configure.ac

index fe2257314dfe46a333bad81dcfc34fc0c9d3c3e2..1c2757ca5de60d13e289a131001b5c90e422aa3c 100644 (file)
@@ -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