1 2 3dnl ############################################# 4dnl see if we have nanosecond resolution for stat 5AC_CACHE_CHECK([for tv_nsec nanosecond fields in struct stat],ac_cv_have_stat_tv_nsec,[ 6AC_TRY_COMPILE( 7[ 8#include <sys/types.h> 9#include <sys/stat.h> 10#include <unistd.h> 11], 12[struct stat st; 13 st.st_mtim.tv_nsec; 14 st.st_atim.tv_nsec; 15 st.st_ctim.tv_nsec; 16], 17ac_cv_decl_have_stat_tv_nsec=yes, 18ac_cv_decl_have_stat_tv_nsec=no) 19]) 20if test x"$ac_cv_decl_have_stat_tv_nsec" = x"yes"; then 21 AC_DEFINE(HAVE_STAT_TV_NSEC,1,[Whether stat has tv_nsec nanosecond fields]) 22fi 23 24AC_CHECK_HEADERS(blkid/blkid.h) 25AC_SEARCH_LIBS_EXT(blkid_get_cache, [blkid], BLKID_LIBS) 26AC_CHECK_FUNC_EXT(blkid_get_cache, $BLKID_LIBS) 27SMB_EXT_LIB(BLKID,[${BLKID_LIBS}],[${BLKID_CFLAGS}],[${BLKID_CPPFLAGS}],[${BLKID_LDFLAGS}]) 28if test x"$ac_cv_func_ext_blkid_get_cache" = x"yes"; then 29 AC_DEFINE(HAVE_LIBBLKID,1,[Whether we have blkid support (e2fsprogs)]) 30 SMB_ENABLE(BLKID,YES) 31fi 32 33SMB_ENABLE(pvfs_aio,NO) 34if test x"$tevent_cv_aio_support" = x"yes"; then 35 SMB_ENABLE(pvfs_aio,YES) 36fi 37