summaryrefslogtreecommitdiffstats
path: root/src/external/crypto.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/external/crypto.m4')
-rw-r--r--src/external/crypto.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/src/external/crypto.m4 b/src/external/crypto.m4
new file mode 100644
index 000000000..d1bcf40ac
--- /dev/null
+++ b/src/external/crypto.m4
@@ -0,0 +1,13 @@
+AC_ARG_ENABLE(crypto,
+ [ --enable-crypto Use OpenSSL crypto instead of NSS],
+ [CRYPTO="$enableval"],
+ [CRYPTO="no"]
+)
+
+if test x$CRYPTO != xyes; then
+ PKG_CHECK_MODULES([NSS],[nss],[have_nss=1],[have_nss=])
+else
+ PKG_CHECK_MODULES([CRYPTO],[libcrypto],[have_crypto=1],[have_crypto=])
+fi
+AM_CONDITIONAL([HAVE_NSS], [test x$have_nss != x])
+AM_CONDITIONAL([HAVE_CRYPTO], [test x$have_crypto != x])