third_party: Add build capability to aesni-intel.
[bbaumbach/samba-autobuild/.git] / third_party / aesni-intel / wscript
1 #!/usr/bin/env python
2
3 def configure(conf):
4     if conf.CHECK_CFLAGS('-Wp,-E,-lang-asm', '') and conf.env['SYSTEM_UNAME_MACHINE'] == 'x86_64':
5         conf.DEFINE('HAVE_AESNI_INTEL', 1)
6
7 def build(bld):
8     if not bld.CONFIG_SET('HAVE_AESNI_INTEL'):
9         return
10
11     bld.SAMBA_LIBRARY('aesni-intel',
12         source='aesni-intel_asm.c',
13         cflags='-Wp,-E,-lang-asm',
14         private_library=True)