summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/configure.ac2
-rw-r--r--server/external/libldb.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/server/configure.ac b/server/configure.ac
index c65500d4..0d02fae8 100644
--- a/server/configure.ac
+++ b/server/configure.ac
@@ -39,8 +39,8 @@ m4_include(pkg.m4)
m4_include(libpopt.m4)
m4_include(libtalloc.m4)
m4_include(libtdb.m4)
-m4_include(libldb.m4)
m4_include(libevents.m4)
+m4_include(libldb.m4)
m4_include(util/signal.m4)
PKG_CHECK_MODULES(DBUS,dbus-1)
diff --git a/server/external/libldb.m4 b/server/external/libldb.m4
index cea4367a..cb5f378d 100644
--- a/server/external/libldb.m4
+++ b/server/external/libldb.m4
@@ -3,5 +3,5 @@ AC_SUBST(LDB_CFLAGS)
AC_SUBST(LDB_LIBS)
AC_CHECK_HEADER(ldb.h,
- [AC_CHECK_LIB(ldb, ldb_init, [LDB_LIBS="-lldb"]) ],
+ [AC_CHECK_LIB(ldb, ldb_init, [LDB_LIBS="-lldb"], , -levents) ],
[PKG_CHECK_MODULES(LDB, ldb >= 0.9.2)])