summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-06-18 00:53:05 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-18 00:54:18 +0200
commit76bf5a4edeecd366da58fdb1f64a023d1f2a8461 (patch)
treeeca8b9c30793cad0c892cfbd6bf48349dd5fbe92
parent57c514afec55c390cfe3b548e5f96d199e580e71 (diff)
downloadsamba-76bf5a4edeecd366da58fdb1f64a023d1f2a8461.tar.gz
samba-76bf5a4edeecd366da58fdb1f64a023d1f2a8461.tar.bz2
samba-76bf5a4edeecd366da58fdb1f64a023d1f2a8461.zip
configure: Use Python tdb bindings from the system, if found.
-rw-r--r--source4/configure.ac13
1 files changed, 10 insertions, 3 deletions
diff --git a/source4/configure.ac b/source4/configure.ac
index a841ab1c12..c99205a466 100644
--- a/source4/configure.ac
+++ b/source4/configure.ac
@@ -53,15 +53,22 @@ SMB_INCLUDED_LIB_PKGCONFIG(LIBTALLOC, talloc >= TALLOC_MIN_VERSION, [],
)
SMB_INCLUDED_LIB_PKGCONFIG(LIBTDB, tdb >= TDB_MIN_VERSION,
- [],
+ [
+ AC_MSG_CHECKING([for Python TDB bindings])
+ if $PYTHON -c "from tdb import open" 2>/dev/null; then
+ AC_MSG_RESULT(yes)
+ else
+ SMB_INCLUDE_MK(../lib/tdb/python.mk)
+ AC_MSG_RESULT(no)
+ fi
+ ],
[
m4_include(../lib/tdb/libtdb.m4)
SMB_INCLUDE_MK(../lib/tdb/config.mk)
+ SMB_INCLUDE_MK(../lib/tdb/python.mk)
]
)
-SMB_INCLUDE_MK(../lib/tdb/python.mk)
-
SMB_INCLUDED_LIB_PKGCONFIG(LIBTEVENT, tevent = TEVENT_REQUIRED_VERSION,
[],[m4_include(../lib/tevent/samba.m4)]
)