1 # functions to support third party libraries
3 from Configure import conf
5 from samba_bundled import *
8 def CHECK_FOR_THIRD_PARTY(conf):
9 return os.path.exists('third_party')
11 Build.BuildContext.CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY
14 def CHECK_INIPARSER(conf):
15 return conf.CHECK_BUNDLED_SYSTEM('iniparser', checkfunctions='iniparser_load', headers='iniparser.h')
17 Build.BuildContext.CHECK_INIPARSER = CHECK_INIPARSER
22 #if (ZLIB_VERNUM >= 0x1230)
24 #error "ZLIB_VERNUM < 0x1230"
29 return conf.CHECK_BUNDLED_SYSTEM('z', minversion='1.2.3', pkg='zlib',
30 checkfunctions='zlibVersion',
32 checkcode=version_check,
33 implied_deps='replace')
35 Build.BuildContext.CHECK_ZLIB = CHECK_ZLIB
39 return conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h')
41 Build.BuildContext.CHECK_POPT = CHECK_POPT