2 dnl Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
10 AC_CACHE_CHECK([whether libgcrypt supports SM3],
11 [gl_cv_libcrypt_md_sm3],
18 [gl_cv_libcrypt_md_sm3=yes],
19 [gl_cv_libcrypt_md_sm3=no])
21 if test $gl_cv_libcrypt_md_sm3 = yes; then
22 AC_DEFINE([LIBGCRYPT_HAS_MD_SM3], [1],
23 [Define if libgcrypt supports the MD algorithm SM3.])