LDB: Link against both tevent and talloc
authorEric Sandall <sandalle@sourcemage.org>
Fri, 12 Jun 2009 11:03:34 +0000 (13:03 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 18 Jun 2009 03:49:26 +0000 (13:49 +1000)
Patch for bug #6269

When linking against tevent you also need to link against talloc. This patch
fixes external/libevent.m4 to do so.

source4/lib/ldb/external/libevents.m4

index 6a0e36af8b21b17ae6b21b8576c0421e86aed1d8..af046f14307f8c17c149be35ac989aa4b3dab9a9 100644 (file)
@@ -3,5 +3,5 @@ AC_SUBST(TEVENT_CFLAGS)
 AC_SUBST(TEVENT_LIBS)
 
 AC_CHECK_HEADER(tevent.h,
-   [AC_CHECK_LIB(tevent, tevent_context_init, [TEVENT_LIBS="-ltevent"]) ],
+   [AC_CHECK_LIB(tevent, tevent_context_init, [TEVENT_LIBS="-ltevent"], , -ltalloc) ],
    [PKG_CHECK_MODULES(TEVENT, tevent)])