2 from waflib
import Options
3 from waflib
import Errors
, Logs
5 if conf
.CHECK_FUNCS('SHA1_Update'):
6 conf
.DEFINE('SHA1_RENAME_NEEDED', 1)
9 # --aes-accel=XXX selects accelerated AES crypto library to use, if any.
12 if Options
.options
.accel_aes
.lower() == "intelaesni":
13 Logs
.info("Attempting to compile with runtime-switchable x86_64 Intel AES instructions. WARNING - this is temporary.")
14 elif Options
.options
.accel_aes
.lower() != "none":
15 raise Errors
.WafError('--aes-accel=%s is not a valid option. Valid options are [none|intelaesni]' % Options
.options
.accel_aes
)