def METHOD_NAME(self):
    spec = self.spec
    args = []
    if "build=lib" in spec:
        args.append("--with-ngshared")
        # Legacy debug is activated in auto debug mode with build=lib
        if "debug=no" in spec:
            args.append("--disable-debug")
        args.append("--without-x")
    else:
        if "debug=auto" in spec or "debug=no" in spec:
            args.append("--disable-debug")
        if "+readline" in spec:
            args.append("--with-readline=yes")
        if "+X" in spec:
            args.append("--with-x")
            x = spec["libx11"]
            args.extend(
                ["--x-includes=%s" % x.prefix.include, "--x-libraries=%s" % x.prefix.lib]
            )
        else:
            args.append("--without-x")
    if "+xspice" in spec:
        args.append("--enable-xspice")
    if "+cider" in spec:
        args.append("--enable-cider")
    if "+openmp" in spec:
        args.append("--enable-openmp")
    if "~fft" in spec:
        args.append("--with-fftw3=no")
    if "darwin" in spec.architecture:
        args.append("--enable-pss")
    if "@master" in spec:
        args.append("--enable-adms")
    # Do not hide compilation line (easier to debug compilation)
    args.append("--disable-silent-rules")
    return args