From: Josh Durgin Date: Tue, 26 Nov 2013 00:43:51 +0000 (-0800) Subject: Merge branch 'wip-zero-copy-bufferlist-last' X-Git-Tag: v0.74~65 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=29ef3d4607f77202142fb2671e0623a58fe0429b;p=ceph.git Merge branch 'wip-zero-copy-bufferlist-last' Reviewed-by: Samuel Just --- 29ef3d4607f77202142fb2671e0623a58fe0429b diff --cc configure.ac index 8523c3fb06e9,3c3e227bed86..d1d291bb5eff --- a/configure.ac +++ b/configure.ac @@@ -572,23 -535,23 +572,37 @@@ AC_CHECK_FUNC([fallocate] [AC_DEFINE([CEPH_HAVE_FALLOCATE], [], [fallocate(2) is supported])], []) +# +# Test for time-related `struct stat` members. +# + +AC_CHECK_MEMBER([struct stat.st_mtim.tv_nsec], + [AC_DEFINE(HAVE_STAT_ST_MTIM_TV_NSEC, 1, + [Define if you have struct stat.st_mtim.tv_nsec])]) + +AC_CHECK_MEMBER([struct stat.st_mtimespec.tv_nsec], + [AC_DEFINE(HAVE_STAT_ST_MTIMESPEC_TV_NSEC, 1, + [Define if you have struct stat.st_mtimespec.tv_nsec])]) + # splice/tee + AC_CHECK_FUNC([splice], + [AC_DEFINE([CEPH_HAVE_SPLICE], [], [splice(2) is supported])], + []) + + + AC_CHECK_HEADERS([arpa/nameser_compat.h]) + + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include + F_SETPIPE_SZ]])], + [AC_DEFINE([CEPH_HAVE_SETPIPE_SZ], [], [F_SETPIPE_SZ is supported])], + [AC_MSG_NOTICE(["F_SETPIPE_SZ not found, zero-copy may be less efficent"])]) + + +AC_CHECK_HEADERS([arpa/nameser_compat.h]) AC_CHECK_HEADERS([sys/prctl.h]) AC_CHECK_FUNCS([prctl]) +AC_CHECK_FUNCS([pipe2]) +AC_CHECK_FUNCS([posix_fadvise]) # Checks for typedefs, structures, and compiler characteristics. #AC_HEADER_STDBOOL