aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b4952a424..1fe20b6bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -261,6 +261,19 @@ if test "$ENABLEUSER" != ""; then
echo "allow this system user to start ejabberd: $ENABLEUSER"
AC_SUBST([INSTALLUSER], [$ENABLEUSER])
fi
+ENABLEGROUP=""
+AC_ARG_ENABLE(group,
+ [AS_HELP_STRING([--enable-group[[[[=GROUP]]]]], [allow this system group to start ejabberd (default: no)])],
+ [case "${enableval}" in
+ yes) ENABLEGROUP=`groups |head -n 1` ;;
+ no) ENABLEGROUP="" ;;
+ *) ENABLEGROUP=$enableval
+ esac],
+ [])
+if test "$ENABLEGROUP" != ""; then
+ echo "allow this system group to start ejabberd: $ENABLEGROUP"
+ AC_SUBST([INSTALLGROUP], [$ENABLEGROUP])
+fi
ERLANG_DEPRECATED_TYPES_CHECK