2 dnl @synopsis RT_ENABLE_LAYOUT()
4 dnl Enable a specific directory layout for the installation to use.
5 dnl This configures a command-line parameter that can be specified
6 dnl at ./configure invocation.
8 dnl The use of this feature in this way is a little hackish, but
9 dnl better than a heap of options for every directory.
11 dnl This code is heavily borrowed *cough* from the Apache 2 code.
14 AC_DEFUN([RT_ENABLE_LAYOUT],[
16 AC_HELP_STRING([--enable-layout=LAYOUT],
17 [Use a specific directory layout (Default: RT3)]),
20 if test "x$LAYOUT" = "x"; then
23 RT_LAYOUT($srcdir/config.layout, $LAYOUT)
24 AC_MSG_CHECKING(for chosen layout)
25 if test "x$rt_layout_name" = "xno"; then
26 if test "x$LAYOUT" = "xno"; then
29 AC_MSG_RESULT($LAYOUT)
31 AC_MSG_ERROR([a valid layout must be specified (or the default used)])
33 AC_SUBST(rt_layout_name)
34 AC_MSG_RESULT($rt_layout_name)