version but wasn't built with crypto support
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@918562
13f79535-47bb-0310-9956-
ffa450edef68
#include "apr_strings.h"
#include "http_log.h"
-#if (APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 4)) && APU_HAVE_CRYPTO > 0
+#if APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION < 4
+
+#error session_crypto_module requires APR v1.4.0 or later
+
+#elif APU_HAVE_CRYPTO == 0
+
+#error Crypto support must be enabled in APR
+
+#else
#include "apr_crypto.h" /* for apr_*_crypt et al */
register_hooks /* register hooks */
};
-#else
-#error session_crypto_module requires APR v1.4.0 or later
#endif