From 5eb8b09659c189bf57322e2c06636f881031f2d3 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sun, 11 Sep 2011 16:13:48 +0200 Subject: [PATCH] Added test on autotools for gpg-error. --- configure.ac | 5 +++++ src/Makefile.am | 2 ++ 2 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 4ba31b0..426c6ce 100644 --- a/configure.ac +++ b/configure.ac @@ -39,6 +39,11 @@ AM_PATH_LIBGCRYPT(1.2.1, :, [AC_MSG_ERROR([libgcrypt >= 1.2.1 not found.])]) AC_SUBST(LIBGCRYPT_CFLAGS) AC_SUBST(LIBGCRYPT_LIBS) +AM_PATH_GPG_ERROR(1.10, :, [AC_MSG_ERROR([libgpgerror >= 1.10 not found.])]) + +AC_SUBST(GPG_ERROR_CFLAGS) +AC_SUBST(GPG_ERROR_LIBS) + # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. diff --git a/src/Makefile.am b/src/Makefile.am index 3a07774..3d6dd25 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,12 +3,14 @@ formdir = $(datadir)/libaute-db/form AM_CPPFLAGS = $(LIBAUTEDB_CFLAGS) \ $(LIBGCRYPT_CFLAGS) \ + $(GPG_ERROR_CFLAGS) \ $(LIBCONFI_CFLAGS) \ -DGUIDIR=\""$(guidir)"\" \ -DFORMDIR=\""$(formdir)"\" LIBS = $(LIBAUTEDB_LIBS) \ $(LIBGCRYPT_LIBS) \ + $(GPG_ERROR_LIBS) \ $(LIBCONFI_LIBS) libaute_pluginsdir = $(libdir)/libaute/plugins -- 2.49.0