diff options
author | NIIBE Yutaka <[email protected]> | 2024-06-13 05:18:17 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2024-06-13 05:18:17 +0000 |
commit | db27c9489791baa8b2036191dce35e12f76af85d (patch) | |
tree | e4059129e147eeb7b0234442679fd2c27cc2062f /src | |
parent | Always append the process identification to hello line. (diff) | |
download | libassuan-db27c9489791baa8b2036191dce35e12f76af85d.tar.gz libassuan-db27c9489791baa8b2036191dce35e12f76af85d.zip |
libassuan.m4: Fix setting/using GPG_ERROR_CONFIG.
libassuan.m4 (_AM_PATH_GPGRT_CONFIG): Don't set GPG_ERROR_CONFIG and
gpg_error_config_version.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/libassuan.m4 | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/libassuan.m4 b/src/libassuan.m4 index c1da8a9..2e98b39 100644 --- a/src/libassuan.m4 +++ b/src/libassuan.m4 @@ -9,7 +9,7 @@ dnl This file is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. dnl SPDX-License-Identifier: FSFULLR -# Last-changed: 2024-05-14 +# Last-changed: 2024-06-13 dnl dnl Find gpgrt-config, which uses .pc file @@ -82,17 +82,16 @@ AC_DEFUN([_AM_PATH_GPGRT_CONFIG],[dnl fi if test -n "$gpgrt_libdir"; then + # Add the --libdir option to GPGRT_CONFIG GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir" - if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then - GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error" - AC_MSG_NOTICE([Use gpgrt-config with $gpgrt_libdir as gpg-error-config]) - gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion` - else - gpg_error_config_version=`$GPG_ERROR_CONFIG --version` + # Make sure if gpgrt-config really works, by testing config gpg-error + if ! $GPGRT_CONFIG gpg-error --exists; then + # If it doesn't work, clear the GPGRT_CONFIG variable. unset GPGRT_CONFIG fi - elif test "$GPG_ERROR_CONFIG" != "no"; then - gpg_error_config_version=`$GPG_ERROR_CONFIG --version` + else + # GPGRT_CONFIG found but no suitable dir for --libdir found. + # This is a failure. Clear the GPGRT_CONFIG variable. unset GPGRT_CONFIG fi ]) |