~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_memcached.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
AC_DEFUN([PANDORA_WITH_MEMCACHED],[
 
2
 
 
3
  AC_ARG_WITH([memcached],
 
4
    [AS_HELP_STRING([--with-memcached],
 
5
      [Memcached binary to use for make test])],
 
6
    [ac_cv_with_memcached="$withval"],
 
7
    [ac_cv_with_memcached=memcached])
 
8
 
 
9
  # just ignore the user if --without-memcached is passed.. it is
 
10
  # only used by make test
 
11
  AS_IF([test "x$withval" = "xno"],[
 
12
    ac_cv_with_memcached=memcached
 
13
    MEMCACHED_BINARY=memcached
 
14
  ],[
 
15
    AS_IF([test -f "$withval"],[
 
16
      ac_cv_with_memcached=$withval
 
17
      MEMCACHED_BINARY=$withval
 
18
    ],[
 
19
      AC_PATH_PROG([MEMCACHED_BINARY], [$ac_cv_with_memcached], "no")
 
20
      AS_IF([test "x$MEMCACHED_BINARY" = "xno"],[
 
21
        AC_MSG_ERROR(["could not find memcached binary"])
 
22
      ])
 
23
    ])
 
24
  ])
 
25
])