~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_memcached.m4

  • Committer: Brian Aker
  • Date: 2009-11-24 02:06:37 UTC
  • mfrom: (1223.1.7 push)
  • Revision ID: brian@gaz-20091124020637-9gb65vj98x1arydm
Merge for staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
 
dnl This file is free software; Sun Microsystems, Inc.
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
3
3
dnl gives unlimited permission to copy and/or distribute it,
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
6
 
AC_DEFUN([_PANDORA_SEARCH_MEMCACHED],[
 
6
AC_DEFUN([PANDORA_WITH_MEMCACHED],[
7
7
 
8
8
  AC_ARG_WITH([memcached],
9
9
    [AS_HELP_STRING([--with-memcached],
13
13
 
14
14
  # just ignore the user if --without-memcached is passed.. it is
15
15
  # only used by make test
16
 
  AS_IF([test "x$ac_cv_with_memcached" = "xno"],[
 
16
  AS_IF([test "x$withval" = "xno"],[
17
17
    ac_cv_with_memcached=memcached
18
18
    MEMCACHED_BINARY=memcached
19
19
  ],[
20
 
    AS_IF([test -f "$ac_cv_with_memcached"],[
21
 
      MEMCACHED_BINARY=$ac_cv_with_memcached
 
20
    AS_IF([test -f "$withval"],[
 
21
      ac_cv_with_memcached=$withval
 
22
      MEMCACHED_BINARY=$withval
22
23
    ],[
23
24
      AC_PATH_PROG([MEMCACHED_BINARY], [$ac_cv_with_memcached], "no")
 
25
      AS_IF([test "x$MEMCACHED_BINARY" = "xno"],[
 
26
        AC_MSG_ERROR(["could not find memcached binary"])
 
27
      ])
24
28
    ])
25
29
  ])
26
30
  AC_DEFINE_UNQUOTED([MEMCACHED_BINARY], "$MEMCACHED_BINARY", 
27
31
            [Name of the memcached binary used in make test])
28
 
  AM_CONDITIONAL([HAVE_MEMCACHED],[test "x$MEMCACHED_BINARY" != "xno"])
29
 
])
30
 
 
31
 
AC_DEFUN([PANDORA_HAVE_MEMCACHED],[
32
 
  AC_REQUIRE([_PANDORA_SEARCH_MEMCACHED])
33
 
])
34
 
 
35
 
AC_DEFUN([PANDORA_REQUIRE_MEMCACHED],[
36
 
  AC_REQUIRE([PANDORA_HAVE_MEMCACHED])
37
 
  AS_IF([test "x$MEMCACHED_BINARY" = "xno"],[
38
 
    AC_MSG_ERROR(["could not find memcached binary"])
39
 
  ])
40
 
])
41
 
 
 
32
 
 
33
])