1 # functions to support third party libraries
5 from Configure import conf
8 def CHECK_FOR_THIRD_PARTY(conf):
9 return os.path.exists(os.path.join(Utils.g_module.srcdir, 'third_party'))
11 Build.BuildContext.CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY
16 #if (ZLIB_VERNUM >= 0x1230)
18 #error "ZLIB_VERNUM < 0x1230"
23 return conf.CHECK_BUNDLED_SYSTEM('z', minversion='1.2.3', pkg='zlib',
24 checkfunctions='zlibVersion',
26 checkcode=version_check,
27 implied_deps='replace')
29 Build.BuildContext.CHECK_ZLIB = CHECK_ZLIB
33 return conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h')
35 Build.BuildContext.CHECK_POPT = CHECK_POPT
38 def CHECK_CMOCKA(conf):
39 return conf.CHECK_BUNDLED_SYSTEM_PKG('cmocka', minversion='1.1.1')
41 Build.BuildContext.CHECK_CMOCKA = CHECK_CMOCKA
44 def CHECK_SOCKET_WRAPPER(conf):
45 return conf.CHECK_BUNDLED_SYSTEM_PKG('socket_wrapper', minversion='1.1.7')
46 Build.BuildContext.CHECK_SOCKET_WRAPPER = CHECK_SOCKET_WRAPPER
49 def CHECK_NSS_WRAPPER(conf):
50 return conf.CHECK_BUNDLED_SYSTEM_PKG('nss_wrapper', minversion='1.1.3')
51 Build.BuildContext.CHECK_NSS_WRAPPER = CHECK_NSS_WRAPPER
54 def CHECK_RESOLV_WRAPPER(conf):
55 return conf.CHECK_BUNDLED_SYSTEM_PKG('resolv_wrapper', minversion='1.1.4')
56 Build.BuildContext.CHECK_RESOLV_WRAPPER = CHECK_RESOLV_WRAPPER
59 def CHECK_UID_WRAPPER(conf):
60 return conf.CHECK_BUNDLED_SYSTEM_PKG('uid_wrapper', minversion='1.2.4')
61 Build.BuildContext.CHECK_UID_WRAPPER = CHECK_UID_WRAPPER
64 def CHECK_PAM_WRAPPER(conf):
65 return conf.CHECK_BUNDLED_SYSTEM_PKG('pam_wrapper', minversion='1.0.4')
66 Build.BuildContext.CHECK_PAM_WRAPPER = CHECK_PAM_WRAPPER