mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
build: add --with-rundir option to configure
There have been reports that Fedora 25 uses /run instead of /var/run. Add a --with-rundir option ito configure to be able to specify that directory. Default is still /var/run. A re-run of autogen.sh is required. Signed-off-by: Juergen Gross <jgross@suse.com> [ wei: run autogen.sh ] Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
06d9991b0a
commit
0eb11f13d6
4 files changed
+50
-8
No files matched your search
Vendored
+14
-2
@@ -658,6 +658,7 @@ with_initddir
|
||||
with_sysconfig_leaf_dir
|
||||
with_libexec_leaf_dir
|
||||
with_xen_dumpdir
|
||||
with_rundir
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1288,6 +1289,8 @@ Optional Packages:
|
||||
Name of subdirectory in libexecdir to use.
|
||||
--with-xen-dumpdir=DIR Path to directory for domU crash dumps.
|
||||
[LOCALSTATEDIR/lib/xen/dump]
|
||||
--with-rundir=DIR Path to directory for runtime data.
|
||||
[LOCALSTATEDIR/run]
|
||||
|
||||
Some influential environment variables:
|
||||
FIG2DEV Path to fig2dev tool
|
||||
@@ -1859,6 +1862,15 @@ else
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Check whether --with-rundir was given.
|
||||
if test "${with_rundir+set}" = set; then :
|
||||
withval=$with_rundir; rundir_path=$withval
|
||||
else
|
||||
rundir_path=$localstatedir/run
|
||||
fi
|
||||
|
||||
|
||||
if test "$libexecdir" = '${exec_prefix}/libexec' ; then
|
||||
case "$host_os" in
|
||||
*netbsd*) ;;
|
||||
@@ -1879,7 +1891,7 @@ LIBEXEC_INC=${LIBEXEC}/include
|
||||
XENFIRMWAREDIR=${LIBEXEC}/boot
|
||||
|
||||
|
||||
XEN_RUN_DIR=$localstatedir/run/xen
|
||||
XEN_RUN_DIR=$rundir_path/xen
|
||||
|
||||
|
||||
XEN_LOG_DIR=$localstatedir/log/xen
|
||||
@@ -1888,7 +1900,7 @@ XEN_LOG_DIR=$localstatedir/log/xen
|
||||
XEN_LIB_STORED=$localstatedir/lib/xenstored
|
||||
|
||||
|
||||
XEN_RUN_STORED=$localstatedir/run/xenstored
|
||||
XEN_RUN_STORED=$rundir_path/xenstored
|
||||
|
||||
|
||||
XEN_LIB_DIR=$localstatedir/lib/xen
|
||||
|
||||