Check for compiler SSE4.1 support in PCLMUL CRC code.
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>
Mon, 9 May 2016 02:04:59 +0000 (04:04 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 28 May 2016 10:00:21 +0000 (13:00 +0300)
commit3e8074ecd3a534e8bd7f11cf17f0b22d252584c8
treeb54cb291fb86e527cf2498167a7552dfb375be66
parenteb6427c3b5993d62e0527b8a08b23a219824b965
Check for compiler SSE4.1 support in PCLMUL CRC code.

* cipher/crc-intel-pclmul.c: Build PCLMUL CRC implementation only if
  compiler supports PCLMUL *and* SSE4.1
* cipher/crc.c: Ditto
* configure.ac (sse41support, gcry_cv_gcc_inline_asm_sse41): New.
--
Fixes build with the native gcc on OpenBSD/amd64, which supports PCLMUL
but not SSE4.1.

Signed-off-by: Jérémie Courrèges-Anglas <jca@wxcvbn.org>
cipher/crc-intel-pclmul.c
cipher/crc.c
configure.ac