summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKamil Rytarowski2017-07-14 10:33:45 +0200
committerPeter Maydell2017-07-20 15:58:19 +0200
commitb1449edb799909f531b806538c48dc86d701c4b2 (patch)
treea1acc0830ac89f8153d7c051fb5479ce2aaf7f73 /configure
parentconfigure: Use an explicit CONFIG_IVSHMEM rather than CONFIG_EVENTFD (diff)
downloadqemu-b1449edb799909f531b806538c48dc86d701c4b2.tar.gz
qemu-b1449edb799909f531b806538c48dc86d701c4b2.tar.xz
qemu-b1449edb799909f531b806538c48dc86d701c4b2.zip
configure: Don't build ivshmem tools unless CONFIG_IVSHMEM is set
Don't try to build the ivshmem-server and ivshmem-client tools unless CONFIG_IVSHMEM is set. This fixes in passing a build bug on NetBSD, which fails to build the ivshmem tools because they use shm_open() and on NetBSD that requires linking against -lrt. Signed-off-by: Kamil Rytarowski <n54@gmx.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1500021225-4118-4-git-send-email-peter.maydell@linaro.org [PMM: moved some code into earlier patches; minor bugfixes; added commit message] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index dbd131318f..c573a777fc 100755
--- a/configure
+++ b/configure
@@ -5048,6 +5048,8 @@ if test "$want_tools" = "yes" ; then
tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
tools="qemu-nbd\$(EXESUF) $tools"
+ fi
+ if [ "$ivshmem" = "yes" ]; then
tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools"
fi
fi