r26701: ldb: Build and install python modules when possible.
[ira/wip.git] / source / lib / ldb / configure.ac
index 73966e8f93316243ecb632bbbe85526df34bdf92..62a840e561c3551134da6a0d6489da987110c701 100644 (file)
@@ -75,6 +75,19 @@ AC_LIBREPLACE_SHLD
 AC_LIBREPLACE_SHLD_FLAGS
 AC_LIBREPLACE_MDLD
 AC_LIBREPLACE_MDLD_FLAGS
+AC_LIBREPLACE_RUNTIME_LIB_PATH_VAR
+
+AC_PATH_PROGS([PYTHON_CONFIG], [python2.6-config python2.5-config python2.4-config python-config])
+
+PYTHON_BUILD_TARGET="build-python"
+PYTHON_INSTALL_TARGET="install-python"
+AC_SUBST(PYTHON_BUILD_TARGET)
+AC_SUBST(PYTHON_INSTALL_TARGET)
+
+if test -z "$PYTHON_CONFIG"; then
+       PYTHON_BUILD_TARGET=""  
+       PYTHON_INSTALL_TARGET=""        
+fi
 
 m4_include(libldb.m4)
 AC_OUTPUT(Makefile ldb.pc)