office-gobmx/external/libassuan/find-libgpg-error.patch
Katarina Behrens 4a53df9cd7 gpg4libre: Build internal libgpg-error, libassuan and gpgme(pp)
Change-Id: I1953e7062b872340b844771adc8ebe40f524cc76
Reviewed-on: https://gerrit.libreoffice.org/34227
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-02-16 12:14:02 +00:00

18 lines
535 B
Diff

--- configure.ac 2017-02-13 14:34:06.983449082 +0100
+++ configure.ac 2017-02-13 15:36:50.944653536 +0100
@@ -355,7 +355,14 @@
# Checking for libgpg-error.
-AM_PATH_GPG_ERROR(1.17,, AC_MSG_ERROR([libgpg-error was not found]))
+if test "${GPG_ERROR_CFLAGS+set}" != "set"; then
+ AM_PATH_GPG_ERROR(1.17,, AC_MSG_ERROR([libgpg-error was not found]))
+else
+ GPG_ERROR_CFLAGS="$GPG_ERROR_CFLAGS"
+ GPG_ERROR_LIBS="$GPG_ERROR_LIBS"
+ AC_SUBST(GPG_ERROR_CFLAGS)
+ AC_SUBST(GPG_ERROR_LIBS)
+fi
#
# Checks for library functions.