# HG changeset patch # User Bruno Haible # Date 1308264784 -7200 # Node ID 34f981a7efc5fd8a34d3c50a57a5df7051c96bd0 # Parent d5aa06ef8fb9ae67bace178cd7aa1efe97b4357e crypto/gc-hmac-sha1: Fix recent regression. * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4. (configure.ac): Invoke AC_LIBOBJ here. * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1. Reported by Tom G. Christensen . diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-06-16 Bruno Haible + crypto/gc-hmac-sha1: Fix recent regression. + * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4. + (configure.ac): Invoke AC_LIBOBJ here. + * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1. + Reported by Tom G. Christensen . + crypto/gc-hmac-md5: Fix recent regression. * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4. (configure.ac): Invoke AC_LIBOBJ here. diff --git a/m4/gc-hmac-sha1.m4 b/m4/gc-hmac-sha1.m4 --- a/m4/gc-hmac-sha1.m4 +++ b/m4/gc-hmac-sha1.m4 @@ -1,4 +1,4 @@ -# gc-hmac-sha1.m4 serial 2 +# gc-hmac-sha1.m4 serial 3 dnl Copyright (C) 2005, 2007, 2009-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, @@ -9,7 +9,6 @@ AC_REQUIRE([gl_GC]) if test "$ac_cv_libgcrypt" != yes; then gl_SHA1 - gl_HMAC_SHA1 gl_MEMXOR fi ]) diff --git a/modules/crypto/gc-hmac-sha1 b/modules/crypto/gc-hmac-sha1 --- a/modules/crypto/gc-hmac-sha1 +++ b/modules/crypto/gc-hmac-sha1 @@ -8,7 +8,6 @@ m4/sha1.m4 lib/hmac.h lib/hmac-sha1.c -m4/hmac-sha1.m4 lib/memxor.h lib/memxor.c m4/memxor.m4 @@ -19,6 +18,11 @@ configure.ac: gl_GC_HMAC_SHA1 +if test "$ac_cv_libgcrypt" != yes; then + AC_LIBOBJ([sha1]) + AC_LIBOBJ([hmac-sha1]) + AC_LIBOBJ([memxor]) +fi gl_MODULE_INDICATOR([gc-hmac-sha1]) Makefile.am: