tools/configure: fix --with-system-{ovmf/seabios}

Currently configure code doesn't define {SEABIOS/OVMF}_PATH when
--with-system-{ovmf/seabios} is used. Fix this by making sure those
defines are always set if the internal {ovmf/seabios}_path variables are
also set.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Suggested-by: Wei Liu <wei.liu2@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
[ wei: run autogen.sh ]
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Roger Pau Monne authored and Wei Liu committed 2016-09-27 10:37:05 +01:00
1 parent 6a304607b9
commit ecee7bfc18
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -4449,7 +4449,7 @@ if test "${with_system_seabios+set}" = set; then :
fi
if test "x$seabios" = "xy"; then :
if test "x$seabios" = "xy" -o -n "$seabios_path" ; then :
cat >>confdefs.h <<_ACEOF
@@ -4472,7 +4472,7 @@ if test "${with_system_ovmf+set}" = set; then :
fi
if test "x$ovmf" = "xy"; then :
if test "x$ovmf" = "xy" -o -n "$ovmf_path" ; then :
cat >>confdefs.h <<_ACEOF
+2 -2
View File
@@ -222,7 +222,7 @@ AC_ARG_WITH([system-seabios],
*) seabios_path=$withval ;;
esac
],[])
AS_IF([test "x$seabios" = "xy"], [
AS_IF([test "x$seabios" = "xy" -o -n "$seabios_path" ], [
AC_DEFINE_UNQUOTED([SEABIOS_PATH],
["${seabios_path:-$XENFIRMWAREDIR/seabios.bin}"],
[SeaBIOS path])
@@ -239,7 +239,7 @@ AC_ARG_WITH([system-ovmf],
*) ovmf_path=$withval ;;
esac
],[])
AS_IF([test "x$ovmf" = "xy"], [
AS_IF([test "x$ovmf" = "xy" -o -n "$ovmf_path" ], [
AC_DEFINE_UNQUOTED([OVMF_PATH],
["${ovmf_path:-$XENFIRMWAREDIR/ovmf.bin}"],
[OVMF path])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.