summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRiku Voipio2009-08-12 14:08:24 +0200
committerRiku Voipio2009-08-25 16:15:26 +0200
commitc2882b96545eeabf16767c6effa836e6f9991018 (patch)
treeb49382d3bbe58cdb763328ec2b4b713d0a095020 /configure
parentARM back-end: Fix encode_imm (diff)
downloadqemu-c2882b96545eeabf16767c6effa836e6f9991018.tar.gz
qemu-c2882b96545eeabf16767c6effa836e6f9991018.tar.xz
qemu-c2882b96545eeabf16767c6effa836e6f9991018.zip
linux-user: add eventfd support
Straightforward implementation. This syscall is rare enough that we don't need to support the odder cases, just disable it if host glibc is too old. Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index 5c1065f54b..56dd489a34 100755
--- a/configure
+++ b/configure
@@ -1322,6 +1322,21 @@ if compile_prog "" "" ; then
splice=yes
fi
+# check if eventfd is supported
+eventfd=no
+cat > $TMPC << EOF
+#include <sys/eventfd.h>
+
+int main(void)
+{
+ int efd = eventfd(0, 0);
+ return 0;
+}
+EOF
+if compile_prog "" "" ; then
+ eventfd=yes
+fi
+
# Check if tools are available to build documentation.
if test "$build_docs" = "yes" -a \( ! -x "`which texi2html 2>/dev/null`" -o ! -x "`which pod2man 2>/dev/null`" \) ; then
build_docs="no"
@@ -1659,6 +1674,9 @@ fi
if test "$splice" = "yes" ; then
echo "CONFIG_SPLICE=y" >> $config_host_mak
fi
+if test "$eventfd" = "yes" ; then
+ echo "CONFIG_EVENTFD=y" >> $config_host_mak
+fi
if test "$inotify" = "yes" ; then
echo "CONFIG_INOTIFY=y" >> $config_host_mak
fi