def METHOD_NAME(self):
    """Custom configuration procedure for PDT."""
    # custom prefix option for configure command
    self.cfg['prefix_opt'] = '-prefix='
    # determine values for compiler flags to use
    known_compilers = {
        # assume that system toolchain uses a system-provided GCC
        toolchain.SYSTEM: '-GNU',
        toolchain.GCC: '-GNU',
        toolchain.INTELCOMP: '-icpc',
        toolchain.PGI: '-pgCC',
    }
    comp_fam = self.toolchain.comp_family()
    try:
        compiler_opt = known_compilers[comp_fam]
    except KeyError:
        raise EasyBuildError("Compiler family not supported yet: %s" % comp_fam)
    self.cfg.update('configopts', compiler_opt)
    # PDT's configure script ignores CFLAGS/CXXFLAGS set in the environment,
    # but allows to pass in custom flags via configure option
    useropt = os.getenv('CXXFLAGS')
    if self.toolchain.options['pic']:
        useropt += ' -fPIC'
    self.cfg.update('configopts', '-useropt="%s"' % useropt)
    # Configure creates required subfolders in installdir, so create first (but only once, during first iteration)
    if self.iter_idx == 0:
        super(EB_PDT, self).make_installdir()
    super(EB_PDT, self).METHOD_NAME()