aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-10-21 13:36:49 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-21 13:36:49 -0500
commit102251a4f30d7a8187a029a49eb0dfadb6ac8087 (patch)
tree9d06128a6269097fb77b729267191d35ee5f4538 /configure
parentqdev: add string property. (diff)
parentRe: linux-user/syscall.c - don't add GUEST_BASE to NULL pointer (diff)
downloadqemu-kvm-102251a4f30d7a8187a029a49eb0dfadb6ac8087.tar.gz
qemu-kvm-102251a4f30d7a8187a029a49eb0dfadb6ac8087.tar.bz2
qemu-kvm-102251a4f30d7a8187a029a49eb0dfadb6ac8087.zip
Merge commit 'linux-user/linux-user-for-upstream' into staging
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure36
1 files changed, 36 insertions, 0 deletions
diff --git a/configure b/configure
index 7775b1b42..43d87c527 100755
--- a/configure
+++ b/configure
@@ -1569,6 +1569,36 @@ if compile_prog "" "" ; then
eventfd=yes
fi
+# check for fallocate
+fallocate=no
+cat > $TMPC << EOF
+#include <fcntl.h>
+
+int main(void)
+{
+ fallocate(0, 0, 0, 0);
+ return 0;
+}
+EOF
+if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+ fallocate=yes
+fi
+
+# check for dup3
+dup3=no
+cat > $TMPC << EOF
+#include <unistd.h>
+
+int main(void)
+{
+ dup3(0, 0, 0);
+ return 0;
+}
+EOF
+if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+ dup3=yes
+fi
+
# Check if tools are available to build documentation.
if test "$docs" != "no" ; then
if test -x "`which texi2html 2>/dev/null`" -a \
@@ -1967,6 +1997,12 @@ fi
if test "$eventfd" = "yes" ; then
echo "CONFIG_EVENTFD=y" >> $config_host_mak
fi
+if test "$fallocate" = "yes" ; then
+ echo "CONFIG_FALLOCATE=y" >> $config_host_mak
+fi
+if test "$dup3" = "yes" ; then
+ echo "CONFIG_DUP3=y" >> $config_host_mak
+fi
if test "$inotify" = "yes" ; then
echo "CONFIG_INOTIFY=y" >> $config_host_mak
fi