1dnl SPDX-License-Identifier: GPL-2.0-or-later 2dnl Copyright (c) Linux Test Project, 2009-2017 3 4AC_DEFUN([LTP_CHECK_CRYPTO], [ 5 AC_CHECK_LIB([crypto], [SHA1_Init], [have_libcrypto=yes], [AC_MSG_WARN(missing libcrypto)]) 6 AC_CHECK_HEADERS([openssl/sha.h], [have_sha=yes], [AC_MSG_WARN(missing openssl headers)]) 7 if test "x$have_libcrypto" = "xyes" -a "x$have_sha" = "xyes"; then 8 AC_DEFINE(HAVE_LIBCRYPTO, 1, [Define whether libcrypto and openssl headers are installed]) 9 AC_SUBST(CRYPTO_LIBS, "-lcrypto") 10 fi 11]) 12