mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
This is the defacto (or FHS mandated?) standard location for software built from source, in order to avoid clashing with packaged software which is installed under /usr/bin etc. I think there is benefit in having Xen's install behave more like the majority of other OSS software out there. The major downside here is in the transition from 4.2 to 4.3 where people who have built from source will innevitably discover breakage because 4.3 no longer overwrites stuff in /usr like it used to so they pickup old stale bits from /usr instead of new stuff from /usr/local. Packages will use ./configure --prefix=/usr or whatever helper macro their package manager gives them. I have confirmed that doing this results in the same list of installed files as before this patch was applied. The hypervisor remains in /boot/ and there is no intention to move it. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Matt Wilson <msw@amazon.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
61 lines
2.5 KiB
Plaintext
61 lines
2.5 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.67])
|
|
AC_INIT([Xen Hypervisor Stub Domains], m4_esyscmd([../version.sh ../xen/Makefile]),
|
|
[xen-devel@lists.xen.org], [xen], [http://www.xen.org/])
|
|
AC_CONFIG_SRCDIR([../extras/mini-os/kernel.c])
|
|
AC_CONFIG_FILES([../config/Stubdom.mk])
|
|
AC_CONFIG_AUX_DIR([../])
|
|
|
|
# M4 Macro includes
|
|
m4_include([../m4/stubdom.m4])
|
|
m4_include([../m4/features.m4])
|
|
m4_include([../m4/path_or_fail.m4])
|
|
m4_include([../m4/depends.m4])
|
|
|
|
# Enable/disable stub domains
|
|
AX_STUBDOM_DEFAULT_ENABLE([ioemu-stubdom], [ioemu])
|
|
AX_STUBDOM_DEFAULT_DISABLE([c-stubdom], [c])
|
|
AX_STUBDOM_DEFAULT_DISABLE([caml-stubdom], [caml])
|
|
AX_STUBDOM_DEFAULT_ENABLE([pv-grub], [grub])
|
|
AX_STUBDOM_DEFAULT_ENABLE([xenstore-stubdom], [xenstore])
|
|
AX_STUBDOM_CONDITIONAL([vtpm-stubdom], [vtpm])
|
|
AX_STUBDOM_CONDITIONAL([vtpmmgr-stubdom], [vtpmmgr])
|
|
|
|
AX_ARG_DEFAULT_ENABLE([debug], [Disable debug build of stubdom])
|
|
AX_ARG_DEFAULT_ENABLE([extfiles], [Use xen extfiles repository for libraries])
|
|
|
|
AC_ARG_VAR([CMAKE], [Path to the cmake program])
|
|
AC_ARG_VAR([WGET], [Path to wget program])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_MAKE_SET
|
|
AC_PROG_INSTALL
|
|
AX_PATH_PROG_OR_FAIL([WGET], [wget])
|
|
|
|
# Checks for programs that depend on a feature
|
|
AX_DEPENDS_PATH_PROG([vtpm], [CMAKE], [cmake])
|
|
|
|
# Stubdom libraries version and url setup
|
|
AX_STUBDOM_LIB([ZLIB], [zlib], [1.2.3], [http://www.zlib.net])
|
|
AX_STUBDOM_LIB([LIBPCI], [libpci], [2.2.9], [http://www.kernel.org/pub/software/utils/pciutils])
|
|
AX_STUBDOM_LIB([NEWLIB], [newlib], [1.16.0], [ftp://sources.redhat.com/pub/newlib])
|
|
AX_STUBDOM_LIB([LWIP], [lwip], [1.3.0], [http://download.savannah.gnu.org/releases/lwip])
|
|
AX_STUBDOM_LIB([GRUB], [grub], [0.97], [http://alpha.gnu.org/gnu/grub])
|
|
AX_STUBDOM_LIB_NOEXT([OCAML], [ocaml], [3.11.0], [http://caml.inria.fr/pub/distrib/ocaml-3.11])
|
|
AX_STUBDOM_LIB([GMP], [libgmp], [4.3.2], [ftp://ftp.gmplib.org/pub/gmp-4.3.2])
|
|
AX_STUBDOM_LIB([POLARSSL], [polarssl], [1.1.4], [http://polarssl.org/code/releases])
|
|
AX_STUBDOM_LIB([TPMEMU], [berlios tpm emulator], [0.7.4], [http://download.berlios.de/tpm-emulator])
|
|
|
|
#These stubdoms should be enabled if the dependent one is
|
|
AX_STUBDOM_AUTO_DEPENDS([vtpmmgr], [vtpm])
|
|
|
|
#Conditionally enable these stubdoms based on the presense of dependencies
|
|
AX_STUBDOM_CONDITIONAL_FINISH([vtpm-stubdom], [vtpm])
|
|
AX_STUBDOM_CONDITIONAL_FINISH([vtpmmgr-stubdom], [vtpmmgr])
|
|
|
|
AX_STUBDOM_FINISH
|
|
AC_OUTPUT()
|