Code

Fix automatic link flags with libgcrypt 1.5.0
authorDan Fandrich <dan@coneharvesters.com>
Sat, 2 Mar 2013 17:13:27 +0000 (18:13 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 16 Mar 2013 12:46:04 +0000 (13:46 +0100)
AM_PATH_LIBGCRYPT from libgcrypt 1.5.0 sets the variables
LIBGCRYPT_CPPFLAGS and LIBGCRYPT_LIBS with their proper
values, not GCRYPT_CPPFLAGS and GCRYPT_LIBS.

Signed-off-by: Florian Forster <octo@collectd.org>
configure.in

index 1492ba2fe9513b770b80a49007f2f2ceda5d6803..8a0cebb631e09736b87404a59963c2741a6d5c52 100644 (file)
@@ -1831,6 +1831,8 @@ then
 
        if test "$with_libgcrypt" != "no"; then
                AM_PATH_LIBGCRYPT(1:1.2.0,,with_libgcrypt="no (version 1.2.0+ required)")
+               GCRYPT_CPPFLAGS="$LIBGCRYPT_CPPFLAGS"
+               GCRYPT_LIBS="$LIBGCRYPT_LIBS"
        fi
 fi