X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=configure.in;h=9a980eaa0ce57273e04914ddca4dcaed2e7957d1;hb=8ad151aa410529ef1d122b887d89f8ad13edbc29;hp=cf3bbdc9d6c02d5a1604e2a36f9448304027808c;hpb=d3e542e79b851bab1b4cc7482694d413c42c6e63;p=dump.git diff --git a/configure.in b/configure.in index cf3bbdc..9a980ea 100644 --- a/configure.in +++ b/configure.in @@ -82,6 +82,33 @@ echo "Compiling rmt by default" ) AC_SUBST(RMTDIR) +dnl +dnl Handle --enable-ermt +dnl +AC_ARG_ENABLE([ermt], +[ --enable-ermt compile ermt, an encrypting version of rmt (default is NO)], +if test "$enableval" = "no" +then + ERMT="" + CRYPTO="" + echo "Not compiling ermt" +else + if test "$RMTDIR" = "" + then + AC_MSG_ERROR(ermt requires --enable-rmt) + fi + ERMT="ermt" + CRYPTO="-lcrypto" + echo "Compiling ermt" +fi +, +ERMT="" +CRYPTO="" +echo "Not compiling ermt by default" +) +AC_SUBST(ERMT) +AC_SUBST(CRYPTO) + dnl dnl Handle --enable-kerberos dnl @@ -453,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