diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2007-08-08 05:00:05 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2007-08-08 05:00:05 +0000 |
| commit | 4c17f25c0f106ec8e3aad2cee4e7a24f66b5a65d (patch) | |
| tree | 9f3800189c80c90e5cd16c0f22588825cab5bbe6 /src | |
| parent | 783b1a0dfd476438df91c74d032631b7ef3b1f2a (diff) | |
| download | krb5-4c17f25c0f106ec8e3aad2cee4e7a24f66b5a65d.tar.gz krb5-4c17f25c0f106ec8e3aad2cee4e7a24f66b5a65d.tar.xz krb5-4c17f25c0f106ec8e3aad2cee4e7a24f66b5a65d.zip | |
Only build pkinit plugin if a sufficiently recent version of OpenSSL is available
ticket: 5617
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19758 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/configure.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/configure.in b/src/configure.in index d94786e50..57b9ca95a 100644 --- a/src/configure.in +++ b/src/configure.in @@ -920,9 +920,19 @@ changequote([, ]) AC_SUBST(PASS) dnl for pkinit +AC_CACHE_CHECK(for a recent enough OpenSSL, k5_cv_openssl_version_okay, +[AC_COMPILE_IFELSE([#include <openssl/opensslv.h> +#if OPENSSL_VERSION_NUMBER < 0x00908000L +# error openssl is too old, need 0.9.8 +#endif +int i = 1; +], k5_cv_openssl_version_okay=yes, k5_cv_openssl_version_okay=no)]) old_LIBS="$LIBS" AC_CHECK_LIB(crypto, PKCS7_get_signer_info) LIBS="$old_LIBS" +if test "$k5_cv_openssl_version_okay" = yes; then + K5_GEN_MAKEFILE(plugins/preauth/pkinit) +fi dnl for lib/apputils AC_REPLACE_FUNCS(daemon) @@ -1095,7 +1105,6 @@ V5_AC_OUTPUT_MAKEFILE(. plugins/kdb/db2/libdb2/test plugins/preauth/cksum_body plugins/preauth/wpse - plugins/preauth/pkinit clients clients/klist clients/kinit clients/kvno clients/kdestroy clients/kpasswd clients/ksu |
