diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-04-24 16:15:04 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-27 11:47:24 -0400 |
commit | 172c07013d1ea99447a780fd36f49d5c3a76981b (patch) | |
tree | 2118564c1f9b161f40ba04fa124f9066d66ab841 /src/conf_macros.m4 | |
parent | e81a816cddab4a62f263d1a0274d5d3f101e8e0f (diff) | |
download | sssd-172c07013d1ea99447a780fd36f49d5c3a76981b.tar.gz sssd-172c07013d1ea99447a780fd36f49d5c3a76981b.tar.xz sssd-172c07013d1ea99447a780fd36f49d5c3a76981b.zip |
Require openssl-devel is libcrypto backend is selected
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r-- | src/conf_macros.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 273a52704..31048d3de 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -295,3 +295,25 @@ AC_DEFUN([WITH_LIBNL], fi ]) +AC_DEFUN([WITH_CRYPTO], + [ AC_ARG_WITH([crypto], + [AC_HELP_STRING([--with-crypto=CRYPTO_LIB], + [The cryptographic library to use (nss|libcrypto). The default is nss.] + ) + ], + [], + with_crypto=nss + ) + + cryptolib="" + if test x"$with_crypto" != x; then + if test x"$with_crypto" = xnss || \ + test x"$with_crypto" = xlibcrypto; then + cryptolib="$with_crypto"; + else + AC_MSG_ERROR([Illegal value -$with_crypto- for option --with-crypto]) + fi + fi + AM_CONDITIONAL([HAVE_NSS], [test x"$cryptolib" = xnss]) + AM_CONDITIONAL([HAVE_LIBCRYPTO], [test x"$cryptolib" = xlibcrypto]) + ]) |