summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-10-29 19:30:45 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-10-29 19:30:45 -0400
commit07622251b0ed83ffe490ddf6e2db9e3e3245c553 (patch)
treef8466c9c597fd6040d21892963f4a80bb0ef1245 /SConstruct
parent7ff2a467c9fa31dd3bf98e9ff356e977c4168464 (diff)
downloadlighttpd-git-07622251b0ed83ffe490ddf6e2db9e3e3245c553.tar.gz
[build] option to use system-provided libxxhashlighttpd-1.4.56-rc6
--with-xxhash
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 10 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index d63a00db..6a31c23f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -267,6 +267,7 @@ vars.AddVariables(
# with_valgrind not supported
# with_xattr not supported
PackageVariable('with_xml', 'enable xml support (required for webdav props)', 'no'),
+ BoolVariable('with_xxhash', 'build with system-provided xxhash', 'no'),
BoolVariable('with_zlib', 'enable deflate/gzip compression', 'no'),
BoolVariable('with_all', 'enable all with_* features', 'no'),
@@ -350,6 +351,7 @@ if 1:
LIBUUID = '',
LIBX509 = '',
LIBXML2 = '',
+ LIBXXHASH = '',
LIBZ = '',
)
@@ -709,6 +711,14 @@ if 1:
fail("Couldn't find xml2")
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_LIBXML_H', '-DHAVE_LIBXML2' ])
+ if env['with_xxhash']:
+ if not autoconf.CheckLibWithHeader('xxhash', 'xxhash.h', 'C'):
+ fail("Couldn't find xxhash")
+ autoconf.env.Append(
+ CPPFLAGS = [ '-DHAVE_XXHASH_H' ],
+ LIBXXHASH = 'xxhash',
+ )
+
if env['with_zlib']:
if not autoconf.CheckLibWithHeader('z', 'zlib.h', 'C'):
fail("Couldn't find zlib")