summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-10-29 13:12:36 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-11-08 14:42:05 -0500
commit924afa46297540f1b1e787a10d70259413524fc0 (patch)
treeb6e0eb74ea4ca9ec905584c70d4a94ffe78854dc /SConstruct
parent444675bbd5a01a2149a4f112ba966ae85e3deed4 (diff)
downloadmongo-924afa46297540f1b1e787a10d70259413524fc0.tar.gz
Client and common support for SASL authentication.
SERVER-7130, SERVER-7131, SERVER-7133
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 3f440157c10..112256413d5 100644
--- a/SConstruct
+++ b/SConstruct
@@ -200,6 +200,8 @@ add_option( "gcov" , "compile with flags for gcov" , 0 , True )
add_option("smokedbprefix", "prefix to dbpath et al. for smoke tests", 1 , False )
add_option("smokeauth", "run smoke tests with --auth", 0 , False )
+add_option("use-sasl-client", "Support SASL authentication in the client library", 0, False)
+
add_option( "use-system-tcmalloc", "use system version of tcmalloc library", 0, True )
add_option( "use-system-pcre", "use system version of pcre library", 0, True )
@@ -819,6 +821,12 @@ def doConfigure(myenv):
if not conf.CheckLib( v8_lib_choices ):
Exit(1)
+ env['MONGO_BUILD_SASL_CLIENT'] = bool(has_option("use-sasl-client"))
+ if env['MONGO_BUILD_SASL_CLIENT'] and not conf.CheckLibWithHeader(
+ "gsasl", "gsasl.h", "C", "gsasl_check_version(GSASL_VERSION);", autoadd=False):
+
+ Exit(1)
+
# requires ports devel/libexecinfo to be installed
if freebsd or openbsd:
if not conf.CheckLib("execinfo"):