Skip to content

Commit

Permalink
Bastian Kleineidam: make 'check_lib()' more like AC_CHECK_LIB by adding
Browse files Browse the repository at this point in the history
an 'other_libraries()' parameter.
  • Loading branch information
gward committed Oct 14, 2000
1 parent 0b4dafc commit 4cd6f2a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Lib/distutils/command/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,19 @@ def check_func (self, func,
# 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"):
Expand Down

0 comments on commit 4cd6f2a

Please sign in to comment.