X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.ac;h=872facdfdcda0fc170df3b0d7ba4c766361ed7df;hb=44de7e21fac2c7c731b635ba1d31b99ae6bb1259;hp=c85286f576dbcf50a7c9bf89ef2377fe61a5e2ec;hpb=35ffe076512941377bb6f3cbdfa774a4ceaf9641;p=yaz-moved-to-github.git diff --git a/configure.ac b/configure.ac index c85286f..872facd 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,7 @@ fi AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])]) dnl ------ libgcrypt libgcryptpath=NONE -AC_ARG_WITH(libgcrypt, [ --with-libgcrypt=DIR use libgcrypt-config in DIR],[libgcryptpath=$withval]) +AC_ARG_WITH(libgcrypt, [ --with-libgcrypt=DIR use libgcrypt-config in DIR],[libgcryptpath=$withval]) if test "$libgcryptpath" != "no"; then if test "$libgcryptpath" = "NONE"; then AC_PATH_PROG([libgcrypt],[libgcrypt-config],[NONE]) @@ -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])