summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoraliguori2008-09-26 17:52:17 +0200
committeraliguori2008-09-26 17:52:17 +0200
commit997306fc2246048b9a4e8df4b4bb96eab6c65a82 (patch)
tree659de38c9880f753c6596a3e9d10886503b7c567 /configure
parentRevert r5274 which breaks savevm/loadvm (diff)
downloadqemu-997306fc2246048b9a4e8df4b4bb96eab6c65a82.tar.gz
qemu-997306fc2246048b9a4e8df4b4bb96eab6c65a82.tar.xz
qemu-997306fc2246048b9a4e8df4b4bb96eab6c65a82.zip
Fix build on FreeBSD
__GLIBC_PREREQ is defined in such a way that the ! cannot be used in front of it on FreeBSD. Also, -lpthread is not implied by the build and we definitely use it for compatfd support. While at it, I added a default initialization for posix-aio that seems to perform well in our testing. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5322 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index dd82e881ce..6a727c0a5a 100755
--- a/configure
+++ b/configure
@@ -482,8 +482,10 @@ if test "$mingw32" = "yes" ; then
linux_user="no"
fi
-if [ "$bsd" = "yes" -o "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then
+if [ "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then
AIOLIBS=
+elif [ "$bsd" = "yes" ]; then
+ AIOLIBS="-lpthread"
else
# Some Linux architectures (e.g. s390) don't imply -lpthread automatically.
AIOLIBS="-lrt -lpthread"