6 if Options
.options
.accel_aes
.lower() == "intelaesni":
7 if conf
.CHECK_CFLAGS('-Wp,-E,-lang-asm', ''):
8 if conf
.env
['SYSTEM_UNAME_MACHINE'] == 'x86_64':
9 print("Compiling with Intel AES instructions")
10 conf
.DEFINE('HAVE_AESNI_INTEL', 1)
12 raise Utils
.WafError('--aes-accel=intelaesni selected and non x86_64 CPU')
14 raise Utils
.WafError('--aes-accel=intelaesni selected and compiler rejects -Wp,-E,-lang-asm')
17 if not bld
.CONFIG_SET('HAVE_AESNI_INTEL'):
20 bld
.SAMBA_LIBRARY('aesni-intel',
21 source
='aesni-intel_asm.c',
22 cflags
='-Wp,-E,-lang-asm',