+2023-09-21 Paul Eggert <eggert@cs.ucla.edu>
+
+ crypto/sm3: rename gl_cv_* variable for clarity
+ * m4/gc-sm3.m4 (gl_cv_libgcrypt_md_sm3):
+ Rename from gl_cv_libcrypt_md_sm3 since this is unrelated to libcrypt.
+
2023-09-17 Paul Eggert <eggert@cs.ucla.edu>
intprops: pacify GCC -Wtype-limits
-# gc-sm3.m4 serial 2
+# gc-sm3.m4 serial 3
dnl Copyright (C) 2017-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[
AC_REQUIRE([gl_GC])
AC_CACHE_CHECK([whether libgcrypt supports SM3],
- [gl_cv_libcrypt_md_sm3],
+ [gl_cv_libgcrypt_md_sm3],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[
#include <gcrypt.h>
int a = GCRY_MD_SM3;
]], [[]])
],
- [gl_cv_libcrypt_md_sm3=yes],
- [gl_cv_libcrypt_md_sm3=no])
+ [gl_cv_libgcrypt_md_sm3=yes],
+ [gl_cv_libgcrypt_md_sm3=no])
])
- if test $gl_cv_libcrypt_md_sm3 = yes; then
+ if test $gl_cv_libgcrypt_md_sm3 = yes; then
AC_DEFINE([LIBGCRYPT_HAS_MD_SM3], [1],
[Define if libgcrypt supports the MD algorithm SM3.])
fi