summaryrefslogtreecommitdiff
path: root/m4/deprecated.m4
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2009-06-20 11:01:52 -0700
committerMonty Taylor <mordred@inaugust.com>2009-06-20 11:01:52 -0700
commit34fc4157bda6f458cc603cf32c93507dab9c4f8a (patch)
treeb7b8bc08be03ab060090d99e6c52e848a8798a6a /m4/deprecated.m4
parentb9b27d60f1fc3e1f9262d3f792fac9d5d2d317a9 (diff)
parent20b4431225d4ccd4aa22f6d7f67476c92d1c9546 (diff)
downloadlibmemcached-34fc4157bda6f458cc603cf32c93507dab9c4f8a.tar.gz
Merged from trond.
Diffstat (limited to 'm4/deprecated.m4')
-rw-r--r--m4/deprecated.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/deprecated.m4 b/m4/deprecated.m4
new file mode 100644
index 00000000..11f80bd6
--- /dev/null
+++ b/m4/deprecated.m4
@@ -0,0 +1,17 @@
+dnl ---------------------------------------------------------------------------
+dnl Macro: deprecated
+dnl ---------------------------------------------------------------------------
+AC_DEFUN([ENABLE_DEPRECATED],[
+ AC_ARG_ENABLE([deprecated],
+ [AS_HELP_STRING([--enable-deprecated],
+ [Enable deprecated interface @<:@default=off@:>@])],
+ [ac_enable_deprecated="$enableval"],
+ [ac_enable_deprecated="no"])
+
+ AS_IF([test "$ac_enable_deprecated" = "yes"],
+ [DEPRECATED="#define MEMCACHED_ENABLE_DEPRECATED 1"])
+ AC_SUBST([DEPRECATED])
+])
+dnl ---------------------------------------------------------------------------
+dnl End Macro: deprecated
+dnl ---------------------------------------------------------------------------