diff options
author | Greg Ward <gward@python.net> | 2000-10-14 03:56:42 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-10-14 03:56:42 (GMT) |
commit | 4cd6f2ab807e0f3a23a059a407a08c5edad6bb98 (patch) | |
tree | bfd22f662da32d2b7711777502700f20b2c6be7f /Lib/distutils | |
parent | 0b4dafc39bce17900c6e4f18128b7ffafbc55dc4 (diff) | |
download | cpython-4cd6f2ab807e0f3a23a059a407a08c5edad6bb98.zip cpython-4cd6f2ab807e0f3a23a059a407a08c5edad6bb98.tar.gz cpython-4cd6f2ab807e0f3a23a059a407a08c5edad6bb98.tar.bz2 |
Bastian Kleineidam: make 'check_lib()' more like AC_CHECK_LIB by adding
an 'other_libraries()' parameter.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/config.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py index 18d7992..ce6cff8 100644 --- a/Lib/distutils/command/config.py +++ b/Lib/distutils/command/config.py @@ -325,16 +325,19 @@ class config (Command): # check_func () def check_lib (self, library, library_dirs=None, - headers=None, include_dirs=None): + headers=None, include_dirs=None, other_libraries=[]): """Determine if 'library' is available to be linked against, without actually checking that any particular symbols are provided by it. 'headers' will be used in constructing the source file to be compiled, but the only effect of this is to check if all the - header files listed are available. + header files listed are available. Any libraries listed in + 'other_libraries' will be included in the link, in case 'library' + has symbols that depend on other libraries. """ self._check_compiler() return self.try_link("int main (void) { }", - headers, include_dirs, [library], library_dirs) + headers, include_dirs, + [library]+other_libraries, library_dirs) def check_header (self, header, include_dirs=None, library_dirs=None, lang="c"): |