diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-09-17 10:26:48 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-09-17 10:26:48 +0300 |
commit | e4d21c1941cd204a458d1ecd35dd8615f72d3628 (patch) | |
tree | ed9892265094d73d224a110fc42f15809e055160 /configure.ac | |
parent | 5414cbe8212fb77f44e185b00a6553f145746686 (diff) |
Introduce mod_avatar
The purpose of the module is to cope with legacy and modern
XMPP clients posting avatars. It automatically converts vCard based
avatars (XEP-0153) to PEP based avatars (XEP-0084) and vice versa.
Also, the module supports convertation between avatar image formats on
the fly: this is controlled by `convert` option. For example, to
convert all avatars into PNG format, configure the module as:
mod_avatar:
convert:
default: png
In order to convert only `webp` format to `jpeg`, set the following:
mod_avatar:
convert:
webp: jpeg
Note: the module depends on mod_vcard, mod_vcard_xupdate and mod_pubsub.
Also, ejabberd should be built with --enable-graphics option.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index edf54722c..1fdf30293 100644 --- a/configure.ac +++ b/configure.ac @@ -236,6 +236,14 @@ AC_ARG_ENABLE(sip, *) AC_MSG_ERROR(bad value ${enableval} for --enable-sip) ;; esac],[if test "x$sip" = "x"; then sip=false; fi]) +AC_ARG_ENABLE(graphics, +[AC_HELP_STRING([--enable-graphics], [enable support for graphic images manipulation (default: yes)])], +[case "${enableval}" in + yes) graphics=true ;; + no) graphics=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-graphics) ;; +esac],[if test "x$graphics" = "x"; then graphics=true; fi]) + AC_CONFIG_FILES([Makefile vars.config src/ejabberd.app.src]) @@ -280,6 +288,7 @@ AC_SUBST(iconv) AC_SUBST(stun) AC_SUBST(sip) AC_SUBST(debug) +AC_SUBST(graphics) AC_SUBST(tools) AC_SUBST(latest_deps) AC_SUBST(system_deps) |