aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-12-16 13:47:30 -0800
committerBrian Behlendorf <[email protected]>2011-02-04 16:14:29 -0800
commitc5d915f4237bbd1f5623b5044a1924a3cb91852b (patch)
treeb5896a1029ca271541d70a2ba9037f43d98caf2d /config
parent3fb1fcdea167d705e050a0383ec61b95fbe8a0ed (diff)
Minimal libshare infrastructure
ZFS even under Solaris does not strictly require libshare to be available. The current implementation attempts to dlopen() the library to access the needed symbols. If this fails libshare support is simply disabled. This means that on Linux we only need the most minimal libshare implementation. In fact just enough to prevent the build from failing. Longer term we can decide if we want to implement a libshare library like Solaris. At best this would be an abstraction layer between ZFS and NFS/SMB. Alternately, we can drop libshare entirely and directly integrate ZFS with Linux's NFS/SMB. Finally the bare bones user-libshare.m4 test was dropped. If we do decide to implement libshare at some point it will surely be as part of this package so the check is not needed.
Diffstat (limited to 'config')
-rw-r--r--config/user-libshare.m48
-rw-r--r--config/user.m41
2 files changed, 0 insertions, 9 deletions
diff --git a/config/user-libshare.m4 b/config/user-libshare.m4
deleted file mode 100644
index 3b92bbaa5..000000000
--- a/config/user-libshare.m4
+++ /dev/null
@@ -1,8 +0,0 @@
-dnl #
-dnl # Check for libshare
-dnl #
-AC_DEFUN([ZFS_AC_CONFIG_USER_LIBSHARE], [
- AC_CHECK_LIB([share], [sa_init],
- [AC_DEFINE([HAVE_LIBSHARE], 1,
- [Define to 1 if 'libshare' library available])])
-])
diff --git a/config/user.m4 b/config/user.m4
index 6f0276937..a79deefe8 100644
--- a/config/user.m4
+++ b/config/user.m4
@@ -3,7 +3,6 @@ dnl # Default ZFS user configuration
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER], [
ZFS_AC_CONFIG_USER_ARCH
- ZFS_AC_CONFIG_USER_LIBSHARE
ZFS_AC_CONFIG_USER_IOCTL
ZFS_AC_CONFIG_USER_ZLIB
ZFS_AC_CONFIG_USER_LIBUUID