diff options
Diffstat (limited to 'server/external/libldb.m4')
-rw-r--r-- | server/external/libldb.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/server/external/libldb.m4 b/server/external/libldb.m4 index 150c7ee0..d11acb4b 100644 --- a/server/external/libldb.m4 +++ b/server/external/libldb.m4 @@ -8,3 +8,21 @@ AC_CHECK_HEADERS(ldb.h ldb_module.h, [AC_CHECK_LIB(ldb, ldb_init, [LDB_LIBS="-lldb"], , -ltevent) ], [AC_MSG_ERROR([LDB header files are not installed])] ) + +AC_ARG_WITH([ldb-lib-dir], + [AC_HELP_STRING([--with-ldb-lib-dir=PATH], + [Path to store ldb modules [${libdir}/ldb]] + ) + ] + ) + +if test x"$with_ldb_lib_dir" != x; then + ldblibdir=$with_ldb_lib_dir +else + ldblibdir="`$PKG_CONFIG --variable=modulesdir ldb`" + if test x"$ldblibdir" == x; then + ldblibdir="${libdir}/ldb" + fi +fi +AC_MSG_NOTICE([ldb lib directory: $ldblibdir]) +AC_SUBST(ldblibdir) |