summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Mulder <dmulder@suse.com>2022-03-07 10:10:14 -0700
committerJeremy Allison <jra@samba.org>2022-04-07 17:37:30 +0000
commita9b5727632f5e6b23478af6e90ec3b3ac4a3e609 (patch)
tree94018a4bc34ff96aeae8bec9f1c6c19604aee403 /wscript
parent0de914445234a8e8f42855c6a51a4ccf4776904e (diff)
downloadsamba-a9b5727632f5e6b23478af6e90ec3b3ac4a3e609.tar.gz
configure: Add option for disabling the smb1 server
Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index 5b85d9a1682..9d928034228 100644
--- a/wscript
+++ b/wscript
@@ -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.