summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-12-06 06:16:02 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2022-01-03 02:28:08 -0500
commit750414d3bb6f13c119220e56d0c8123e665dffc5 (patch)
treef923eeb914ce6f7f7e935d4b62963dfcd1ebec9c /SConstruct
parent86c2d3093686c4f945086c90af9b8a7900925b6b (diff)
downloadlighttpd-git-750414d3bb6f13c119220e56d0c8123e665dffc5.tar.gz
[build] default --with-pcre2 unless --with-pcre
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 3 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index aa8a420f..42232367 100644
--- a/SConstruct
+++ b/SConstruct
@@ -258,8 +258,8 @@ vars.AddVariables(
PackageVariable('with_wolfssl', 'enable wolfSSL support', 'no'),
BoolVariable('with_nettle', 'enable Nettle support', 'no'),
BoolVariable('with_pam', 'enable PAM auth support', 'no'),
- PackageVariable('with_pcre2', 'enable pcre2 support', 'no'),
- PackageVariable('with_pcre', 'enable pcre support', 'yes'),
+ PackageVariable('with_pcre2', 'enable pcre2 support', 'yes'),
+ PackageVariable('with_pcre', 'enable pcre support', 'no'),
PackageVariable('with_pgsql', 'enable pgsql support', 'no'),
PackageVariable('with_sasl', 'enable SASL support', 'no'),
BoolVariable('with_sqlite3', 'enable sqlite3 support (required for webdav props)', 'no'),
@@ -659,7 +659,7 @@ if 1:
LIBPAM = 'pam',
)
- if env['with_pcre2']:
+ if env['with_pcre2'] and not env['with_pcre']:
pcre2_config = autoconf.checkProgram('pcre2', 'pcre2-config')
if not autoconf.CheckParseConfigForLib('LIBPCRE', pcre2_config + ' --cflags --libs8'):
fail("Couldn't find pcre2")