If libgcrypt is not found, disable memcached entirely
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 24 Jan 2014 12:07:23 +0000 (13:07 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 24 Jan 2014 12:07:23 +0000 (13:07 +0100)
That's because we need wrbuf_sha1_write / wrbuf_sha1_puts when we
use memcached.

configure.ac

index b0aa173..872facd 100644 (file)
@@ -82,7 +82,7 @@ fi
 dnl ------ memcached
 memcached=default
 AC_ARG_WITH([memcached], [  --with-memcached        Memcached library], [memcached=$withval])
-if test "$memcached" != "no"; then
+if test "$memcached" != "no" -a -n "$libgcryptversion"; then
     AC_CHECK_LIB([memcached],[memcached_get])
     if test "$ac_cv_lib_memcached_memcached_get" = "yes"; then
        AC_CHECK_HEADERS([libmemcached/memcached.h])