From be89f721ce59303c3f7261b7bf86b971dff18376 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 20 Jan 2014 15:28:49 +0100 Subject: [PATCH] Add configure check for memcached headers+libs --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1be1a8b..f4a79c6 100644 --- a/configure.ac +++ b/configure.ac @@ -59,8 +59,15 @@ if test "$checkBoth" = "1"; then AC_CHECK_FUNC([accept], , [LIBS=$oldLibs]) fi AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])]) -dnl - +dnl ------ memcached +memcached=default +AC_ARG_WITH([memcached], [ --with-memcached Memcached library], [memcached=$withval]) +if test "$memcached" != "no"; then + AC_CHECK_LIB([memcached],[memcached_get]) + if test "$ac_cv_lib_memcached_memcached_get" = "yes"; then + AC_CHECK_HEADERS([libmemcached/memcached.h]) + fi +fi dnl ------ OpenSSL AC_SUBST([SSL_CFLAGS]) AC_SUBST([SSL_LIBS]) -- 1.7.10.4