From 13c3daa4aed4b185596dd0bb6bc45bd941f1e3ab Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Tue, 24 May 2011 16:12:52 +0800 Subject: Add crypto/sha1 module from gnulib --- m4/gl-comp.m4 | 5 +++++ m4/sha1.m4 | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 m4/sha1.m4 (limited to 'm4') 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]) + : +]) -- cgit v1.2.1