Code

configure.in: Fix libgcrypt flags on FreeBSD.
authorFlorian Forster <octo@collectd.org>
Wed, 10 Apr 2013 02:33:23 +0000 (04:33 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 10 Apr 2013 02:33:23 +0000 (04:33 +0200)
On FreeBSD, AM_PATH_LIBGCRYPT sets LIBGCRYPT_CFLAGS but not
LIBGCRYPT_CPPFLAGS. Use both variables to be on the save side.

configure.in

index 8ca5d0184abe606c59f8b7aea6e47aabae6e708f..186b243847402dc92abbbb6a5b9b0a5e3169d0cf 100644 (file)
@@ -1844,7 +1844,7 @@ 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_CPPFLAGS="$LIBGCRYPT_CPPFLAGS $LIBGCRYPT_CFLAGS"
                GCRYPT_LIBS="$LIBGCRYPT_LIBS"
        fi
 fi