From: Andrian Nord Date: Tue, 17 Nov 2009 09:56:23 +0000 (+0100) Subject: Choose configuration directory X-Git-Tag: lxc_0_6_4~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aef4ebcf22406cb0b14fe0dd32acf3b936522d5e;p=thirdparty%2Flxc.git Choose configuration directory Maybe it will be more logical to keep configs into /etc/lxc/? Or, maybe, just use --with-config-path=/some/path switch into configure, which could be overridden as user wants to? Something like this one (in assumption, that this is up to user to create corresponding directory): Signed-off-by: Andrian Nord Signed-off-by: Daniel Lezcano --- diff --git a/configure.ac b/configure.ac index 2713053c7..4be78a37f 100644 --- a/configure.ac +++ b/configure.ac @@ -39,9 +39,15 @@ AS_AC_EXPAND(LIBEXECDIR, $libexecdir) AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) AS_AC_EXPAND(DATADIR, $datadir) AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir) -AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc") -AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)") +AC_ARG_WITH([config-path], + [AC_HELP_STRING( + [--with-config-path=dir], + [lxc configuration repository] + )], [], [with_config_path="${localstatedir}/lib/lxc"]) + +AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)") +AS_AC_EXPAND(LXCPATH, "${with_config_path}") AH_TEMPLATE([LXCPATH], [lxc configuration repository]) AH_TEMPLATE([LXCLIBEXECDIR], [lxc executable library path]) AC_DEFINE_UNQUOTED(LXCPATH, "$LXCPATH")