Description: gpgerror lib has stopped vendoring a gpg-error-config binary, and hence instead detect gpg-error via a PKG_CHECK_MODULES call and choke if it is not found Author: Nilesh Patra Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022279 Last-Update: 2022-10-24 --- a/configure.ac +++ b/configure.ac @@ -143,16 +143,7 @@ fi fi -AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no) -if test x"$GPG_ERROR_CONFIG" = xno; then - AC_MSG_ERROR([gpg-error not found on system]) -else - GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags` - GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs` - AC_SUBST(GPG_ERROR_CFLAGS) - AC_SUBST(GPG_ERROR_LIBS) - AC_DEFINE(HAVE_LIBGPG_ERROR, 1, [Define to 1 if you have the gpg-error library]) -fi +PKG_CHECK_MODULES([GPG_ERROR],[gpg-error >= 1.33], AC_DEFINE(HAVE_LIBGPG_ERROR, 1, [Define to 1 if you have the gpg-error library]), AC_MSG_ERROR([gpg-error not found on system])) dnl libaacs (for bdplus_test) AC_ARG_WITH([libaacs],