# Default moduleq for Irene are in use.

conditions.add("testing")
#conditions.add("python")

#build_policy = "all"

# List of modules to be built by default
moduleset = 'bigdft'
modules = ['bigdft',]

# Specific configure arguments for each module
module_autogenargs['libxc'] = "FC=mpif90 CC=gcc --enable-shared"

module_autogenargs['futile'] = "FC=mpif90 FCFLAGS='-O2 -g -traceback -fPIC -fopenmp' CFLAGS='-O2 -g -fPIC' --enable-dynamic-libraries --with-pyyaml-path=%(prefix)s/lib/python2.7/site-packages" % globals() + " --with-ext-linalg='%s'" % os.getenv("MKL_LDFLAGS")
module_autogenargs['atlab'] = "FC=mpif90 FCFLAGS='-O2 -g -traceback -fopenmp' --with-pyyaml-path=%(prefix)s/lib/python2.7/site-packages" % globals()
module_autogenargs['psolver'] = "FC=mpif90 FCFLAGS='-O2 -g -traceback -fopenmp' --with-pyyaml-path=%(prefix)s/lib/python2.7/site-packages" % globals() + " --with-ext-linalg='%s'" % os.getenv("MKL_LDFLAGS")
module_autogenargs['bigdft'] = "FC=mpif90 FCFLAGS='-O2 -g -traceback -fopenmp' --with-pyyaml-path=%(prefix)s/lib/python2.7/site-packages" % globals() + " --with-ext-linalg='%s'" % os.getenv("MKL_LDFLAGS")

module_autogenargs['libABINIT'] = "FC=mpif90 FCFLAGS='-fPIC'"

module_autogenargs['GaIn'] = "FC=mpif90 FCFLAGS='-fPIC'"
module_autogenargs['chess'] = "FC=mpif90 FCFLAGS='-fPIC' --with-ext-linalg='%s'" % os.getenv("MKL_LDFLAGS")

module_autogenargs['etsf_io'] += "FCFLAGS='-fPIC'"
