aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/Makefile.inc
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-05-21 15:08:44 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-05-21 15:08:44 +0300
commitb94aa0c8380cdb18cddb33440d625474c16643cf (patch)
tree41dc7226f490e7aaa3b32f701e2b3b4fac0afb3f /src/liblzma/check/Makefile.inc
parentDon't use clockid_t in mythread.h when clock_gettime() isn't available. (diff)
downloadxz-b94aa0c8380cdb18cddb33440d625474c16643cf.tar.xz
liblzma: Try to use SHA-256 from the operating system.
If the operating system libc or other base libraries provide SHA-256, use that instead of our own copy. Note that this doesn't use OpenSSL or libgcrypt or such libraries to avoid creating dependencies to other packages. This supports at least FreeBSD, NetBSD, OpenBSD, Solaris, MINIX, and Darwin. They all provide similar but not identical SHA-256 APIs; everyone is a little different. Thanks to Wim Lewis for the original patch, improvements, and testing.
Diffstat (limited to '')
-rw-r--r--src/liblzma/check/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liblzma/check/Makefile.inc b/src/liblzma/check/Makefile.inc
index e4067a9c..dc011a3f 100644
--- a/src/liblzma/check/Makefile.inc
+++ b/src/liblzma/check/Makefile.inc
@@ -47,5 +47,7 @@ endif
endif
if COND_CHECK_SHA256
+if COND_INTERNAL_SHA256
liblzma_la_SOURCES += check/sha256.c
endif
+endif