From edfb5fc2f896b74e630d04174d3fb16ad846b54b Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 10 Jul 2014 13:58:43 +0400 Subject: [PATCH] Add --enable-riak configure flag --- configure.ac | 9 +++++++++ vars.config.in | 1 + 2 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 045ae01d9..904f4e059 100644 --- a/configure.ac +++ b/configure.ac @@ -169,6 +169,14 @@ AC_ARG_ENABLE(zlib, *) AC_MSG_ERROR(bad value ${enableval} for --enable-zlib) ;; esac],[if test "x$zlib" = "x"; then zlib=true; fi]) +AC_ARG_ENABLE(riak, +[AC_HELP_STRING([--enable-riak], [enable Riak support (default: no)])], +[case "${enableval}" in + yes) riak=true ;; + no) riak=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-riak) ;; +esac],[if test "x$riak" = "x"; then riak=false; fi]) + AC_ARG_ENABLE(json, [AC_HELP_STRING([--enable-json], [enable JSON support for mod_bosh (default: no)])], [case "${enableval}" in @@ -263,6 +271,7 @@ AC_SUBST(mysql) AC_SUBST(pgsql) AC_SUBST(pam) AC_SUBST(zlib) +AC_SUBST(riak) AC_SUBST(json) AC_SUBST(iconv) AC_SUBST(debug) diff --git a/vars.config.in b/vars.config.in index d8270e17a..69b960099 100644 --- a/vars.config.in +++ b/vars.config.in @@ -24,6 +24,7 @@ {pgsql, @pgsql@}. {pam, @pam@}. {zlib, @zlib@}. +{riak, @riak@}. {json, @json@}. {http, @http@}. {lager, @lager@}.