mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Add configure --with-initddir=DIR
Preserve existing behaviour: Fedora gets rc.d/init.d, BSD gets rc.d, everyone else gets init.d. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> [ ijc -- ran autogen.sh as requested ]
This commit is contained in:
1 parent
49d74ed445
commit
a3b5920658
6 files changed
+82
-3
No files matched your search
@@ -76,7 +76,6 @@ endef
|
|||||||
|
|
||||||
# See distro_mapping.txt for other options
|
# See distro_mapping.txt for other options
|
||||||
$(eval $(call setvar_dir,CONFIG_LEAF_DIR,,/etc/sysconfig,sysconfig,default))
|
$(eval $(call setvar_dir,CONFIG_LEAF_DIR,,/etc/sysconfig,sysconfig,default))
|
||||||
$(eval $(call setvar_dir,INITD_DIR,/etc,/rc.d/init.d,/rc.d/init.d,/init.d))
|
|
||||||
|
|
||||||
ifneq ($(EXTRA_PREFIX),)
|
ifneq ($(EXTRA_PREFIX),)
|
||||||
EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
|
EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ XEN_LOG_DIR := @XEN_LOG_DIR@
|
|||||||
XEN_LIB_STORED := @XEN_LIB_STORED@
|
XEN_LIB_STORED := @XEN_LIB_STORED@
|
||||||
|
|
||||||
CONFIG_DIR := @CONFIG_DIR@
|
CONFIG_DIR := @CONFIG_DIR@
|
||||||
|
INITD_DIR := @INITD_DIR@
|
||||||
XEN_LOCK_DIR := @XEN_LOCK_DIR@
|
XEN_LOCK_DIR := @XEN_LOCK_DIR@
|
||||||
XEN_PAGING_DIR := @XEN_PAGING_DIR@
|
XEN_PAGING_DIR := @XEN_PAGING_DIR@
|
||||||
|
|
||||||
|
|||||||
@@ -598,6 +598,7 @@ XEN_PAGING_DIR
|
|||||||
XEN_LOCK_DIR
|
XEN_LOCK_DIR
|
||||||
XEN_SCRIPT_DIR
|
XEN_SCRIPT_DIR
|
||||||
XEN_CONFIG_DIR
|
XEN_CONFIG_DIR
|
||||||
|
INITD_DIR
|
||||||
CONFIG_DIR
|
CONFIG_DIR
|
||||||
XENFIRMWAREDIR
|
XENFIRMWAREDIR
|
||||||
PRIVATE_BINDIR
|
PRIVATE_BINDIR
|
||||||
@@ -660,6 +661,7 @@ SHELL'
|
|||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
|
with_initddir
|
||||||
enable_xen
|
enable_xen
|
||||||
enable_tools
|
enable_tools
|
||||||
enable_stubdom
|
enable_stubdom
|
||||||
@@ -1289,6 +1291,12 @@ Optional Features:
|
|||||||
--enable-stubdom Enable build and install of stubdom
|
--enable-stubdom Enable build and install of stubdom
|
||||||
--disable-docs Disable build and install of docs
|
--disable-docs Disable build and install of docs
|
||||||
|
|
||||||
|
Optional Packages:
|
||||||
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||||
|
--with-initddir=DIR Path to directory with sysv runlevel scripts.
|
||||||
|
[SYSCONFDIR/init.d]
|
||||||
|
|
||||||
Report bugs to <xen-devel@lists.xen.org>.
|
Report bugs to <xen-devel@lists.xen.org>.
|
||||||
Xen Hypervisor home page: <http://www.xen.org/>.
|
Xen Hypervisor home page: <http://www.xen.org/>.
|
||||||
_ACEOF
|
_ACEOF
|
||||||
@@ -1870,6 +1878,26 @@ if test "x$sysconfdir" = 'x${prefix}/etc' ; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-initddir was given.
|
||||||
|
if test "${with_initddir+set}" = set; then :
|
||||||
|
withval=$with_initddir; initddir_path=$withval
|
||||||
|
else
|
||||||
|
case "$host_os" in
|
||||||
|
*linux*)
|
||||||
|
if test -d $sysconfdir/rc.d/init.d ; then
|
||||||
|
initddir_path=$sysconfdir/rc.d/init.d
|
||||||
|
else
|
||||||
|
initddir_path=$sysconfdir/init.d
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
initddir_path=$sysconfdir/rc.d
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
BINDIR=$prefix/bin
|
BINDIR=$prefix/bin
|
||||||
|
|
||||||
|
|
||||||
@@ -1909,6 +1937,9 @@ XENFIRMWAREDIR=$prefix/lib/xen/boot
|
|||||||
CONFIG_DIR=$sysconfdir
|
CONFIG_DIR=$sysconfdir
|
||||||
|
|
||||||
|
|
||||||
|
INITD_DIR=$initddir_path
|
||||||
|
|
||||||
|
|
||||||
XEN_CONFIG_DIR=$CONFIG_DIR/xen
|
XEN_CONFIG_DIR=$CONFIG_DIR/xen
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,9 @@ build host, via the "setvar_dir" macro in Config.mk) and for some
|
|||||||
scripts at run-time. If the Red Hat directory exists, it is used;
|
scripts at run-time. If the Red Hat directory exists, it is used;
|
||||||
otherwise the Debian one is used.
|
otherwise the Debian one is used.
|
||||||
|
|
||||||
You can override this by setting the variables in the environment or
|
The INITD_DIR path can be changed with configure --with-initddir=DIR.
|
||||||
your ".config" (which is included by .config).
|
The CONFIG_LEAF_DIR path can be changed by setting the variables in
|
||||||
|
the environment or your ".config" (which is included by Config.mk).
|
||||||
|
|
||||||
To add support for new distributions that don't use the above locations,
|
To add support for new distributions that don't use the above locations,
|
||||||
one must grep for the above elements and add appropriate checks.
|
one must grep for the above elements and add appropriate checks.
|
||||||
|
|||||||
+20
@@ -22,6 +22,23 @@ if test "x$sysconfdir" = 'x${prefix}/etc' ; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_ARG_WITH([initddir],
|
||||||
|
AS_HELP_STRING([--with-initddir=DIR],
|
||||||
|
[Path to directory with sysv runlevel scripts. [SYSCONFDIR/init.d]]),
|
||||||
|
[initddir_path=$withval],
|
||||||
|
[case "$host_os" in
|
||||||
|
*linux*)
|
||||||
|
if test -d $sysconfdir/rc.d/init.d ; then
|
||||||
|
initddir_path=$sysconfdir/rc.d/init.d
|
||||||
|
else
|
||||||
|
initddir_path=$sysconfdir/init.d
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
initddir_path=$sysconfdir/rc.d
|
||||||
|
;;
|
||||||
|
esac])
|
||||||
|
|
||||||
BINDIR=$prefix/bin
|
BINDIR=$prefix/bin
|
||||||
AC_SUBST(BINDIR)
|
AC_SUBST(BINDIR)
|
||||||
|
|
||||||
@@ -63,6 +80,9 @@ AC_SUBST(XENFIRMWAREDIR)
|
|||||||
CONFIG_DIR=$sysconfdir
|
CONFIG_DIR=$sysconfdir
|
||||||
AC_SUBST(CONFIG_DIR)
|
AC_SUBST(CONFIG_DIR)
|
||||||
|
|
||||||
|
INITD_DIR=$initddir_path
|
||||||
|
AC_SUBST(INITD_DIR)
|
||||||
|
|
||||||
XEN_CONFIG_DIR=$CONFIG_DIR/xen
|
XEN_CONFIG_DIR=$CONFIG_DIR/xen
|
||||||
AC_SUBST(XEN_CONFIG_DIR)
|
AC_SUBST(XEN_CONFIG_DIR)
|
||||||
|
|
||||||
|
|||||||
Vendored
+27
@@ -711,6 +711,7 @@ XEN_PAGING_DIR
|
|||||||
XEN_LOCK_DIR
|
XEN_LOCK_DIR
|
||||||
XEN_SCRIPT_DIR
|
XEN_SCRIPT_DIR
|
||||||
XEN_CONFIG_DIR
|
XEN_CONFIG_DIR
|
||||||
|
INITD_DIR
|
||||||
CONFIG_DIR
|
CONFIG_DIR
|
||||||
XENFIRMWAREDIR
|
XENFIRMWAREDIR
|
||||||
PRIVATE_BINDIR
|
PRIVATE_BINDIR
|
||||||
@@ -783,6 +784,7 @@ ac_subst_files=''
|
|||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_largefile
|
enable_largefile
|
||||||
|
with_initddir
|
||||||
enable_githttp
|
enable_githttp
|
||||||
enable_monitors
|
enable_monitors
|
||||||
enable_ocamltools
|
enable_ocamltools
|
||||||
@@ -1472,6 +1474,8 @@ Optional Features:
|
|||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||||
|
--with-initddir=DIR Path to directory with sysv runlevel scripts.
|
||||||
|
[SYSCONFDIR/init.d]
|
||||||
--with-system-qemu[=PATH]
|
--with-system-qemu[=PATH]
|
||||||
Use system supplied qemu PATH or qemu (taken from
|
Use system supplied qemu PATH or qemu (taken from
|
||||||
$PATH) as qemu-xen device model instead of building
|
$PATH) as qemu-xen device model instead of building
|
||||||
@@ -3709,6 +3713,26 @@ if test "x$sysconfdir" = 'x${prefix}/etc' ; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-initddir was given.
|
||||||
|
if test "${with_initddir+set}" = set; then :
|
||||||
|
withval=$with_initddir; initddir_path=$withval
|
||||||
|
else
|
||||||
|
case "$host_os" in
|
||||||
|
*linux*)
|
||||||
|
if test -d $sysconfdir/rc.d/init.d ; then
|
||||||
|
initddir_path=$sysconfdir/rc.d/init.d
|
||||||
|
else
|
||||||
|
initddir_path=$sysconfdir/init.d
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
initddir_path=$sysconfdir/rc.d
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
BINDIR=$prefix/bin
|
BINDIR=$prefix/bin
|
||||||
|
|
||||||
|
|
||||||
@@ -3748,6 +3772,9 @@ XENFIRMWAREDIR=$prefix/lib/xen/boot
|
|||||||
CONFIG_DIR=$sysconfdir
|
CONFIG_DIR=$sysconfdir
|
||||||
|
|
||||||
|
|
||||||
|
INITD_DIR=$initddir_path
|
||||||
|
|
||||||
|
|
||||||
XEN_CONFIG_DIR=$CONFIG_DIR/xen
|
XEN_CONFIG_DIR=$CONFIG_DIR/xen
|
||||||
|
|
||||||
|
|
||||||
|
|||||||