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['futile'] = "FC=mpif90 CFLAGS='-Wall -g -O2' FCFLAGS='-O2 -g -Wall -fbounds-check'"

module_autogenargs['atlab'] = "FC=mpif90 CFLAGS='-Wall -g -O2' FCFLAGS='-O2 -g -Wall -fbounds-check'"

module_autogenargs['libxc'] = "CC=gcc --disable-shared"

module_autogenargs['chess'] = "FC=mpif90 CFLAGS='-Wall -g -O2' FCFLAGS='-O2 -g -Wall -fbounds-check'"

module_autogenargs['psolver'] = "FC=mpif90 CFLAGS='-Wall -g -O2' CXXFLAGS='-g -O2' FCFLAGS='-O2 -g -Wall -fbounds-check' --with-pyyaml-path=%(prefix)s/lib/python2.7/site-packages" % globals()

module_autogenargs['bigdft'] = "FC=mpif90 CFLAGS='-Wall -g -O2' CXXFLAGS='-g -O2' FCFLAGS='-O2 -g -Wall -fbounds-check' --with-pyyaml-path=%(prefix)s/lib/python2.7/site-packages" % globals()

module_autogenargs['spred'] = "FC=mpif90 CFLAGS='-Wall -g -O2' CXXFLAGS='-g -O2' FCFLAGS='-O2 -g -Wall -fbounds-check' --with-pyyaml-path=%(prefix)s/lib/python2.7/site-packages" % globals()

module_autogenargs['pseudo'] = "FC=mpif90 FCFLAGS='-O2 -g -Wall -fbounds-check'"

module_autogenargs['libABINIT'] = "FC=mpif90 FCFLAGS='-g -O2'"

module_autogenargs['liborbs'] = "FC=mpif90 FCFLAGS='-g -O2'"

module_makeargs['wannier90'] = "F90=gfortran MPIF90=mpif90 LIBS='-llapack -lblas' COMMS='mpi'"

module_makeargs['parmetis'] = "config all install prefix=%(prefix)s" % globals()

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

# For NTPoly
module_cmakeargs['ntpoly'] = "-DCMAKE_Fortran_FLAGS_RELEASE='-O2 -g -Wall " + \
                             "-fbounds-check' " + \
                             "-DCMAKE_Fortran_COMPILER='mpif90' " + \
                             "-DCMAKE_DISABLE_FIND_PACKAGE_OpenMP=TRUE"
