From: Ruben Kerkhof Date: Tue, 4 Aug 2015 13:28:03 +0000 (+0200) Subject: gcrypt: remove exec-prefix check X-Git-Tag: collectd-5.5.1~40^2~8 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=81129cd1e8e25da49585ed2fb9781fa3606457f0;p=collectd.git gcrypt: remove exec-prefix check libgcrypt-config --libs already includes the correct library include path. Also, we hardcoded it to $exec-prefix/lib, which is just plain wrong on 64bit architectures. --- diff --git a/configure.ac b/configure.ac index e91a1294..2175beea 100644 --- a/configure.ac +++ b/configure.ac @@ -1963,12 +1963,6 @@ then GCRYPT_CPPFLAGS=`"$with_libgcrypt_config" --cflags 2>/dev/null` fi - if test "x$GCRYPT_LDFLAGS" = "x" - then - gcrypt_exec_prefix=`"$with_libgcrypt_config" --exec-prefix 2>/dev/null` - GCRYPT_LDFLAGS="-L$gcrypt_exec_prefix/lib" - fi - if test "x$GCRYPT_LIBS" = "x" then GCRYPT_LIBS=`"$with_libgcrypt_config" --libs 2>/dev/null` @@ -1993,10 +1987,6 @@ fi if test "x$with_libgcrypt" = "xyes" then - if test "x$GCRYPT_LDFLAGS" != "x" - then - AC_MSG_NOTICE([gcrypt LDFLAGS: $GCRYPT_LDFLAGS]) - fi AC_CHECK_LIB(gcrypt, gcry_md_hash_buffer, [with_libgcrypt="yes"], [with_libgcrypt="no (symbol gcry_md_hash_buffer not found)"])