- conf.RECURSE('lib/nss_wrapper')
- conf.RECURSE('lib/resolv_wrapper')
- conf.RECURSE('lib/socket_wrapper')
- conf.RECURSE('lib/uid_wrapper')
+ if Options.options.with_ntvfs_fileserver != False:
+ if not (Options.options.without_ad_dc):
+ conf.DEFINE('WITH_NTVFS_FILESERVER', 1)
+ if Options.options.with_ntvfs_fileserver == False:
+ if not (Options.options.without_ad_dc):
+ raise Utils.WafError('--without-ntvfs-fileserver conflicts with --enable-selftest while building the AD DC')
+ conf.RECURSE('testsuite/unittests')
+
+ if Options.options.with_ntvfs_fileserver == True:
+ if Options.options.without_ad_dc:
+ raise Utils.WafError('--with-ntvfs-fileserver conflicts with --without-ad-dc')
+ conf.DEFINE('WITH_NTVFS_FILESERVER', 1)
+
+ if Options.options.with_pthreadpool:
+ if conf.CONFIG_SET('HAVE_PTHREAD') and \
+ conf.CONFIG_SET('HAVE___THREAD') and \
+ conf.CONFIG_SET('HAVE_ATOMIC_THREAD_FENCE_SUPPORT'):
+ conf.DEFINE('WITH_PTHREADPOOL', '1')
+ else:
+ if not conf.CONFIG_SET('HAVE_PTHREAD'):
+ Logs.warn("pthreadpool support cannot be enabled when pthread support was not found")
+ if not conf.CONFIG_SET('HAVE_ATOMIC_THREAD_FENCE_SUPPORT'):
+ Logs.warn("""pthreadpool support cannot be enabled when there is
+ no support for atomic_thead_fence()""")
+ if not conf.CONFIG_SET('HAVE___THREAD'):
+ Logs.warn("pthreadpool support cannot be enabled when __thread support was not found")
+ conf.undefine('WITH_PTHREADPOOL')
+