summaryrefslogtreecommitdiff
path: root/m4/gc.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-08-24 11:07:23 +0200
committerBruno Haible <bruno@clisp.org>2019-08-24 11:07:23 +0200
commit5026087e7f01023e2fd7a7d37d6bf6552e59be37 (patch)
tree065f45b02f281eea416dc2d4f17d2f1a8ff77523 /m4/gc.m4
parentfff7fcc2286b45651642278314dae82f7774a2f4 (diff)
downloadgnulib-5026087e7f01023e2fd7a7d37d6bf6552e59be37.tar.gz
gc: Fix configuration with --with-libgcrypt.
* m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4. * modules/crypto/gc (Files): Add it. * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
Diffstat (limited to 'm4/gc.m4')
-rw-r--r--m4/gc.m47
1 files changed, 3 insertions, 4 deletions
diff --git a/m4/gc.m4 b/m4/gc.m4
index 683d52f914..954459a694 100644
--- a/m4/gc.m4
+++ b/m4/gc.m4
@@ -1,4 +1,4 @@
-# gc.m4 serial 10
+# gc.m4 serial 11
dnl Copyright (C) 2005-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -14,9 +14,8 @@ AC_DEFUN([gl_GC],
# gc-libgcrypt.c will fail on startup if we don't have
# version 1.4.4 or later, so test for it early. */
gl_good_gcrypt=no
- m4_ifdef([AM_PATH_LIBGCRYPT],
- [AM_PATH_LIBGCRYPT([1.4.4], [gl_good_gcrypt=yes],
- [AC_MSG_ERROR([libgcrypt is too old])])])
+ AM_PATH_LIBGCRYPT([1.4.4], [gl_good_gcrypt=yes],
+ [AC_MSG_ERROR([libgcrypt is too old])])
if test "x$gl_good_gcrypt" != xno; then
AC_LIB_HAVE_LINKFLAGS([gcrypt], [gpg-error], [#include <gcrypt.h>])
else