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 8ca5d01..186b243 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