summaryrefslogtreecommitdiff
path: root/lib/tdb/libtdb.m4
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-08-13 14:53:22 +0200
committerBjörn Jacke <bj@sernet.de>2010-08-13 14:57:44 +0200
commit5390baeb6b97acbfde89bdb6a2c678a516a0e360 (patch)
tree04e115352ba9abf008d461d4975faced32bb096b /lib/tdb/libtdb.m4
parent37177f1c05398e1d4a59bebcdb3cd16dd6e8382b (diff)
downloadsamba-5390baeb6b97acbfde89bdb6a2c678a516a0e360.tar.gz
tdb: add TDB_DEPS variable filled with required libraries
This is required for Solaris, which needs to link in librt to make use of fdatasync().
Diffstat (limited to 'lib/tdb/libtdb.m4')
-rw-r--r--lib/tdb/libtdb.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tdb/libtdb.m4 b/lib/tdb/libtdb.m4
index feae1c2cc67..fb8913aa16b 100644
--- a/lib/tdb/libtdb.m4
+++ b/lib/tdb/libtdb.m4
@@ -20,6 +20,12 @@ AC_SUBST(LIBREPLACEOBJ)
TDB_LIBS=""
AC_SUBST(TDB_LIBS)
+TDB_DEPS=""
+if test x$libreplace_cv_HAVE_FDATASYNC_IN_LIBRT = xyes ; then
+ TDB_DEPS="$TDB_DEPS -lrt"
+fi
+AC_SUBST(TDB_DEPS)
+
TDB_CFLAGS="-I$tdbdir/include"
AC_SUBST(TDB_CFLAGS)