aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-24 13:23:12 +0000
committerlloyd <[email protected]>2010-02-24 13:23:12 +0000
commit27d84b179913a82849c3994e8724dbec379dab52 (patch)
tree83634362c2d0ee146ef9a2104722dc3f5491088d /configure.py
parent7424a5b5102b569e3c052cb195c98b5d1b60ce30 (diff)
parentf849aab38b36c68217e98d1bfc8d8ef8f0e3c027 (diff)
propagate from branch 'net.randombit.botan' (head 2b67727dd9d1e7fe34f3cb7b7f6715ba42a04918)
to branch 'net.randombit.botan.c++0x' (head 1e2e1596f2b4928c2b7bfba624ea5e4ac69dfdad)
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py27
1 files changed, 18 insertions, 9 deletions
diff --git a/configure.py b/configure.py
index 9a566f716..4388cb0a0 100755
--- a/configure.py
+++ b/configure.py
@@ -464,9 +464,9 @@ class ModuleInfo(object):
return os.path.join(os.path.split(self.lives_in)[0],
*filename.split(':'))
- self.source = map(add_dir_name, self.source)
- self.header_internal = map(add_dir_name, self.header_internal)
- self.header_public = map(add_dir_name, self.header_public)
+ self.source = [add_dir_name(s) for s in self.source]
+ self.header_internal = [add_dir_name(s) for s in self.header_internal]
+ self.header_public = [add_dir_name(s) for s in self.header_public]
self.mp_bits = int(self.mp_bits)
@@ -518,9 +518,9 @@ class ModuleInfo(object):
about any that do not
"""
def dependencies_exist(self, modules):
- all_deps = map(lambda s: s.split('|'), self.dependencies())
+ all_deps = [s.split('|') for s in self.dependencies()]
- for missing in filter(lambda s: s not in modules, flatten(all_deps)):
+ for missing in [s for s in flatten(all_deps) if s not in modules]:
logging.warn("Module '%s', dep of '%s', does not exist" % (
missing, self.basename))
@@ -1055,8 +1055,7 @@ def choose_modules_to_use(modules, archinfo, options):
while dependency_failure:
dependency_failure = False
for modname in to_load:
- for deplist in map(lambda s: s.split('|'),
- modules[modname].dependencies()):
+ for deplist in [s.split('|') for s in modules[modname].dependencies()]:
dep_met = False
for mod in deplist:
@@ -1338,8 +1337,8 @@ def generate_amalgamation(build_config):
botan_all_h.write("\n#endif\n")
internal_header_amalag = Amalgamation_Generator(
- filter(lambda s: s.find('asm_macr_') == -1,
- build_config.internal_headers))
+ [s for s in build_config.internal_headers
+ if s.find('asm_macr_') == -1])
botan_all_cpp = open('botan_all.cpp', 'w')
@@ -1466,6 +1465,16 @@ def main(argv = None):
logging.info('Setting -fpermissive to work around gcc bug')
options.extra_flags = ' -fpermissive'
+ if options.gen_amalgamation:
+ if options.asm_ok:
+ logging.info('Disabling assembly code, cannot use in amalgamation')
+ options.asm_ok = False
+
+ for mod in ['sha1_sse2', 'serpent_simd']:
+ if mod not in options.disabled_modules:
+ logging.info('Disabling %s, cannot use in amalgamation' % (mod))
+ options.disabled_modules.append(mod)
+
modules_to_use = choose_modules_to_use(modules,
archinfo[options.arch],
options)