class documentation

class config(old_config): (source)

View In Hierarchy

Undocumented

Method check_compiler_gcc Return True if the C compiler is gcc
Method check_decl Undocumented
Method check_func Undocumented
Method check_funcs_once Check a list of functions at once.
Method check_gcc_function_attribute Undocumented
Method check_gcc_function_attribute_with_intrinsics Undocumented
Method check_gcc_variable_attribute Undocumented
Method check_gcc_version_at_least Return True if the GCC version is greater than or equal to the specified version.
Method check_header Undocumented
Method check_inline Return the inline keyword recognized by the compiler, empty string otherwise.
Method check_macro_true Undocumented
Method check_restrict Return the restrict keyword recognized by the compiler, empty string otherwise.
Method check_type Check type availability. Return True if the type can be compiled, False otherwise
Method check_type_size Check size of a given type.
Method get_output Try to compile, link to an executable, and run a program built from 'body' and 'headers'. Returns the exit status code of the program and its output.
Method initialize_options Undocumented
Instance Variable compiler Undocumented
Instance Variable fcompiler Undocumented
Method _check_compiler Undocumented
Method _compile Undocumented
Method _link Undocumented
Method _wrap_method Undocumented
def check_compiler_gcc(self): (source)

Return True if the C compiler is gcc

def check_decl(self, symbol, headers=None, include_dirs=None): (source)

Undocumented

def check_func(self, func, headers=None, include_dirs=None, libraries=None, library_dirs=None, decl=False, call=False, call_args=None): (source)

Undocumented

def check_funcs_once(self, funcs, headers=None, include_dirs=None, libraries=None, library_dirs=None, decl=False, call=False, call_args=None): (source)

Check a list of functions at once.

This is useful to speed up things, since all the functions in the funcs list will be put in one compilation unit.

Parameters
funcs:seqlist of functions to test
headersUndocumented
include_dirs:seqlist of header paths
libraries:seqlist of libraries to link the code snippet to
library_dirs:seqlist of library paths
decl:dictfor every (key, value), the declaration in the value will be used for function in key. If a function is not in the dictionary, no declaration will be used.
call:dictfor every item (f, value), if the value is True, a call will be done to the function f.
call_argsUndocumented
def check_gcc_function_attribute(self, attribute, name): (source)

Undocumented

def check_gcc_function_attribute_with_intrinsics(self, attribute, name, code, include): (source)

Undocumented

def check_gcc_variable_attribute(self, attribute): (source)

Undocumented

def check_gcc_version_at_least(self, major, minor=0, patchlevel=0): (source)

Return True if the GCC version is greater than or equal to the specified version.

def check_header(self, header, include_dirs=None, library_dirs=None, lang='c'): (source)

Undocumented

def check_inline(self): (source)

Return the inline keyword recognized by the compiler, empty string otherwise.

def check_macro_true(self, symbol, headers=None, include_dirs=None): (source)

Undocumented

def check_restrict(self): (source)

Return the restrict keyword recognized by the compiler, empty string otherwise.

def check_type(self, type_name, headers=None, include_dirs=None, library_dirs=None): (source)

Check type availability. Return True if the type can be compiled, False otherwise

def check_type_size(self, type_name, headers=None, include_dirs=None, library_dirs=None, expected=None): (source)

Check size of a given type.

def get_output(self, body, headers=None, include_dirs=None, libraries=None, library_dirs=None, lang='c', use_tee=None): (source)

Try to compile, link to an executable, and run a program built from 'body' and 'headers'. Returns the exit status code of the program and its output.

def initialize_options(self): (source)

Undocumented

compiler = (source)

Undocumented

fcompiler = (source)

Undocumented

def _check_compiler(self): (source)

Undocumented

def _compile(self, body, headers, include_dirs, lang): (source)

Undocumented

def _link(self, body, headers, include_dirs, libraries, library_dirs, lang): (source)

Undocumented

def _wrap_method(self, mth, lang, args): (source)

Undocumented