Sha256: 87c94ac2d2225f7ed89de82b1b10f0f0fed3c11f8fd31d531fe8fe8328911401

Contents?: true

Size: 926 Bytes

Versions: 2

Compression:

Stored size: 926 Bytes

Contents

AC_DEFUN([WITH_MEMCACHED],
  [AC_ARG_WITH([memcached],
    [AS_HELP_STRING([--with-memcached],
      [Memcached binary to use for make test])],
    [ac_cv_with_memcached="$withval"],
    [ac_cv_with_memcached=memcached])

  # just ignore the user if --without-memcached is passed.. it is
  # only used by make test
  AS_IF([test "x$withval" = "xno"],
    [
      ac_cv_with_memcached=memcached
      MEMC_BINARY=memcached
    ],
    [
       AS_IF([test -f "$withval"],
         [
           ac_cv_with_memcached=$withval
           MEMC_BINARY=$withval
         ],
         [
           AC_PATH_PROG([MEMC_BINARY], [$ac_cv_with_memcached], "no")
           AS_IF([test "x$MEMC_BINARY" = "xno"],
             AC_MSG_ERROR(["could not find memcached binary"]))
         ])
    ])

  AC_DEFINE_UNQUOTED([MEMCACHED_BINARY], "$MEMC_BINARY",
            [Name of the memcached binary used in make test])
  AC_SUBST(MEMC_BINARY)
])

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
couchbase-memcached-1.2.9 ext/libmemcached-0.50/m4/memcached.m4
couchbase-memcached-1.2.8 ext/libmemcached-0.50/m4/memcached.m4