~drizzle-trunk/drizzle/development

1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
1
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
dnl This file is free software; Sun Microsystems, Inc.
1093.2.2 by mordred
pandora-build v0.18
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
5
1192.3.35 by Monty Taylor
Fixed memcached test to be not a failure if memcached isn't there, but rather to cause memcached plugins to just not build.
6
AC_DEFUN([_PANDORA_SEARCH_MEMCACHED],[
1093.2.1 by Monty Taylor
pandora-build v0.16
7
8
  AC_ARG_WITH([memcached],
9
    [AS_HELP_STRING([--with-memcached],
10
      [Memcached binary to use for make test])],
11
    [ac_cv_with_memcached="$withval"],
12
    [ac_cv_with_memcached=memcached])
13
14
  # just ignore the user if --without-memcached is passed.. it is
15
  # only used by make test
1192.3.35 by Monty Taylor
Fixed memcached test to be not a failure if memcached isn't there, but rather to cause memcached plugins to just not build.
16
  AS_IF([test "x$ac_cv_with_memcached" = "xno"],[
1093.2.1 by Monty Taylor
pandora-build v0.16
17
    ac_cv_with_memcached=memcached
18
    MEMCACHED_BINARY=memcached
19
  ],[
1192.3.35 by Monty Taylor
Fixed memcached test to be not a failure if memcached isn't there, but rather to cause memcached plugins to just not build.
20
    AS_IF([test -f "$ac_cv_with_memcached"],[
21
      MEMCACHED_BINARY=$ac_cv_with_memcached
1093.2.1 by Monty Taylor
pandora-build v0.16
22
    ],[
23
      AC_PATH_PROG([MEMCACHED_BINARY], [$ac_cv_with_memcached], "no")
24
    ])
25
  ])
1093.2.2 by mordred
pandora-build v0.18
26
  AC_DEFINE_UNQUOTED([MEMCACHED_BINARY], "$MEMCACHED_BINARY", 
27
            [Name of the memcached binary used in make test])
1259.2.3 by Monty Taylor
pandora-build - proper detection of memcached.
28
  AM_CONDITIONAL([HAVE_MEMCACHED],[test "x$MEMCACHED_BINARY" != "xno"])
1192.3.35 by Monty Taylor
Fixed memcached test to be not a failure if memcached isn't there, but rather to cause memcached plugins to just not build.
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"],[
2221.1.8 by Monty Taylor
Adds ability to just build libdrizzle without needing all of the rest of the
38
    PANDORA_MSG_ERROR(["could not find memcached binary"])
1192.3.35 by Monty Taylor
Fixed memcached test to be not a failure if memcached isn't there, but rather to cause memcached plugins to just not build.
39
  ])
40
])
41