summaryrefslogtreecommitdiffstats
path: root/src/external/crypto.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-04-24 16:15:04 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-04-27 11:47:24 -0400
commit172c07013d1ea99447a780fd36f49d5c3a76981b (patch)
tree2118564c1f9b161f40ba04fa124f9066d66ab841 /src/external/crypto.m4
parente81a816cddab4a62f263d1a0274d5d3f101e8e0f (diff)
downloadsssd-172c07013d1ea99447a780fd36f49d5c3a76981b.tar.gz
sssd-172c07013d1ea99447a780fd36f49d5c3a76981b.tar.xz
sssd-172c07013d1ea99447a780fd36f49d5c3a76981b.zip
Require openssl-devel is libcrypto backend is selected
Diffstat (limited to 'src/external/crypto.m4')
-rw-r--r--src/external/crypto.m420
1 files changed, 8 insertions, 12 deletions
diff --git a/src/external/crypto.m4 b/src/external/crypto.m4
index d1bcf40ac..19a064d3a 100644
--- a/src/external/crypto.m4
+++ b/src/external/crypto.m4
@@ -1,13 +1,9 @@
-AC_ARG_ENABLE(crypto,
- [ --enable-crypto Use OpenSSL crypto instead of NSS],
- [CRYPTO="$enableval"],
- [CRYPTO="no"]
-)
+AC_DEFUN([AM_CHECK_NSS],
+ [PKG_CHECK_MODULES([NSS],[nss])
+ AC_DEFINE_UNQUOTED(HAVE_NSS, 1, [Build with NSS crypto back end])
+])
-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])
+AC_DEFUN([AM_CHECK_LIBCRYPTO],
+ [PKG_CHECK_MODULES([CRYPTO],[libcrypto])
+ AC_DEFINE_UNQUOTED(HAVE_LIBCRYPTO, 1, [Build with libcrypt crypto back end])
+])