#include "librpc/gen_ndr/smbXsrv.h"
#include "smbprofile.h"
-#define WITH_SMB1SERVER 1
-
#ifdef USE_DMAPI
struct smbd_dmapi_context;
extern struct smbd_dmapi_context *dmapi_ctx;
action='store_false', dest='with_json',
help=("Build without JSON support."))
+ opt.samba_add_onoff_option('smb1-server',
+ dest='with_smb1server',
+ help=("Build smbd with SMB1 support (default=yes)."))
+
def configure(conf):
version = samba_version.load_version(env=conf.env)
msg="Checking compiler for full RELRO support"):
conf.env['ENABLE_RELRO'] = True
+ if Options.options.with_smb1server != False:
+ conf.DEFINE('WITH_SMB1SERVER', '1')
+
#
# FreeBSD is broken. It doesn't include 'extern char **environ'
# in any shared library, but statically inside crt0.o.