1dnl 2dnl LTP_CHECK_CRYPTO 3dnl ---------------------------- 4dnl 5AC_DEFUN([LTP_CHECK_CRYPTO], [ 6 AC_CHECK_LIB([crypto], [SHA1_Init], [have_libcrypto=yes], [AC_MSG_WARN(missing libcrypto)]) 7 AC_CHECK_HEADERS([openssl/sha.h], [have_sha=yes], [AC_MSG_WARN(missing openssl headers)]) 8 if test "x$have_libcrypto" = "xyes" -a "x$have_sha" = "xyes"; then 9 AC_DEFINE(HAVE_LIBCRYPTO, 1, [Define whether libcrypto and openssl headers are installed]) 10 AC_SUBST(CRYPTO_LIBS, "-lcrypto") 11 fi 12]) 13