aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-07-26 02:13:20 +0000
committerNIIBE Yutaka <[email protected]>2023-07-26 02:13:20 +0000
commit9ce1b41cc1fe94baf16a32bb444d4aa4fe2d58a3 (patch)
treeb3dc3e202f0cba77924cc916e779a8e4ebda3567
parentUpdate NEWS. (diff)
downloadlibassuan-9ce1b41cc1fe94baf16a32bb444d4aa4fe2d58a3.tar.gz
libassuan-9ce1b41cc1fe94baf16a32bb444d4aa4fe2d58a3.zip
libassuan.m4: Allow use of libassuan 3 for API of version 2.
* src/libassuan.m4: API 3 is backward compatible to API 2. -- Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--src/libassuan.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libassuan.m4 b/src/libassuan.m4
index f9e2e4f..a2eb5d9 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: 2022-11-01
+# Last-changed: 2023-07-26
dnl
dnl Common code used for libassuan detection [internal]
@@ -105,6 +105,8 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
AC_MSG_CHECKING([LIBASSUAN API version])
if test "$req_libassuan_api" -eq "$tmp" ; then
AC_MSG_RESULT(okay)
+ elif test "$req_libassuan_api" -eq 2 -a "$tmp" -eq 3; then
+ AC_MSG_RESULT(okay)
else
ok=no
AC_MSG_RESULT([does not match. want=$req_libassuan_api got=$tmp.])