+dnl RTGROUP
+AC_ARG_WITH(rt-group,
+ AC_HELP_STRING([--with-rt-group=GROUP],
+ [group to own all files (default: rt)]),
+ RTGROUP=$withval,
+ ACRT_GROUP_GUESS([rt3 rt $WEB_GROUP],[RTGROUP], [rt]))
+AC_SUBST(RTGROUP)
+
+dnl INSTALL AS ME
+# XXX TODO: The command below to figure out the group brokenly relies on
+# output order (and "id -gn" doesn't work on all platforms).
+my_group=$(groups|cut -f1 -d' ')
+my_user=${USER:-$LOGNAME}
+AC_ARG_WITH(my-user-group,
+ AC_HELP_STRING([--with-my-user-group],
+ [set all users and groups to current user/group]),
+ RTGROUP=$my_group
+ BIN_OWNER=$my_user
+ LIBS_OWNER=$my_user
+ LIBS_GROUP=$my_group
+ WEB_USER=$my_user
+ WEB_GROUP=$my_group)
+
+# Test for valid database names
+AS_IF([ test "$DB_TYPE" == "mysql" ],
+ [ AC_MSG_CHECKING([if database name is valid])
+ AS_IF([ echo $DB_DATABASE | $AWK '/-/ { exit 1 }' ],
+ [ AC_MSG_RESULT([yes]) ],
+ [ AC_MSG_ERROR([no. database name ($DB_DATABASE) contains '-' which is not valid for mysql]) ]
+ )
+ ]
+ )
+
+
+dnl Set the value of apachectl
+AC_ARG_WITH(apachectl,
+ AC_HELP_STRING([--with-apachectl],
+ [instruct RT where to find your apachectl]),
+
+ APACHECTL=$withval,
+ APACHECTL=`which apachectl`)
+AC_SUBST(APACHECTL)
+
+dnl RT's standalone pure perl server
+AC_ARG_WITH(devel-mode,
+ AC_HELP_STRING([--with-standalone],
+ [Install modules for pure perl standalone server]),
+
+ RT_STANDALONE="1",
+ RT_STANDALONE="0")
+AC_SUBST(RT_STANDALONE)
+
+dnl RT's "maintainer mode"
+AC_ARG_WITH(devel-mode,
+ AC_HELP_STRING([--with-devel-mode],
+ [Turn on development aids that might hurt you in production]),
+
+ RT_DEVEL_MODE="1",
+ RT_DEVEL_MODE="0")
+AC_SUBST(RT_DEVEL_MODE)