@@ -181,7 +181,8 @@ endef
BUILD_MAKE_VARS := sbindir bindir LIBEXEC LIBEXEC_BIN libdir SHAREDIR \
XENFIRMWAREDIR XEN_CONFIG_DIR XEN_SCRIPT_DIR XEN_LOCK_DIR \
- XEN_RUN_DIR XEN_PAGING_DIR XEN_DUMP_DIR XEN_LOG_DIR
+ XEN_RUN_DIR XEN_PAGING_DIR XEN_DUMP_DIR XEN_LOG_DIR \
+ XEN_LIB_DIR
buildmakevars2file = $(eval $(call buildmakevars2file-closure,$(1)))
define buildmakevars2file-closure
@@ -40,6 +40,7 @@ MAN8DIR := $(mandir)/man8
XEN_RUN_DIR := @XEN_RUN_DIR@
XEN_LOG_DIR := @XEN_LOG_DIR@
+XEN_LIB_DIR := @XEN_LIB_DIR@
XEN_LIB_STORED := @XEN_LIB_STORED@
CONFIG_DIR := @CONFIG_DIR@
@@ -603,6 +603,7 @@ XEN_CONFIG_DIR
INITD_DIR
CONFIG_DIR
SHAREDIR
+XEN_LIB_DIR
XEN_LIB_STORED
XEN_LOG_DIR
XEN_RUN_DIR
@@ -1980,6 +1981,9 @@ XEN_LOG_DIR=$localstatedir/log/xen
XEN_LIB_STORED=$localstatedir/lib/xenstored
+XEN_LIB_DIR=$localstatedir/lib/xen
+
+
SHAREDIR=$prefix/share
@@ -107,6 +107,9 @@ AC_SUBST(XEN_LOG_DIR)
XEN_LIB_STORED=$localstatedir/lib/xenstored
AC_SUBST(XEN_LIB_STORED)
+XEN_LIB_DIR=$localstatedir/lib/xen
+AC_SUBST(XEN_LIB_DIR)
+
SHAREDIR=$prefix/share
AC_SUBST(SHAREDIR)
@@ -722,6 +722,7 @@ XEN_CONFIG_DIR
INITD_DIR
CONFIG_DIR
SHAREDIR
+XEN_LIB_DIR
XEN_LIB_STORED
XEN_LOG_DIR
XEN_RUN_DIR
@@ -3939,6 +3940,9 @@ XEN_LOG_DIR=$localstatedir/log/xen
XEN_LIB_STORED=$localstatedir/lib/xenstored
+XEN_LIB_DIR=$localstatedir/lib/xen
+
+
SHAREDIR=$prefix/share
This variable defaults to /var/lib/xen. It will be used to substitute various hard-coded paths in tools. The new variable points to $localstatedir/lib/xen, which defaults to /var/lib/xen, so there is no change in default configuration. Signed-off-by: Wei Liu <wei.liu2@citrix.com> --- Cc: Ian Jackson <ian.jackson@eu.citrix.com> Need to rerun autogen.sh --- Config.mk | 3 ++- config/Paths.mk.in | 1 + configure | 4 ++++ m4/paths.m4 | 3 +++ tools/configure | 4 ++++ 5 files changed, 14 insertions(+), 1 deletion(-)