X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_have_libmemcached.m4;h=d1a44c60e04c5cbf512f16a72e673839d2384c9c;hb=b3b580a4c87c086ce8a1250d1ca7f1a1fe1bb0bb;hp=d4bebf53eb508b29ac3ea61e1ce119e3f4372cbb;hpb=15b71a80142a85eb34afbad016a23bb591145f36;p=m6w6%2Flibmemcached diff --git a/m4/pandora_have_libmemcached.m4 b/m4/pandora_have_libmemcached.m4 index d4bebf53..d1a44c60 100644 --- a/m4/pandora_have_libmemcached.m4 +++ b/m4/pandora_have_libmemcached.m4 @@ -10,18 +10,27 @@ AC_DEFUN([_PANDORA_SEARCH_LIBMEMCACHED],[ dnl Check for libmemcached dnl -------------------------------------------------------------------- - AC_LIB_HAVE_LINKFLAGS(memcached,,[ - #include - ], [ - memcached_st memc; - memcached_dump_func *df; - memcached_version(); + AC_ARG_ENABLE([libmemcached], + [AS_HELP_STRING([--disable-libmemcached], + [Build with libmemcached support @<:@default=on@:>@])], + [ac_enable_libmemcached="$enableval"], + [ac_enable_libmemcached="yes"]) + + AS_IF([test "x$ac_enable_libmemcached" = "xyes"],[ + AC_LIB_HAVE_LINKFLAGS(memcached,,[ + #include + ],[ + memcached_st memc; + memcached_dump_func *df; + memcached_lib_version(); + ]) + ],[ + ac_cv_libmemcached="no" ]) AM_CONDITIONAL(HAVE_LIBMEMCACHED, [test "x${ac_cv_libmemcached}" = "xyes"]) AS_IF([test "x${ac_cv_libmemcached}" = "xyes"], [ PANDORA_WITH_MEMCACHED ]) - ]) AC_DEFUN([PANDORA_HAVE_LIBMEMCACHED],[