def METHOD_NAME(self):
    spec = self.spec
    config_args = ["CC=%s" % spec["mpi"].mpicc, "CXX=%s" % spec["mpi"].mpicxx]
    if "+cuda" in spec:
        config_args.extend(["--enable-cuda", "--with-cuda=%s" % spec["cuda"].prefix])
        cuda_arch = spec.variants["cuda_arch"].value
        if "none" not in cuda_arch:
            config_args.append("NVCCFLAGS=" + " ".join(self.cuda_flags(cuda_arch)))
    if "+rocm" in spec:
        config_args.extend(["--enable-rocm", "--with-rocm=%s" % spec["hip"].prefix])
        rocm_arch = spec.variants["amdgpu_target"].value
        if "none" not in rocm_arch:
            config_args.append("HCC_AMDGPU_TARGET=" + " ".join(self.hip_flags(rocm_arch)))
    if "+papi" in spec:
        config_args.extend(["--enable-papi", "--with-papi=%s" % spec["papi"].prefix])
    if "+graphing" in spec:
        config_args.extend(
            [
                "--with-convert=%s/bin" % spec["imagemagick"].prefix,
                "--with-gnuplot=%s/bin" % spec["gnuplot"].prefix,
            ]
        )
    # librt not available on darwin (and not required)
    if not sys.platform == "darwin":
        config_args.append("LDFLAGS=-lrt")
    return config_args