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 1492ba2..8a0cebb 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