summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTaras Glek <taras@purestorage.com>2021-04-20 11:02:18 -0700
committerTaras Glek <taras@purestorage.com>2021-04-20 11:02:18 -0700
commit165b8a70f919eb8858a9109f5d0db6548df2822c (patch)
tree37879091a1adca9efe927633768b97152cb71e30 /configure
parent9326926bef943245c244eb0e6129ae046a3719a9 (diff)
downloadfio-165b8a70f919eb8858a9109f5d0db6548df2822c.tar.gz
fio-165b8a70f919eb8858a9109f5d0db6548df2822c.tar.bz2
NFS configure fixes
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 9 insertions, 8 deletions
diff --git a/configure b/configure
index a9f0c033..fd675d93 100755
--- a/configure
+++ b/configure
@@ -170,9 +170,9 @@ disable_native="no"
march_set="no"
libiscsi="no"
libnbd="no"
+libnfs="no"
libzbc=""
dfs=""
-libnfs="no"
dynamic_engines="no"
prefix=/usr/local
@@ -242,7 +242,7 @@ for opt do
;;
--disable-tcmalloc) disable_tcmalloc="yes"
;;
- --enable-libnfs) libnfs="yes"
+ --disable-nfs) disable_nfs="yes"
;;
--dynamic-libengines) dynamic_engines="yes"
;;
@@ -274,6 +274,7 @@ if test "$show_help" = "yes" ; then
echo "--disable-rados Disable Rados support even if found"
echo "--disable-rbd Disable Rados Block Device even if found"
echo "--disable-http Disable HTTP support even if found"
+ echo "--disable-nfs Disable userspace NFS support even if found"
echo "--disable-gfapi Disable gfapi"
echo "--enable-libhdfs Enable hdfs support"
echo "--enable-libnfs Enable nfs support"
@@ -2280,21 +2281,21 @@ EOF
fi
fi
print_config "DAOS File System (dfs) Engine" "$dfs"
-# Check if we have libnfs (for nfs support).
-if test "$libnfs" = "yes" ; then
+
+##########################################
+# Check if we have libnfs (for userspace nfs support).
+if test "$disable_nfs" != "yes"; then
if $(pkg-config libnfs); then
libnfs="yes"
libnfs_cflags=$(pkg-config --cflags libnfs)
- # libnfs_libs=$(pkg-config --libs libnfs)
- libnfs_libs=/usr/local/lib/libnfs.a
+ libnfs_libs=$(pkg-config --libs libnfs)
else
if test "$libnfs" = "yes" ; then
echo "libnfs" "Install libnfs"
fi
- libnfs="no"
fi
fi
-print_config "nfs engine" "$libnfs"
+print_config "NFS engine" "$libnfs"
##########################################
# Check if we have lex/yacc available