1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

configure: Add option for disabling the smb1 server

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Mulder 2022-03-07 10:10:14 -07:00 committed by Jeremy Allison
parent 0de9144452
commit a9b5727632
2 changed files with 7 additions and 2 deletions

View File

@ -25,8 +25,6 @@
#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;

View File

@ -129,6 +129,10 @@ def options(opt):
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)
@ -390,6 +394,9 @@ def configure(conf):
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.