Hash :
b1f65faa
Author :
Date :
2024-10-17T21:52:41
Use a warranty disclaimer in all-permissive license notices. * etc/license-notices/unlimited: Add a short warranty disclaimer sentence. * m4/*.m4: Update. * build-aux/prefix-gnulib-mk: Likewise. * HACKING: Likewise.
# gc-sm3.m4
# serial 3
dnl Copyright (C) 2017-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.
AC_DEFUN([gl_GC_SM3],
[
AC_REQUIRE([gl_GC])
AC_CACHE_CHECK([whether libgcrypt supports SM3],
[gl_cv_libgcrypt_md_sm3],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[
#include <gcrypt.h>
int a = GCRY_MD_SM3;
]], [[]])
],
[gl_cv_libgcrypt_md_sm3=yes],
[gl_cv_libgcrypt_md_sm3=no])
])
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
])