parameters: (self, ver_param)
docstring: Returns True on successful version detection, else False
docstring_summary: Returns True on successful version detection, else False
docstring_tokens: Returns True on successful version detection else False
function: def calc_ver_info(self, ver_param):
          """Returns True on successful version detection, else False"""
          lib_dirs = self.get_lib_dirs()
          incl_dirs = self.get_include_dirs()
          libs = self.get_libs(self.section + '_libs', ver_param['libs'])
          info = self.check_libs(lib_dirs, libs)
          if info is not None:
              flag = 0
              for d in incl_dirs:
                  if len(self.combine_paths(d, ver_param['includes'])) \
                     == len(ver_param['includes']):
                      dict_append(info, include_dirs=[d])
                      flag = 1
                      incl_dirs = [d]
                      break
              if flag:
                  dict_append(info, define_macros=ver_param['macros'])
              else:
                  info = None
          if info is not None:
              self.set_info(**info)
              return True
          else:
              log.info('  %s not found' % (ver_param['name']))
              return False
function_tokens: def calc_ver_info ( self , ver_param ) : lib_dirs = self . get_lib_dirs ( ) incl_dirs = self . get_include_dirs ( ) libs = self . get_libs ( self . section + '_libs' , ver_param [ 'libs' ] ) info = self . check_libs ( lib_dirs , libs ) if info is not None : flag = 0 for d in incl_dirs : if len ( self . combine_paths ( d , ver_param [ 'includes' ] ) ) == len ( ver_param [ 'includes' ] ) : dict_append ( info , include_dirs = [ d ] ) flag = 1 incl_dirs = [ d ] break if flag : dict_append ( info , define_macros = ver_param [ 'macros' ] ) else : info = None if info is not None : self . set_info ( * * info ) return True else : log . info ( '  %s not found' % ( ver_param [ 'name' ] ) ) return False