diff options
Diffstat (limited to 'src/external/libtdb.m4')
-rw-r--r-- | src/external/libtdb.m4 | 15 |
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])])] +) |