Allow using external libtevent.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 23 Dec 2008 18:59:57 +0000 (19:59 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 23 Dec 2008 18:59:57 +0000 (19:59 +0100)
lib/tevent/config.mk
source4/build/smb_build/summary.pm
source4/configure.ac
source4/main.mk

index 01c628cd2c8459466ff3e77e9b447f1c4285195a..e4fb9a8088f1773bcf9f7c6c3b00d12f9ce0cbe2 100644 (file)
@@ -44,14 +44,3 @@ CFLAGS = -I../lib/tevent
 LIBTEVENT_OBJ_FILES = $(addprefix $(libteventsrcdir)/, tevent.o tevent_timed.o tevent_signal.o tevent_debug.o tevent_util.o)
 
 PUBLIC_HEADERS += $(addprefix $(libteventsrcdir)/, tevent.h tevent_internal.h)
-
-# TODO: Change python stuff to tevent
-[PYTHON::swig_events]
-LIBRARY_REALNAME = tevent.$(SHLIBEXT)
-PRIVATE_DEPENDENCIES = LIBTEVENT PYTALLOC LIBSAMBA-UTIL
-
-swig_events_OBJ_FILES = $(libteventsrcdir)/pytevent.o
-
-$(swig_events_OBJ_FILES): CFLAGS+=$(CFLAG_NO_CAST_QUAL)
-
-PC_FILES += $(libteventsrcdir)/tevent.pc
index f6c1c5055094d5a2d7ed0ecf1c9102f4eb7ba2a6..c7916216abe42a55d5293acc0acefb0653eeb073 100644 (file)
@@ -57,6 +57,7 @@ sub show($$)
        showisexternal($output, "popt", "LIBPOPT");
        showisexternal($output, "talloc", "LIBTALLOC");
        showisexternal($output, "tdb", "LIBTDB");
+       showisexternal($output, "tevent", "LIBTEVENT");
        showisexternal($output, "ldb", "LIBLDB");
        print "Developer mode: ".(enabled($config->{developer})?"yes":"no")."\n";
        print "Automatic dependencies: ".
index aa5a3f3b3ef7f5179e372a648bd40cf21faee464..45154c8c88680951bc8c7e1ab5ee98c89570b770 100644 (file)
@@ -34,7 +34,6 @@ m4_include(../nsswitch/nsstest.m4)
 m4_include(../pidl/config.m4)
 
 AC_CONFIG_FILES(lib/registry/registry.pc)
-AC_CONFIG_FILES(../lib/tevent/tevent.pc)
 AC_CONFIG_FILES(librpc/dcerpc.pc)
 AC_CONFIG_FILES(../librpc/ndr.pc)
 AC_CONFIG_FILES(../lib/torture/torture.pc)
@@ -61,6 +60,17 @@ SMB_EXT_LIB_FROM_PKGCONFIG(LIBTDB, tdb >= 1.1.3,
 
 SMB_INCLUDE_MK(../lib/tdb/python.mk) 
 
+SMB_EXT_LIB_FROM_PKGCONFIG(LIBTEVENT, tevent >= 1.0.0,
+       [],
+       [
+               m4_include(../lib/tevent/libtevent.m4)
+               SMB_INCLUDE_MK(../lib/tevent/config.mk)
+               AC_CONFIG_FILES(../lib/tevent/tevent.pc)
+       ]
+)
+
+SMB_INCLUDE_MK(../lib/tevent/python.mk) 
+
 SMB_EXT_LIB_FROM_PKGCONFIG(LIBLDB, ldb = 0.9.1,
        [
                SMB_INCLUDE_MK(lib/ldb/ldb_ildap/config.mk)
@@ -96,7 +106,6 @@ SMB_EXT_LIB_FROM_PKGCONFIG(LIBLDB, ldb = 0.9.1,
 SMB_INCLUDE_MK(lib/ldb/python.mk) 
 
 m4_include(lib/tls/config.m4)
-m4_include(../lib/tevent/libtevent.m4)
 
 dnl m4_include(auth/kerberos/config.m4)
 m4_include(auth/gensec/config.m4)
index e54196a2f9a12b8edf0bd23a06fed5610c22dd89..1d4ffc5d44cb08327097b38c173d4758ab656d87 100644 (file)
@@ -14,7 +14,6 @@ mkinclude lib/ldb-samba/config.mk
 mkinclude lib/tls/config.mk
 mkinclude lib/registry/config.mk
 mkinclude lib/messaging/config.mk
-mkinclude ../lib/tevent/config.mk
 mkinclude lib/events/config.mk
 mkinclude lib/cmdline/config.mk
 mkinclude ../lib/socket_wrapper/config.mk