esac],[db_type=generic])
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-json --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 (useful for Dialyzer checks, default: no)])],
[case "${enableval}" in
- 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 json=false redis=false elixir=false iconv=false debug=false lager=false tools=false oauth=false ;;
+ 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 ;;
+ 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 ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-all) ;;
esac],[])
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lager) ;;
esac],[if test "x$lager" = "x"; then lager=true; fi])
-AC_ARG_ENABLE(oauth,
-[AC_HELP_STRING([--enable-oauth], [enable oauth support (default: yes)])],
-[case "${enableval}" in
- yes) oauth=true ;;
- no) oauth=false ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-oauth) ;;
-esac],[if test "x$oauth" = "x"; then oauth=false; fi])
-
AC_CONFIG_FILES([Makefile
vars.config
src/ejabberd.app.src])
AC_SUBST(debug)
AC_SUBST(lager)
AC_SUBST(tools)
-AC_SUBST(oauth)
AC_OUTPUT
{esip, ".*", {git, "https://github.com/processone/p1_sip"}},
{p1_stun, ".*", {git, "https://github.com/processone/stun"}},
{p1_yaml, ".*", {git, "https://github.com/processone/p1_yaml"}},
- {p1_utils, ".*", {git, "https://github.com/processone/p1_utils"}}],
+ {p1_utils, ".*", {git, "https://github.com/processone/p1_utils"}},
+ {oauth2, ".*", {git, "https://github.com/IvanMartinez/oauth2.git"}},
+ {xmlrpc, ".*", {git, "https://github.com/rds13/xmlrpc.git"}}],
ConfigureCmd = fun(Pkg, Flags) ->
{'get-deps',
[{meck, "0.*", {git, "https://github.com/eproxus/meck"}}];
({redis, true}) ->
[{eredis, ".*", {git, "https://github.com/wooga/eredis"}}];
- ({oauth, true}) ->
- %% ejabberd oauth support does not depends directly on xmlrpc.
- %% However, we include xmlrpc as it is convenient to document and test oauth
- [{oauth2, ".*", {git, "https://github.com/IvanMartinez/oauth2.git"}},
- {xmlrpc, ".*", {git, "https://github.com/rds13/xmlrpc.git"}}];
(_) ->
[]
end, Cfg),