about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-22 20:35:46 +0100
committerJames Booth <boothj5@gmail.com>2015-06-22 20:35:46 +0100
commit24ebb51254034feb1a157f9aeef86007b0083181 (patch)
tree7906d94d6709ad69fa28d35891db928d49c8b2a6
parentf81873824bb45158c8046dd6cefc1e8348c029cf (diff)
downloadprofani-tty-24ebb51254034feb1a157f9aeef86007b0083181.tar.gz
Use AM_CPPFLAGS for gpgme-config --cflags
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b8d1f866..e945155a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -196,7 +196,7 @@ if test "x$enable_pgp" != xno; then
          AC_PATH_PROG([GPGME_CONFIG], [gpgme-config], ["failed"])
          AS_IF([test "x$GPGME_CONFIG" = xfailed],
             [LIBS="-lgpgme $LIBS"],
-            [LIBS="`$GPGME_CONFIG --libs` $LIBS" CFLAGS="`$GPGME_CONFIG --cflags` $CFLAGS"])],
+            [LIBS="`$GPGME_CONFIG --libs` $LIBS" AM_CPPFLAGS="`$GPGME_CONFIG --cflags` $AM_CPPFLAGS"])],
         [AS_IF([test "x$enable_pgp" = xyes],
             [AC_MSG_ERROR([libgpgme is required for pgp support])],
             [AC_MSG_NOTICE([libgpgme not found, pgp support not enabled])])])