diff options
author | Leo Liu <sdl.web@gmail.com> | 2011-05-24 16:12:52 +0800 |
---|---|---|
committer | Leo Liu <sdl.web@gmail.com> | 2011-05-24 16:12:52 +0800 |
commit | 13c3daa4aed4b185596dd0bb6bc45bd941f1e3ab (patch) | |
tree | 0178a565b32a1aa8a1b748096fc1ef26771b07f9 /m4 | |
parent | 5a95c00237a294c17452ab66ebae2f34de25c133 (diff) | |
download | emacs-13c3daa4aed4b185596dd0bb6bc45bd941f1e3ab.tar.gz |
Add crypto/sha1 module from gnulib
Diffstat (limited to 'm4')
-rw-r--r-- | m4/gl-comp.m4 | 5 | ||||
-rw-r--r-- | m4/sha1.m4 | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4 index 87d7616f8bb..c2f80323441 100644 --- a/m4/gl-comp.m4 +++ b/m4/gl-comp.m4 @@ -31,6 +31,7 @@ AC_DEFUN([gl_EARLY], # Code from module c++defs: # Code from module careadlinkat: # Code from module crypto/md5: + # Code from module crypto/sha1: # Code from module dosname: # Code from module dtoastr: # Code from module extensions: @@ -92,6 +93,7 @@ AC_DEFUN([gl_INIT], gl_source_base='lib' AC_CHECK_FUNCS_ONCE([readlinkat]) gl_MD5 +gl_SHA1 AC_REQUIRE([gl_C99_STRTOLD]) gl_FILEMODE gl_GETLOADAVG([$gl_source_base]) @@ -364,6 +366,8 @@ AC_DEFUN([gl_FILE_LIST], [ lib/mktime-internal.h lib/mktime.c lib/readlink.c + lib/sha1.c + lib/sha1.h lib/stat.c lib/stdarg.in.h lib/stdbool.in.h @@ -399,6 +403,7 @@ AC_DEFUN([gl_FILE_LIST], [ m4/mktime.m4 m4/multiarch.m4 m4/readlink.m4 + m4/sha1.m4 m4/socklen.m4 m4/ssize_t.m4 m4/st_dm_mode.m4 diff --git a/m4/sha1.m4 b/m4/sha1.m4 new file mode 100644 index 00000000000..e40505f2f70 --- /dev/null +++ b/m4/sha1.m4 @@ -0,0 +1,15 @@ +# sha1.m4 serial 9 +dnl Copyright (C) 2002-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_SHA1], +[ + AC_LIBOBJ([sha1]) + + dnl Prerequisites of lib/sha1.c. + AC_REQUIRE([gl_BIGENDIAN]) + AC_REQUIRE([AC_C_INLINE]) + : +]) |