mirror of
https://git.proxmox.com/git/qemu
synced 2025-06-28 04:32:07 +00:00
configure: avoid using expr
Just a personal preference against duplicating hieroglyphics. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
a447d4dc56
commit
f55fe2785c
11
configure
vendored
11
configure
vendored
@ -928,6 +928,13 @@ if test -z "$target_list" ; then
|
|||||||
echo "No targets enabled"
|
echo "No targets enabled"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
# see if system emulation was really requested
|
||||||
|
case " $target_list " in
|
||||||
|
*"-softmmu "*) softmmu=yes
|
||||||
|
;;
|
||||||
|
*) softmmu=no
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
feature_not_found() {
|
feature_not_found() {
|
||||||
feature=$1
|
feature=$1
|
||||||
@ -2282,7 +2289,7 @@ bsd)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
tools=
|
tools=
|
||||||
if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
|
if test "$softmmu" = yes ; then
|
||||||
tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
|
tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
|
||||||
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
|
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
|
||||||
tools="qemu-nbd\$(EXESUF) $tools"
|
tools="qemu-nbd\$(EXESUF) $tools"
|
||||||
@ -2298,7 +2305,7 @@ echo "TOOLS=$tools" >> $config_host_mak
|
|||||||
roms=
|
roms=
|
||||||
if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a \
|
if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a \
|
||||||
"$targetos" != "Darwin" -a "$targetos" != "SunOS" -a \
|
"$targetos" != "Darwin" -a "$targetos" != "SunOS" -a \
|
||||||
`expr "$target_list" : ".*softmmu.*"` != 0 ; then
|
"$softmmu" = yes ; then
|
||||||
roms="optionrom"
|
roms="optionrom"
|
||||||
fi
|
fi
|
||||||
echo "ROMS=$roms" >> $config_host_mak
|
echo "ROMS=$roms" >> $config_host_mak
|
||||||
|
Loading…
Reference in New Issue
Block a user