~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/libmemcached.m4

  • Committer: Monty Taylor
  • Date: 2009-07-14 22:35:09 UTC
  • mto: (1093.1.16 captain)
  • mto: This revision was merged to the branch mainline in revision 1097.
  • Revision ID: mordred@inaugust.com-20090714223509-og937ckubmxomn89
pandora-buildĀ v0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl
2
 
dnl Copyright (C) 2008 Sun Microsystems
3
 
dnl 
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.
7
 
dnl 
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.
12
 
dnl 
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
16
 
dnl
17
 
dnl Check to find libmemcached.
18
 
 
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"])
24
 
])
25
 
 
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 
28
 
dnl called once.
29
 
AC_DEFUN([WITH_LIBMEMCACHED],[
30
 
  AC_REQUIRE([_SEARCH_FOR_LIBMEMCACHED])
31
 
])