mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
lib:crypto: Merge wscript_configure into wscript
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
b24c8f540f
commit
a519d57cef
@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
from waflib import Options
|
||||
from waflib import Errors, Logs
|
||||
|
||||
|
||||
def options(opt):
|
||||
opt.add_option('--accel-aes',
|
||||
@ -7,3 +10,20 @@ def options(opt):
|
||||
action="store",
|
||||
dest='accel_aes',
|
||||
default="none")
|
||||
|
||||
|
||||
def configure(conf):
|
||||
if conf.CHECK_FUNCS('SHA1_Update'):
|
||||
conf.DEFINE('SHA1_RENAME_NEEDED', 1)
|
||||
|
||||
#
|
||||
# --aes-accel=XXX selects accelerated AES crypto library to use, if any.
|
||||
# Default is none.
|
||||
#
|
||||
if Options.options.accel_aes.lower() == "intelaesni":
|
||||
Logs.info("Attempting to compile with runtime-switchable x86_64 "
|
||||
"Intel AES instructions. WARNING - this is temporary.")
|
||||
elif Options.options.accel_aes.lower() != "none":
|
||||
raise Errors.WafError("--aes-accel=%s is not a valid option. Valid "
|
||||
"options are [none|intelaesni]" %
|
||||
Options.options.accel_aes)
|
||||
|
@ -1,15 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
from waflib import Options
|
||||
from waflib import Errors, Logs
|
||||
|
||||
if conf.CHECK_FUNCS('SHA1_Update'):
|
||||
conf.DEFINE('SHA1_RENAME_NEEDED', 1)
|
||||
|
||||
#
|
||||
# --aes-accel=XXX selects accelerated AES crypto library to use, if any.
|
||||
# Default is none.
|
||||
#
|
||||
if Options.options.accel_aes.lower() == "intelaesni":
|
||||
Logs.info("Attempting to compile with runtime-switchable x86_64 Intel AES instructions. WARNING - this is temporary.")
|
||||
elif Options.options.accel_aes.lower() != "none":
|
||||
raise Errors.WafError('--aes-accel=%s is not a valid option. Valid options are [none|intelaesni]' % Options.options.accel_aes)
|
Loading…
x
Reference in New Issue
Block a user