def METHOD_NAME(self):
    """Configure Qt using interactive `configure` script."""
    self.cfg.update('configopts', '-release')
    platform = None
    comp_fam = self.toolchain.comp_family()
    if self.cfg['platform']:
        platform = self.cfg['platform']
    # if no platform is specified, try to derive it based on compiler in toolchain
    elif comp_fam in [toolchain.GCC]:  #@UndefinedVariable
        platform = 'linux-g++-64'
    elif comp_fam in [toolchain.INTELCOMP]:  #@UndefinedVariable
        if LooseVersion(self.version) >= LooseVersion('4'):
            platform = 'linux-icc-64'
        else:
            platform = 'linux-icc'
            # fix -fPIC flag (-KPIC is not correct for recent Intel compilers)
            qmake_conf = os.path.join('mkspecs', platform, 'qmake.conf')
            apply_regex_substitutions(qmake_conf, [('-KPIC', '-fPIC')])
    if platform:
        self.cfg.update('configopts', "-platform %s" % platform)
    else:
        raise EasyBuildError("Don't know which platform to set based on compiler family.")
    if self.cfg['prefix_opt']:
        cmd = "%s ./configure %s%s %s" % (self.cfg['preconfigopts'], self.cfg['prefix_opt'], self.installdir, self.cfg['configopts'])
    elif LooseVersion(self.version) >= LooseVersion('5.8'):
        cmd = "%s ./configure -prefix %s %s" % (self.cfg['preconfigopts'], self.installdir, self.cfg['configopts'])
    else:
        cmd = "%s ./configure --prefix=%s %s" % (self.cfg['preconfigopts'], self.installdir, self.cfg['configopts'])
    qa = {
        "Type 'o' if you want to use the Open Source Edition.": 'o',
        "Do you accept the terms of either license?": 'yes',
    }
    no_qa = [
        "for .*pro",
        r"%s.*" % os.getenv('CXX', '').replace('+', '\\+'),  # need to escape + in 'g++'
        "Reading .*",
        "WARNING .*",
        "Project MESSAGE:.*",
        "rm -f .*",
        'Creating qmake...',
    ]
    run_cmd_qa(cmd, qa, no_qa=no_qa, log_all=True, simple=True, maxhits=120)