summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2014-11-03 17:15:00 -0500
committerMark Benvenuto <mark.benvenuto@mongodb.com>2014-11-05 17:21:12 -0500
commit0b4bc21e287c5e3dcdce38fc31714dd335f7a107 (patch)
treedee7cf8158aa5d29ec3cad46ad8c898632fd6759 /SConstruct
parent068eca37eb5b42671a651d24309b052edb1e0473 (diff)
downloadmongo-0b4bc21e287c5e3dcdce38fc31714dd335f7a107.tar.gz
SERVER-15974: Vendorize zlib 1.2.8
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 274d716eef4..d18c89db7e7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -303,6 +303,8 @@ add_option( "use-system-boost", "use system version of boost libraries", 0, True
add_option( "use-system-snappy", "use system version of snappy library", 0, True )
+add_option( "use-system-zlib", "use system version of zlib library", 0, True )
+
add_option( "use-system-v8", "use system version of v8 library", 0, True )
add_option( "use-system-stemmer", "use system version of stemmer", 0, True )
@@ -1893,6 +1895,9 @@ def doConfigure(myenv):
if use_system_version_of_library("snappy"):
conf.FindSysLibDep("snappy", ["snappy"])
+ if use_system_version_of_library("zlib"):
+ conf.FindSysLibDep("zlib", ["zlib" if windows else "z"])
+
if use_system_version_of_library("stemmer"):
conf.FindSysLibDep("stemmer", ["stemmer"])