gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11398: look for Linux specific sysc


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11398: look for Linux specific syscalls for high-performance, kernel based, I/O.
Date: Tue, 25 Aug 2009 18:50:34 -0000
User-agent: Bazaar (1.16.1)

------------------------------------------------------------
revno: 11398
committer: address@hidden
branch nick: trunk
timestamp: Sat 2009-08-08 10:59:10 -0600
message:
  look for Linux specific syscalls for high-performance, kernel based, I/O.
modified:
  cygnal/acinclude.m4
=== modified file 'cygnal/acinclude.m4'
--- a/cygnal/acinclude.m4       2009-08-04 17:39:22 +0000
+++ b/cygnal/acinclude.m4       2009-08-08 16:59:10 +0000
@@ -43,6 +43,35 @@
 
 AC_CHECK_HEADERS(poll.h epoll.h)
 
+dnl AC_CHECK_HEADERS(sys/sendfile)
+AC_TRY_COMPILE([#include <sys/sendfile.h>], [
+    sendfile(0, 0, 0, 0); ],
+    has_sendfile=yes,
+    has_sendfile=no
+)
+if test x${has_sendfile} = xyes; then
+   AC_DEFINE(HAVE_SENDFILE, [1], [Has the Linux sendfile() system call])
+fi
+
 dnl Look for the various ways of blocking while waiting for I/O
 AC_CHECK_FUNCS(pselect ppoll)
+
+AC_TRY_COMPILE([#include <fcntl.h>], [
+    splice(0, 0, 0, 0); ],
+    has_splice=yes,
+    has_splice=no
+)
+if test x${has_splice} = xyes; then
+   AC_DEFINE(HAVE_FCNTL_SPLICE, [1], [Has the Linux splice() system call])
+fi
+
+AC_TRY_COMPILE([#include <fcntl.h>], [
+    tee(0, 0, 0, 0); ],
+    has_tee=yes,
+    has_tee=no
+)
+if test x${has_tee} = xyes; then
+   AC_DEFINE(HAVE_FCNTL_TEE, [1], [Has the Linux tee() system call])
+fi
+
 ])


reply via email to

[Prev in Thread] Current Thread [Next in Thread]