From b68f72c7f58c05870100d0d993c9baf0fa80a891 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Mon, 12 Mar 2012 16:21:28 -0700 Subject: lib/crypto: Detect CommonCrypto and use it if available CommonCrypto/CommonDigest is available on Mac and there is function in the libc for MD5 calculation. MD5Final is a C define of CC_MD5_Final. Under some circumstance we have the symbol defined twice in samba binaries on Snow Leopard at least. By detecting CommonCrypto/CommonDigest we end up always using the system version if available. --- lib/crypto/wscript_configure | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/crypto/wscript_configure') diff --git a/lib/crypto/wscript_configure b/lib/crypto/wscript_configure index 77d21e9795..5fc00fb22c 100644 --- a/lib/crypto/wscript_configure +++ b/lib/crypto/wscript_configure @@ -1,2 +1,4 @@ conf.CHECK_FUNCS_IN('MD5Init', 'bsd', headers='bsd/md5.h', checklibc=True) +conf.CHECK_FUNCS_IN('CC_MD5_Init', '', headers='CommonCrypto/CommonDigest.h', + checklibc=True) -- cgit