From b8fe217710e343b51423c13c8babea267dc8479d Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Fri, 2 Jun 2023 18:33:08 +0200 Subject: [PATCH] configure.ac: refuse to generate without libgcrypt Though running resulting `configure` without gcrypt is totally ok Signed-off-by: Eugene Crosser --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1dfe833..0d0e047 100644 --- a/configure.ac +++ b/configure.ac @@ -78,7 +78,11 @@ AC_ARG_ENABLE(gcrypt, AS_IF([test "x$use_openssl" != "xyes" && test "x$use_tomcrypt" != "xyes" || \ test "x$enable_gcrypt" = "xyes"], [ - AM_PATH_LIBGCRYPT() + m4_ifdef([AM_PATH_LIBGCRYPT], [ + AM_PATH_LIBGCRYPT() + ], [ + m4_exit(1) + ]) ]) AS_IF([test "x$LIBGCRYPT_CFLAGS" != "x" -o "x$LIBGCRYPT_LIBS" != "x" ], [ use_gcrypt=yes -- 2.39.2