diff options
author | Miguel Gomez <magomez@igalia.com> | 2013-04-02 15:36:12 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-10 08:36:51 +0000 |
commit | 4be242ce6b91dd23ffa8075bb4eeb05e8bb3d01c (patch) | |
tree | b8f3c8b5d4555d41b002a1ef6ddd22329f079bf0 /configure.ac | |
parent | fdo#39066: using UNO_QUERY instead of UNO_QUERY_THROW displays hyperlinks (diff) | |
download | core-4be242ce6b91dd23ffa8075bb4eeb05e8bb3d01c.tar.gz core-4be242ce6b91dd23ffa8075bb4eeb05e8bb3d01c.zip |
Allow selecting the tls backend to use in oox from configure
Change-Id: Ie82afb1f22caa0b02ddac256e2a0c2a49f19bb15
Reviewed-on: https://gerrit.libreoffice.org/3173
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 90a2d891cd21..e2f715bab268 100644 --- a/configure.ac +++ b/configure.ac @@ -1271,6 +1271,17 @@ AC_ARG_WITH(package-format, installed, msi. Example: --with-package-format="deb dmg"]), ,) +AC_ARG_WITH(tls, + AS_HELP_STRING([--with-tls], + [Decides which TLS/SSL and cryptographic implementations to use for + LibreOffice's code. Notice that this doesn't apply for depending + libraries like "neon", for example. Default is to use OpenSSL + although NSS is also possible. Notice that selecting NSS restricts + the usage of OpenSSL in LO's code but selecting OpenSSL doesn't + restrict by now the usage of NSS in LO's code. Possible values: + openssl, nss. Example: --with-tls="nss"]), +,) + AC_ARG_WITH(system-libs, AS_HELP_STRING([--with-system-libs], [Use libraries already on system -- enables all --with-system-* flags.]), @@ -8092,6 +8103,34 @@ AC_SUBST(MSVC80_DLLS) AC_SUBST(MSVC80_DLL_PATH) dnl =================================================================== +dnl Check for TLS/SSL and cryptographic implementation to use +dnl =================================================================== +AC_MSG_CHECKING([which TLS/SSL and cryptographic implementation to use]) +if test -n "$with_tls"; then + case $with_tls in + openssl) + AC_DEFINE(USE_TLS_OPENSSL) + TLS=OPENSSL + ;; + nss) + AC_DEFINE(USE_TLS_NSS) + TLS=NSS + ;; + *) + AC_MSG_ERROR([unsupported implementation $with_tls. Supported are: +openssl - OpenSSL +nss - Mozilla's Network Security Services (NSS) + ]) + ;; + esac +else + AC_DEFINE(USE_TLS_OPENSSL) + TLS=OPENSSL +fi +AC_MSG_RESULT([$TLS]) +AC_SUBST(TLS) + +dnl =================================================================== dnl Check for system NSS dnl =================================================================== libo_CHECK_SYSTEM_MODULE([nss],[NSS],[nss >= 3.9.3 nspr >= 4.8]) @@ -11805,6 +11844,7 @@ AC_CONFIG_HEADERS([config_host/config_global.h]) AC_CONFIG_HEADERS([config_host/config_graphite.h]) AC_CONFIG_HEADERS([config_host/config_kde4.h]) AC_CONFIG_HEADERS([config_host/config_mingw.h]) +AC_CONFIG_HEADERS([config_host/config_oox.h]) AC_CONFIG_HEADERS([config_host/config_telepathy.h]) AC_CONFIG_HEADERS([config_host/config_typesizes.h]) AC_CONFIG_HEADERS([config_host/config_vclplug.h]) |