From f33599c1441553954832851a0cec1e4ef570162f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 2 Mar 2008 12:16:49 +0100 Subject: Create sha256 and sha512 modules and move files into gl/. * bootstrap.conf (gnulib_modules): Add sha256 and sha512. * m4/prereq.m4: Don't require gl_SHA256 or gl_SHA512. * gl/modules/sha512: New file. * gl/modules/sha256: New file. * m4/sha256.m4: Move to ... * gl/m4/sha256.m4: ...here, removing use of AC_SOURCES. * m4/sha512.m4: Move to ... * gl/m4/sha512.m4: ...here, removing use of AC_SOURCES. * lib/sha256.c, lib/sha256.h: Move to ... * gl/lib/sha256.c, gl/lib/sha256.h: ...here. * lib/sha512.c, lib/sha512.h: Move to ... * gl/lib/sha512.c, gl/lib/sha512.h: ...here. * lib/u64.h: Move to ... * gl/lib/u64.h: ...here. --- gl/m4/sha256.m4 | 13 +++++++++++++ gl/m4/sha512.m4 | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 gl/m4/sha256.m4 create mode 100644 gl/m4/sha512.m4 (limited to 'gl/m4') diff --git a/gl/m4/sha256.m4 b/gl/m4/sha256.m4 new file mode 100644 index 000000000..54b15e8da --- /dev/null +++ b/gl/m4/sha256.m4 @@ -0,0 +1,13 @@ +# sha256.m4 serial 2 +dnl Copyright (C) 2005, 2008 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], +[ + AC_LIBOBJ([sha256]) + + dnl Prerequisites of lib/sha256.c. + AC_REQUIRE([AC_C_BIGENDIAN]) +]) diff --git a/gl/m4/sha512.m4 b/gl/m4/sha512.m4 new file mode 100644 index 000000000..888d50df6 --- /dev/null +++ b/gl/m4/sha512.m4 @@ -0,0 +1,13 @@ +# sha512.m4 serial 3 +dnl Copyright (C) 2005, 2006, 2008 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], +[ + AC_LIBOBJ([sha512]) + + dnl Prerequisites of lib/sha512.c. + AC_REQUIRE([AC_C_BIGENDIAN]) +]) -- cgit v1.2.3-54-g00ecf