summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-10 18:17:59 +0100
committerKarolin Seeger <kseeger@samba.org>2008-12-12 17:36:24 +0100
commit73560a92ffd6e156b7b4079b089617de53da8747 (patch)
treed84b30c2363ebd5090290364554fd8960c154398 /source
parentd7bfadeb8b85d88e9c0940297f4e3d149af52530 (diff)
downloadsamba-73560a92ffd6e156b7b4079b089617de53da8747.tar.gz
Also search for -lgpfs which is available as GPL in GPFS PTF8 (cherry picked from commit 3c93c96fd0fe362c35fe8127058f94868abc9342)
Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 011bcdec1960f4e62538046814d381938956644c)
Diffstat (limited to 'source')
-rw-r--r--source/configure.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/configure.in b/source/configure.in
index 798a0f8a8c6..97d9eb0876b 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -1078,6 +1078,20 @@ if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
fi
LIBS="$save_LIBS"
+printf "%s" "checking for GPFS libs (with 3.2.1 PTF8 available as GPL)... "
+save_LIBS="$LIBS"
+LIBS="$LIBS -lgpfs"
+AC_TRY_LINK([#include <gpfs.h>],
+ [gpfs_set_share(0,GPFS_SHARE_READ,GPFS_DENY_NONE)],
+ samba_cv_HAVE_GPFS=yes,
+ samba_cv_HAVE_GPFS=no)
+echo $samba_cv_HAVE_GPFS
+if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
+ AC_DEFINE(HAVE_GPFS,1,[Whether GPFS GPL libs are available])
+ default_shared_modules="$default_shared_modules vfs_gpfs"
+fi
+LIBS="$save_LIBS"
+
# Note that all the libunwind symbols in the API are defined to internal
# platform-specific version, so we must include libunwind.h before checking
# any of them.