From 2db5b5e995c21c5bd9cd193c2ed1109ba9b1a440 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 31 Mar 2022 15:09:12 +0900 Subject: build: When no gpg-error-config, not install libgcrypt-config. * configure.ac (USE_GPGRT_CONFIG): New. * src/Makefile.am [USE_GPGRT_CONFIG]: Conditionalize the install of libgcrypt-config. -- When system will migrate use of gpgrt-config and removal of gpg-error-config, libgcrypt-config will not be installed (but use libgcrypt.pc by gpgrt-config). Signed-off-by: NIIBE Yutaka --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c4fc8ce4..e214082b 100644 --- a/configure.ac +++ b/configure.ac @@ -774,6 +774,9 @@ fi AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GCRYPT, [The default error source for libgcrypt.]) +AM_CONDITIONAL(USE_GPGRT_CONFIG, [test -n "$GPGRT_CONFIG" \ + -a "$ac_cv_path_GPG_ERROR_CONFIG" = no]) + # # Check whether pthreads is available # -- cgit v1.2.1