diff options
author | Badlop <badlop@process-one.net> | 2008-07-12 22:02:16 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2008-07-12 22:02:16 +0000 |
commit | 871d1dfad6f16e45d8cb3aaf7347a6040c918c5d (patch) | |
tree | 12a0ce2b7e6a63486ca7b669bba44959a166fc3c /src/configure.ac | |
parent | * src/configure.ac: Improve legibility (diff) |
* src/configure.ac: Allow to execute ejabberd with a normal
system user (thanks to Viq)(EJAB-402)
* src/configure: Likewise
* src/ejabberdctl.template: Likewise
* src/Makefile.in: Likewise
* doc/guide.tex: Likewise
* doc/guide.html: Likewise
SVN Revision: 1439
Diffstat (limited to '')
-rw-r--r-- | src/configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac index 15d099dc2..f474bfdb2 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -122,4 +122,15 @@ else fi AC_CHECK_HEADER(krb5.h,,) +ENABLEUSER=root +AC_ARG_ENABLE(user, + [AS_HELP_STRING([--enable-user[[[[=USER]]]]], [allow this system user to start ejabberd (default: no)])], + [case "${enableval}" in + yes) ENABLEUSER=`whoami` ;; + *) ENABLEUSER=$enableval + esac + echo "allow this system user to start ejabberd: $ENABLEUSER"], + []) +AC_SUBST([INSTALLUSER], [$ENABLEUSER]) + AC_OUTPUT |