2
dnl Copyright (C) 2008 Sun Microsystems
4
dnl This program is free software; you can redistribute it and/or modify
5
dnl it under the terms of the GNU General Public License as published by
6
dnl the Free Software Foundation; version 2 of the License.
8
dnl This program is distributed in the hope that it will be useful,
9
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
dnl GNU General Public License for more details.
13
dnl You should have received a copy of the GNU General Public License
14
dnl along with this program; if not, write to the Free Software
15
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
dnl Check to find libmemcached.
19
AC_DEFUN([_SEARCH_FOR_LIBMEMCACHED],[
20
AC_LIB_HAVE_LINKFLAGS(memcached,,
21
[#include <libmemcached/memcached.h>],
22
[struct memcached_st memc])
23
AM_CONDITIONAL([BUILD_MEMCACHED],[test "x$ac_cv_libmemcached" = "xyes"])
26
dnl Split this into a _hidden function and a public with a require. This way
27
dnl any number of plugins can call the code and the real guts only get
29
AC_DEFUN([WITH_LIBMEMCACHED],[
30
AC_REQUIRE([_SEARCH_FOR_LIBMEMCACHED])