summaryrefslogtreecommitdiffstats
path: root/old-configure.in
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-05-12 08:21:53 -0500
committertrav90 <travawine@protonmail.ch>2018-05-12 08:21:53 -0500
commite07abdd2822f11b1cc10705ee47734b848acb0ce (patch)
treec981e0ba122ff1ff06c18d6113a6613c84cfcc59 /old-configure.in
parent4e1d60e7db4462d3d79c48718758cdba84fc0505 (diff)
downloadUXP-e07abdd2822f11b1cc10705ee47734b848acb0ce.tar
UXP-e07abdd2822f11b1cc10705ee47734b848acb0ce.tar.gz
UXP-e07abdd2822f11b1cc10705ee47734b848acb0ce.tar.lz
UXP-e07abdd2822f11b1cc10705ee47734b848acb0ce.tar.xz
UXP-e07abdd2822f11b1cc10705ee47734b848acb0ce.zip
Make safebrowsing optional at build time - Part 4: configure
Diffstat (limited to 'old-configure.in')
-rw-r--r--old-configure.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/old-configure.in b/old-configure.in
index b12ba5b25..d45c17eec 100644
--- a/old-configure.in
+++ b/old-configure.in
@@ -2293,6 +2293,7 @@ LIBJPEG_TURBO_AS=
LIBJPEG_TURBO_ASFLAGS=
MOZ_PREF_EXTENSIONS=1
MOZ_REFLOW_PERF=
+MOZ_SAFE_BROWSING=
MOZ_SPELLCHECK=1
MOZ_TOOLKIT_SEARCH=1
MOZ_UI_LOCALE=en-US
@@ -4026,8 +4027,24 @@ fi
AC_SUBST(MOZ_SYSTEM_SQLITE)
dnl ========================================================
+dnl = Enable Google safe browsing (anti-phishing)
+dnl ========================================================
+MOZ_ARG_ENABLE_BOOL(safe-browsing,
+[ --enable-safe-browsing Enable safe browsing (anti-phishing) implementation],
+ MOZ_SAFE_BROWSING=1,
+ MOZ_SAFE_BROWSING= )
+if test -n "$MOZ_SAFE_BROWSING"; then
+ AC_DEFINE(MOZ_SAFE_BROWSING)
+fi
+AC_SUBST(MOZ_SAFE_BROWSING)
+
+dnl ========================================================
dnl = Enable url-classifier
dnl ========================================================
+dnl Implicitly enabled by default if building with safe-browsing
+if test -n "$MOZ_SAFE_BROWSING"; then
+ MOZ_URL_CLASSIFIER=1
+fi
MOZ_ARG_ENABLE_BOOL(url-classifier,
[ --enable-url-classifier Enable url classifier module],
MOZ_URL_CLASSIFIER=1,