]> git.wh0rd.org - dump.git/blobdiff - configure.in
Check for openssl headers/libs when enabling ermt.
[dump.git] / configure.in
index e5d59d946f34cb7dd465feca672cbc8959be06ca..9a980eaa0ce57273e04914ddca4dcaed2e7957d1 100644 (file)
@@ -480,6 +480,17 @@ if test "$ac_cv_func_glob" = "yes"; then
        ])
 fi
 
+dnl
+dnl Check for OpenSSL, for ermt
+dnl
+if test "$ERMT" != ""; then
+       AC_CHECK_HEADER(openssl/evp.h, [evp_h=yes], [evp_h=no])
+       AC_CHECK_LIB(crypto, EVP_CIPHER_CTX_set_padding, [crypto_lib=yes], [crypto_lib=no])
+       if test "$evp_h" = no -o "$crypto_lib" = no; then
+               AC_MSG_ERROR(You need to install the OpenSSL library (version 0.9.7a or later), or configure without --enable-ermt)
+       fi
+fi
+
 dnl
 dnl Check for types
 dnl