diff --git a/var/spack/repos/builtin/packages/mpileaks/package.py b/var/spack/repos/builtin/packages/mpileaks/package.py index 96cd1d968144f752fba88c750b7bd37767fe174b..83aa3f5ad39783cad8d01eea1614fdb382aec7f4 100644 --- a/var/spack/repos/builtin/packages/mpileaks/package.py +++ b/var/spack/repos/builtin/packages/mpileaks/package.py @@ -6,7 +6,7 @@ from spack import * -class Mpileaks(Package): +class Mpileaks(AutotoolsPackage): """Tool to detect and report leaked MPI objects like MPI_Requests and MPI_Datatypes.""" @@ -19,9 +19,10 @@ class Mpileaks(Package): depends_on("adept-utils") depends_on("callpath") - def install(self, spec, prefix): - configure("--prefix=" + prefix, - "--with-adept-utils=" + spec['adept-utils'].prefix, - "--with-callpath=" + spec['callpath'].prefix) - make() - make("install") + def configure_args(self): + args = [] + + args.append("--with-adept-utils=%s" % self.spec['adept-utils'].prefix) + args.append("--with-callpath=%s" % self.spec['callpath'].prefix) + + return args