PREPEND_LIB
PREPEND_INCLUDES
EXTRA_QEMUU_CONFIGURE_ARGS
+ipxe
qemu_xen_systemd
qemu_xen_path
qemu_xen
qemu_traditional
blktap2
LINUX_BACKEND_MODULES
-ipxe
seabios
ovmf
xsmpolicy
enable_xsmpolicy
enable_ovmf
enable_seabios
-enable_ipxe
with_linux_backend_modules
enable_blktap2
enable_qemu_traditional
with_system_qemu
with_system_seabios
with_system_ovmf
+enable_ipxe
with_system_ipxe
with_extra_qemuu_configure_args
with_xenstored
--disable-xsmpolicy Disable XSM policy compilation (default is ENABLED)
--enable-ovmf Enable OVMF (default is DISABLED)
--disable-seabios Disable SeaBIOS (default is ENABLED)
- --disable-ipxe Disable IPXE (default is ENABLED)
--enable-blktap2 Enable blktap2, (DEFAULT is off)
--enable-qemu-traditional
Enable qemu traditional device model, (DEFAULT is on
for Linux or NetBSD x86, otherwise off)
--enable-rombios Enable ROMBIOS, (DEFAULT is on if qemu-traditional
is enabled, otherwise off)
+ --disable-ipxe Enable in-tree IPXE, (DEFAULT is on if rombios is
+ enabled, otherwise off, see also --with-system-ipxe)
--enable-systemd Enable systemd support (default is DISABLED)
Optional Packages:
and installing our own version
--with-system-ipxe[=PATH]
Use system supplied IPXE PATH instead of building
- and installing our own version
+ and installing our own version, it takes precedence
+ over --{en,dis}able-ipxe and is bound by the
+ presence of rombios, --without-system-ipxe is an
+ error
--with-extra-qemuu-configure-args[="--ARG1 ..."]
List of additional configure options for upstream
qemu
-# Check whether --enable-ipxe was given.
-if test "${enable_ipxe+set}" = set; then :
- enableval=$enable_ipxe;
-fi
-
-
-if test "x$enable_ipxe" = "xno"; then :
-
- ax_cv_ipxe="n"
-
-elif test "x$enable_ipxe" = "xyes"; then :
-
- ax_cv_ipxe="y"
-
-elif test -z $ax_cv_ipxe; then :
-
- ax_cv_ipxe="y"
-
-fi
-ipxe=$ax_cv_ipxe
-
-
-
# Check whether --with-linux-backend-modules was given.
if test "${with_linux_backend_modules+set}" = set; then :
_ACEOF
+fi
+
+# Check whether --enable-ipxe was given.
+if test "${enable_ipxe+set}" = set; then :
+ enableval=$enable_ipxe;
+ if test "x$enable_ipxe" = "xno"; then :
+ ipxe=n
+else
+ ipxe=y
+fi
+
+else
+
+ if test "x$enable_rombios" = "xno"; then :
+ ipxe=n
+else
+ ipxe=y
+fi
+
fi
# Check whether --with-system-ipxe was given.
if test "${with_system_ipxe+set}" = set; then :
withval=$with_system_ipxe;
- # Disable compilation of IPXE.
- ipxe=n
case $withval in
- no) ipxe_path= ;;
- /*) ipxe_path=$withval ;;
+ no) as_fn_error $? "--without-system-ipxe has no effect" "$LINENO" 5 ;;
+ /*) ipxe_path=$withval; ipxe=n ;;
*) as_fn_error $? "IPXE specified, but is not an absolute path" "$LINENO" 5 ;;
esac
- # IPXE depends on Rombios
- if test "x$enable_rombios" = "xno"; then
- as_fn_error $? "Rombios is required for using IPXE" "$LINENO" 5
- fi
-
fi
if test "x$ipxe" = "xy" -o -n "$ipxe_path" ; then :
+ if test "x$enable_rombios" = "xno"; then :
+
+ as_fn_error $? "Rombios is required to use IPXE" "$LINENO" 5
+
+fi
+
+
cat >>confdefs.h <<_ACEOF
#define IPXE_PATH "${ipxe_path:-$XENFIRMWAREDIR/ipxe.bin}"
_ACEOF
fi
+
# Check whether --with-extra-qemuu-configure-args was given.
if test "${with_extra_qemuu_configure_args+set}" = set; then :
withval=$with_extra_qemuu_configure_args;
AX_ARG_DEFAULT_ENABLE([xsmpolicy], [Disable XSM policy compilation])
AX_ARG_DEFAULT_DISABLE([ovmf], [Enable OVMF])
AX_ARG_DEFAULT_ENABLE([seabios], [Disable SeaBIOS])
-AX_ARG_DEFAULT_ENABLE([ipxe], [Disable IPXE])
AC_ARG_WITH([linux-backend-modules],
AS_HELP_STRING([--with-linux-backend-modules="mod1 mod2"],
[OVMF path])
])
+AC_ARG_ENABLE([ipxe],
+ AS_HELP_STRING([--disable-ipxe],
+ [Enable in-tree IPXE, (DEFAULT is on if rombios is enabled,
+ otherwise off, see also --with-system-ipxe)]),
+ [
+ AS_IF([test "x$enable_ipxe" = "xno"], [ipxe=n], [ipxe=y])
+ ],
+ [
+ AS_IF([test "x$enable_rombios" = "xno"], [ipxe=n], [ipxe=y])
+])
AC_ARG_WITH([system-ipxe],
AS_HELP_STRING([--with-system-ipxe@<:@=PATH@:>@],
[Use system supplied IPXE PATH instead of building and installing
- our own version]),[
- # Disable compilation of IPXE.
- ipxe=n
+ our own version, it takes precedence over --{en,dis}able-ipxe and is
+ bound by the presence of rombios, --without-system-ipxe is an error]),[
case $withval in
- no) ipxe_path= ;;
- /*) ipxe_path=$withval ;;
+ no) AC_MSG_ERROR([--without-system-ipxe has no effect]) ;;
+ /*) ipxe_path=$withval; ipxe=n ;;
*) AC_MSG_ERROR([IPXE specified, but is not an absolute path]) ;;
esac
-
- # IPXE depends on Rombios
- if test "x$enable_rombios" = "xno"; then
- AC_MSG_ERROR([Rombios is required for using IPXE])
- fi
],[])
AS_IF([test "x$ipxe" = "xy" -o -n "$ipxe_path" ], [
+
+ AS_IF([test "x$enable_rombios" = "xno"], [
+ AC_MSG_ERROR([Rombios is required to use IPXE])
+ ], [])
+
AC_DEFINE_UNQUOTED([IPXE_PATH],
["${ipxe_path:-$XENFIRMWAREDIR/ipxe.bin}"],
[IPXE path])
])
+AC_SUBST(ipxe)
AC_ARG_WITH([extra-qemuu-configure-args],
AS_HELP_STRING([--with-extra-qemuu-configure-args@<:@="--ARG1 ..."@:>@],