gfio_check="no"
libhdfs="no"
pmemblk="no"
+devdax="no"
disable_lex=""
prefix=/usr/local
;;
--enable-pmemblk) pmemblk="yes"
;;
+ --enable-devdax) devdax="yes"
+ ;;
--disable-lex) disable_lex="yes"
;;
--enable-lex) disable_lex="no"
echo "--disable-gfapi Disable gfapi"
echo "--enable-libhdfs Enable hdfs support"
echo "--enable-pmemblk Enable NVML libpmemblk support"
+ echo "--enable-devdax Enable NVM Device Dax support"
echo "--disable-lex Disable use of lex/yacc for math"
echo "--enable-lex Enable use of lex/yacc for math"
echo "--disable-shm Disable SHM support"
fi
echo "Rados Block Device engine $rbd"
+##########################################
+# check for rbd_poll
+rbd_poll="no"
+if test "$rbd" = "yes"; then
+cat > $TMPC << EOF
+#include <rbd/librbd.h>
+#include <sys/eventfd.h>
+
+int main(int argc, char **argv)
+{
+ rbd_image_t image;
+ rbd_completion_t comp;
+
+ int fd = eventfd(0, EFD_NONBLOCK);
+ rbd_set_image_notification(image, fd, EVENT_TYPE_EVENTFD);
+ rbd_poll_io_events(image, comp, 1);
+
+ return 0;
+}
+EOF
+if compile_prog "" "-lrbd -lrados" "rbd"; then
+ rbd_poll="yes"
+fi
+echo "rbd_poll $rbd_poll"
+fi
+
##########################################
# check for rbd_invaidate_cache()
rbd_inval="no"
# Report whether pmemblk engine is enabled
echo "NVML libpmemblk engine $pmemblk"
+##########################################
+# Report whether dev-dax engine is enabled
+echo "NVM Device Dax engine $devdax"
+
# Check if we have lex/yacc available
yacc="no"
yacc_is_bison="no"
if test "$rbd" = "yes" ; then
output_sym "CONFIG_RBD"
fi
+if test "$rbd_poll" = "yes" ; then
+ output_sym "CONFIG_RBD_POLL"
+fi
if test "$rbd_inval" = "yes" ; then
output_sym "CONFIG_RBD_INVAL"
fi
if test "$pmemblk" = "yes" ; then
output_sym "CONFIG_PMEMBLK"
fi
+if test "$devdax" = "yes" ; then
+ output_sym "CONFIG_LINUX_DEVDAX"
+fi
if test "$arith" = "yes" ; then
output_sym "CONFIG_ARITHMETIC"
if test "$yacc_is_bison" = "yes" ; then