Disable AES-NI support if as does not support SSSE3.
authorWerner Koch <wk@gnupg.org>
Fri, 22 Mar 2013 10:41:11 +0000 (11:41 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 22 Mar 2013 10:41:11 +0000 (11:41 +0100)
commit9f4df1612ae21a5ce70d98930cb194e5193f5e2d
tree876f10278c4a8ece7aa43c5eb0ea06c426c87888
parent2a1e03c5a481689c43d197dd8034a1d73de0a1a4
Disable AES-NI support if as does not support SSSE3.

* configure.ac (HAVE_GCC_INLINE_ASM_SSSE3): New test.
(ENABLE_AESNI_SUPPORT): Do not define without SSSE3 support.
(HAVE_GCC_INLINE_ASM_SSSE3, ENABLE_AVX_SUPPORT): Split up detection
and definition.
--

For example the assembler of FreeBSD 7.3 does not know about pshufb
and thus rijndael.c can't be compiled without using
--disable-aesni-support.  This check that the toolchain can use SSSE3
instructions before trying to build with AES_NI support.
configure.ac