+AC_ARG_ENABLE(lfs, AC_HELP_STRING([--enable-lfs],[Enable Large File Support (default is no)]), [NBD_LFS=1], [NBD_LFS=0])
+AC_MSG_CHECKING([whether Large File Support should be enabled])
+if test $NBD_LFS -eq 1; then
+ AC_DEFINE(NBD_LFS,1, [Define to 1 if Large File Support should be enabled])
+ AC_MSG_RESULT([yes])
+else
+ AC_DEFINE(NBD_LFS,0)
+ AC_MSG_RESULT([no])
+fi