summaryrefslogtreecommitdiffstats
path: root/src/external/libtdb.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 05:31:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 05:31:45 +0000
commit74aa0bc6779af38018a03fd2cf4419fe85917904 (patch)
tree9cb0681aac9a94a49c153d5823e7a55d1513d91f /src/external/libtdb.m4
parentInitial commit. (diff)
downloadsssd-74aa0bc6779af38018a03fd2cf4419fe85917904.tar.xz
sssd-74aa0bc6779af38018a03fd2cf4419fe85917904.zip
Adding upstream version 2.9.4.upstream/2.9.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/external/libtdb.m4')
-rw-r--r--src/external/libtdb.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/src/external/libtdb.m4 b/src/external/libtdb.m4
new file mode 100644
index 0000000..f740d05
--- /dev/null
+++ b/src/external/libtdb.m4
@@ -0,0 +1,15 @@
+AC_SUBST(TDB_CFLAGS)
+AC_SUBST(TDB_LIBS)
+
+PKG_CHECK_MODULES([TDB], [tdb >= 1.1.3], [found_tdb=yes], [found_tdb=no])
+
+SSS_AC_EXPAND_LIB_DIR()
+AS_IF([test x"$found_tdb" != xyes],
+ [AC_CHECK_HEADERS([tdb.h],
+ [AC_CHECK_LIB([tdb],
+ [tdb_repack],
+ [TDB_LIBS="-L$sss_extra_libdir -ltdb"],
+ [AC_MSG_ERROR([library TDB must support tdb_repack])],
+ [-L$sss_extra_libdir])],
+ [AC_MSG_ERROR([tdb header files are not installed])])]
+)