3 from waflib
import Options
, Logs
5 # Remember to also update wbclient.h
8 # It may be useful at some point to allow Samba to build against a
9 # system libwbclient, such as the one provided by Likewise. To to
10 # this, not only must the check below be activated but this must only
11 # be activated with an off-by-default option to disable the internal
12 # build of both winbindd implementations, and all the internal
13 # references to libwbclient.h will need to be fixed to point at the
14 # system libwbclient. Finally, as a system libwbclient would probably
15 # not use the same version scheme as Samba, so this would need to
16 # reference Likewise version numbers instead.
19 # if conf.CHECK_BUNDLED_SYSTEM_PKG('wbclient', minversion=VERSION):
20 # conf.define('USING_SYSTEM_LIBWBCLIENT', 1)
24 # if bld.CONFIG_SET('USING_SYSTEM_LIBWBCLIENT'):
25 # Logs.info("\tSelected system libwbclient build")
28 # Logs.info("\tSelected embedded libwbclient build")
30 wbclient_internal_deps
= 'replace'
31 if bld
.CONFIG_SET('HAVE_PTHREAD'):
32 wbclient_internal_deps
+= ' pthread'
34 bld
.SAMBA_SUBSYSTEM('wbclient-internal',
35 source
='../wb_common.c',
36 deps
=wbclient_internal_deps
,
37 cflags
='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld
.env
.WINBINDD_SOCKET_DIR
,
39 provide_builtin_linking
=True,
40 builtin_cflags
='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld
.env
.WINBINDD_SOCKET_DIR
,
44 bld
.SAMBA_LIBRARY('wbclient',
54 deps
='wbclient-internal smb_strtox',
55 require_builtin_deps
=True,
56 provide_builtin_linking
=True,
57 pc_files
='wbclient.pc',
58 public_headers
='wbclient.h',