+
+ WEB_GROUP=www
+ for x in www www-data apache httpd nogroup nobody; do
+ echo "$as_me:$LINENO: checking if group $x exists" >&5
+echo $ECHO_N "checking if group $x exists... $ECHO_C" >&6
+ if $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then
+ echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6; WEB_GROUP=$x ; break
+else
+ echo "$as_me:$LINENO: result: not found" >&5
+echo "${ECHO_T}not found" >&6
+fi
+
+ done
+
+fi;
+
+
+
+# Check whether --with-rt-group or --without-rt-group was given.
+if test "${with_rt_group+set}" = set; then
+ withval="$with_rt_group"
+ RTGROUP=$withval
+else
+
+ RTGROUP=rt
+ for x in rt3 rt $WEB_GROUP; do
+ echo "$as_me:$LINENO: checking if group $x exists" >&5
+echo $ECHO_N "checking if group $x exists... $ECHO_C" >&6
+ if $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then
+ echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6; RTGROUP=$x ; break
+else
+ echo "$as_me:$LINENO: result: not found" >&5
+echo "${ECHO_T}not found" >&6
+fi
+
+ done
+