def METHOD_NAME(self, **kw):
    if not 'define_name' in kw:
        kw['define_name'] = 'HAVE_LARGEFILE'
    if not 'execute' in kw:
        kw['execute'] = True
    if not 'features' in kw:
        if self.env.CXX:
            kw['features'] = ['cxx', 'cxxprogram']
        else:
            kw['features'] = ['c', 'cprogram']
    kw['fragment'] = LARGE_FRAGMENT
    kw['msg'] = 'Checking for large file support'
    ret = True
    try:
        if self.env.DEST_BINFMT != 'pe':
            ret = self.check(**kw)
    except self.errors.ConfigurationError:
        pass
    else:
        if ret:
            return True
    kw['msg'] = 'Checking for -D_FILE_OFFSET_BITS=64'
    kw['defines'] = ['_FILE_OFFSET_BITS=64']
    try:
        ret = self.check(**kw)
    except self.errors.ConfigurationError:
        pass
    else:
        self.define('_FILE_OFFSET_BITS', 64)
        return ret
    self.fatal('There is no support for large files')