about summary refs log tree commit homepage
path: root/configure.ac
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-02-21 17:05:55 -0500
committerEric Wong <e@80x24.org>2014-02-21 17:05:55 -0500
commit35782a1facdc61ae007086657689cf289c96dd92 (patch)
tree67ba79b600e1984ce2397e137b3c730759d12181 /configure.ac
parent3d96736835c69b3de698bd3cc9ed12bab1da8d73 (diff)
downloadcmogstored-35782a1facdc61ae007086657689cf289c96dd92.tar.gz
Debian GNU/kFreeBSD users may ./configure with LIBS=-lfreebsd-glue
to use the FreeBSD sendfile syscall.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4e66f84..1ad3b41 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,6 +50,9 @@ AC_CHECK_FUNCS([sendfile])
 AC_CHECK_FUNCS([open_memstream])
 AC_CHECK_FUNCS([posix_fadvise])
 
+dnl need LIBS=-lfreebsd-glue (but not CFLAGS=-I/usr/include/freebsd)
+AC_CHECK_FUNCS([bsd_sendfile])
+
 dnl non-standard, but common
 AC_CHECK_FUNCS([pthread_yield])