diff options
author | minfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-14 22:39:34 +0000 |
---|---|---|
committer | minfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-14 22:39:34 +0000 |
commit | 4aaf6af78a226040ab365e599c8bf684c9288d7a (patch) | |
tree | 44992daf42f6efb716d69e5769a3f44fa0b0175f /build | |
parent | a498f28ddbf1e0ecb81f16e6f8bae005551c35fb (diff) | |
download | libapr-4aaf6af78a226040ab365e599c8bf684c9288d7a.tar.gz |
apr_crypto: Crypto library detection runs twice (from main configure logic
as well as from APU_CHECK_CRYPTO). Crypto enablement depends on enablement
of a crypto library, but forgetting to enable a crypto library silently
proceeds without failing.
Submitted by: trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1214516 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/crypto.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/crypto.m4 b/build/crypto.m4 index 0a4f43c9f..d15a8e827 100644 --- a/build/crypto.m4 +++ b/build/crypto.m4 @@ -34,6 +34,9 @@ AC_DEFUN([APU_CHECK_CRYPTO], [ APU_CHECK_CRYPTO_OPENSSL APU_CHECK_CRYPTO_NSS dnl add checks for other varieties of ssl here + if test "$apu_have_crypto" == "0"; then + AC_ERROR(Crypto was requested but no crypto library was enabled) + fi fi ], [ apu_have_crypto=0 |