fixed QEMU install on systems where python -> python3

This commit is contained in:
Michael Rodler 2016-05-04 19:55:11 +02:00
parent 5c5b5a1647
commit 8fecb78387

View file

@ -2,6 +2,10 @@
curl http://wiki.qemu-project.org/download/qemu-2.4.0.1.tar.bz2 | tar xj
cd qemu-2.4.0.1
./configure --prefix=$(dirname $PWD)
if [[ "$(python --version 2>&1)" =~ Python\ 3 ]]; then
./configure "--prefix=$(dirname $PWD)" "--python=$(which python2)"
else
./configure "--prefix=$(dirname $PWD)"
fi
make -j $(nproc)
make install