summaryrefslogtreecommitdiffstats
path: root/config/user-libshare.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/user-libshare.m4')
-rw-r--r--config/user-libshare.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/config/user-libshare.m4 b/config/user-libshare.m4
new file mode 100644
index 000000000..3b92bbaa5
--- /dev/null
+++ b/config/user-libshare.m4
@@ -0,0 +1,8 @@
+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])])
+])