diff options
author | Leo Liu <sdl.web@gmail.com> | 2011-06-21 16:45:39 +0800 |
---|---|---|
committer | Leo Liu <sdl.web@gmail.com> | 2011-06-21 16:45:39 +0800 |
commit | 3ce9d0d41be2eb2050c73727dac0154109333755 (patch) | |
tree | 2c951b040775dfa8826956dc3ebc32eff13f930c /m4 | |
parent | 327c8fb10ae31b2733e94333e04d1a30fcc2c0f2 (diff) | |
download | emacs-3ce9d0d41be2eb2050c73727dac0154109333755.tar.gz |
Add crypto/sha256 and crypto/sha512 modules from gnulib
Diffstat (limited to 'm4')
-rw-r--r-- | m4/gl-comp.m4 | 13 | ||||
-rw-r--r-- | m4/sha256.m4 | 12 | ||||
-rw-r--r-- | m4/sha512.m4 | 12 |
3 files changed, 37 insertions, 0 deletions
diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4 index b170693ffea..64a7874c4c8 100644 --- a/m4/gl-comp.m4 +++ b/m4/gl-comp.m4 @@ -32,6 +32,8 @@ AC_DEFUN([gl_EARLY], # Code from module careadlinkat: # Code from module crypto/md5: # Code from module crypto/sha1: + # Code from module crypto/sha256: + # Code from module crypto/sha512: # Code from module dosname: # Code from module dtoastr: # Code from module extensions: @@ -70,6 +72,7 @@ AC_DEFUN([gl_EARLY], # Code from module sys_stat: # Code from module time: # Code from module time_r: + # Code from module u64: # Code from module unistd: # Code from module verify: # Code from module warn-on-use: @@ -94,6 +97,8 @@ AC_DEFUN([gl_INIT], AC_CHECK_FUNCS_ONCE([readlinkat]) gl_MD5 gl_SHA1 +gl_SHA256 +gl_SHA512 AC_REQUIRE([gl_C99_STRTOLD]) gl_FILEMODE gl_GETLOADAVG @@ -165,6 +170,7 @@ if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then gl_PREREQ_TIME_R fi gl_TIME_MODULE_INDICATOR([time_r]) +AC_REQUIRE([AC_C_INLINE]) gl_UNISTD_H gl_gnulib_enabled_dosname=false gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false @@ -413,6 +419,10 @@ AC_DEFUN([gl_FILE_LIST], [ lib/readlink.c lib/sha1.c lib/sha1.h + lib/sha256.c + lib/sha256.h + lib/sha512.c + lib/sha512.h lib/stat.c lib/stdarg.in.h lib/stdbool.in.h @@ -431,6 +441,7 @@ AC_DEFUN([gl_FILE_LIST], [ lib/sys_stat.in.h lib/time.in.h lib/time_r.c + lib/u64.h lib/unistd.in.h lib/verify.h m4/00gnulib.m4 @@ -449,6 +460,8 @@ AC_DEFUN([gl_FILE_LIST], [ m4/multiarch.m4 m4/readlink.m4 m4/sha1.m4 + m4/sha256.m4 + m4/sha512.m4 m4/socklen.m4 m4/ssize_t.m4 m4/st_dm_mode.m4 diff --git a/m4/sha256.m4 b/m4/sha256.m4 new file mode 100644 index 00000000000..a3429ed3423 --- /dev/null +++ b/m4/sha256.m4 @@ -0,0 +1,12 @@ +# sha256.m4 serial 5 +dnl Copyright (C) 2005, 2008-2011 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. + +AC_DEFUN([gl_SHA256], +[ + dnl Prerequisites of lib/sha256.c. + AC_REQUIRE([gl_BIGENDIAN]) + AC_REQUIRE([AC_C_INLINE]) +]) diff --git a/m4/sha512.m4 b/m4/sha512.m4 new file mode 100644 index 00000000000..cd6a0bf302a --- /dev/null +++ b/m4/sha512.m4 @@ -0,0 +1,12 @@ +# sha512.m4 serial 6 +dnl Copyright (C) 2005-2006, 2008-2011 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. + +AC_DEFUN([gl_SHA512], +[ + dnl Prerequisites of lib/sha512.c. + AC_REQUIRE([gl_BIGENDIAN]) + AC_REQUIRE([AC_C_INLINE]) +]) |