25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Revert "Remove "--enable-json" flag"

This reverts commit 5bb137940c.
This is needed for mod_http_api
This commit is contained in:
Christophe Romain 2015-09-25 16:08:34 +02:00
parent a1129dc96b
commit 5eab6e315e
4 changed files with 18 additions and 3 deletions

View File

@ -108,10 +108,10 @@ AC_ARG_ENABLE(mssql,
esac],[db_type=generic]) esac],[db_type=generic])
AC_ARG_ENABLE(all, AC_ARG_ENABLE(all,
[AC_HELP_STRING([--enable-all], [same as --enable-nif --enable-odbc --enable-mysql --enable-pgsql --enable-sqlite --enable-pam --enable-zlib --enable-riak --enable-redis --enable-elixir --enable-iconv --enable-debug --enable-lager --enable-tools --enable-oauth (useful for Dialyzer checks, default: no)])], [AC_HELP_STRING([--enable-all], [same as --enable-nif --enable-odbc --enable-mysql --enable-pgsql --enable-sqlite --enable-pam --enable-zlib --enable-riak --enable-redis --enable-json --enable-elixir --enable-iconv --enable-debug --enable-lager --enable-tools --enable-oauth (useful for Dialyzer checks, default: no)])],
[case "${enableval}" in [case "${enableval}" in
yes) nif=true odbc=true mysql=true pgsql=true sqlite=true pam=true zlib=true riak=true redis=true elixir=true iconv=true debug=true lager=true tools=true oauth=true ;; yes) nif=true odbc=true mysql=true pgsql=true sqlite=true pam=true zlib=true riak=true redis=true json=true elixir=true iconv=true debug=true lager=true tools=true oauth=true ;;
no) nif=false odbc=false mysql=false pgsql=false sqlite=false pam=false zlib=false riak=false redis=false elixir=false iconv=false debug=false lager=false tools=false oauth=false ;; no) nif=false odbc=false mysql=false pgsql=false sqlite=false pam=false zlib=false riak=false json=false redis=false elixir=false iconv=false debug=false lager=false tools=false oauth=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-all) ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-all) ;;
esac],[]) esac],[])
@ -195,6 +195,14 @@ AC_ARG_ENABLE(redis,
*) AC_MSG_ERROR(bad value ${enableval} for --enable-redis) ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-redis) ;;
esac],[if test "x$redis" = "x"; then redis=false; fi]) esac],[if test "x$redis" = "x"; then redis=false; fi])
AC_ARG_ENABLE(json,
[AC_HELP_STRING([--enable-json], [enable JSON support for mod_bosh (default: no)])],
[case "${enableval}" in
yes) json=true ;;
no) json=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-json) ;;
esac],[if test "x$json" = "x"; then json=false; fi])
AC_ARG_ENABLE(elixir, AC_ARG_ENABLE(elixir,
[AC_HELP_STRING([--enable-elixir], [enable Elixir support (default: no)])], [AC_HELP_STRING([--enable-elixir], [enable Elixir support (default: no)])],
[case "${enableval}" in [case "${enableval}" in
@ -276,6 +284,7 @@ AC_SUBST(pam)
AC_SUBST(zlib) AC_SUBST(zlib)
AC_SUBST(riak) AC_SUBST(riak)
AC_SUBST(redis) AC_SUBST(redis)
AC_SUBST(json)
AC_SUBST(elixir) AC_SUBST(elixir)
AC_SUBST(iconv) AC_SUBST(iconv)
AC_SUBST(debug) AC_SUBST(debug)

View File

@ -97,6 +97,8 @@ CfgDeps = lists:flatmap(
[{p1_zlib, ".*", {git, "https://github.com/processone/zlib"}}]; [{p1_zlib, ".*", {git, "https://github.com/processone/zlib"}}];
({riak, true}) -> ({riak, true}) ->
[{riakc, ".*", {git, "https://github.com/basho/riak-erlang-client", {tag, "1.4.2"}}}]; [{riakc, ".*", {git, "https://github.com/basho/riak-erlang-client", {tag, "1.4.2"}}}];
({json, true}) ->
[{jiffy, ".*", {git, "https://github.com/davisp/jiffy"}}];
({elixir, true}) -> ({elixir, true}) ->
[{rebar_elixir_plugin, ".*", {git, "https://github.com/yrashk/rebar_elixir_plugin"}}, [{rebar_elixir_plugin, ".*", {git, "https://github.com/yrashk/rebar_elixir_plugin"}},
{elixir, ".*", {git, "https://github.com/elixir-lang/elixir", {branch, "v1.0"}}}]; {elixir, ".*", {git, "https://github.com/elixir-lang/elixir", {branch, "v1.0"}}}];
@ -142,6 +144,8 @@ CfgXrefs = lists:flatmap(
({riak, true}) -> ({riak, true}) ->
% used in map-reduce function called from riak vm % used in map-reduce function called from riak vm
["(\"riak_object\":_/_)"]; ["(\"riak_object\":_/_)"];
({json, false}) ->
["(\"jiffy\":_/_)"];
({zlib, false}) -> ({zlib, false}) ->
["(\"ezlib\":_/_)"]; ["(\"ezlib\":_/_)"];
({http, false}) -> ({http, false}) ->

View File

@ -36,6 +36,7 @@ DepConfiguredApps = lists:flatmap(
({pam, true}) -> [p1_pam]; ({pam, true}) -> [p1_pam];
({zlib, true}) -> [p1_zlib]; ({zlib, true}) -> [p1_zlib];
({stun, true}) -> [p1_stun]; ({stun, true}) -> [p1_stun];
({json, true}) -> [jiffy];
({iconv, true}) -> [p1_iconv]; ({iconv, true}) -> [p1_iconv];
({lager, true}) -> [lager, goldrush]; ({lager, true}) -> [lager, goldrush];
({lager, false}) -> [p1_logger]; ({lager, false}) -> [p1_logger];

View File

@ -28,6 +28,7 @@
{zlib, @zlib@}. {zlib, @zlib@}.
{riak, @riak@}. {riak, @riak@}.
{redis, @redis@}. {redis, @redis@}.
{json, @json@}.
{elixir, @elixir@}. {elixir, @elixir@}.
{lager, @lager@}. {lager, @lager@}.
{iconv, @iconv@}. {iconv, @iconv@}.