summaryrefslogtreecommitdiffstats
path: root/server/external/libldb.m4
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-05-11 09:59:54 -0400
committerSimo Sorce <ssorce@redhat.com>2009-05-14 11:33:51 -0400
commit24ad71529edd3ef6cfe7785d6c6e4f51d5cc42db (patch)
treeb10b473d91a2b942c446eb1fcfdefad1ccc2a59d /server/external/libldb.m4
parente50fd095630c6bc8d575c575e74027d8c9c102ab (diff)
downloadsssd-24ad71529edd3ef6cfe7785d6c6e4f51d5cc42db.tar.gz
sssd-24ad71529edd3ef6cfe7785d6c6e4f51d5cc42db.tar.xz
sssd-24ad71529edd3ef6cfe7785d6c6e4f51d5cc42db.zip
Update configure rules for LDB and POPT
We need to ensure that configure fails with an error if the popt development libraries are not present or if ldb module support is not available.
Diffstat (limited to 'server/external/libldb.m4')
-rw-r--r--server/external/libldb.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/server/external/libldb.m4 b/server/external/libldb.m4
index e0b7d42fc..150c7ee06 100644
--- a/server/external/libldb.m4
+++ b/server/external/libldb.m4
@@ -2,6 +2,9 @@ AC_SUBST(LDB_OBJ)
AC_SUBST(LDB_CFLAGS)
AC_SUBST(LDB_LIBS)
-AC_CHECK_HEADER(ldb.h,
+PKG_CHECK_MODULES(LDB, ldb >= 0.9.2)
+
+AC_CHECK_HEADERS(ldb.h ldb_module.h,
[AC_CHECK_LIB(ldb, ldb_init, [LDB_LIBS="-lldb"], , -ltevent) ],
- [PKG_CHECK_MODULES(LDB, ldb >= 0.9.2)])
+ [AC_MSG_ERROR([LDB header files are not installed])]
+)