Add --enable-python-bindings configure option (should really depend some- how on --enable-applib?) Export PYTHON_BINDINGS variable Parse liblvm/python/Makefile.in into Makefile Signed-off-by: Andy Grover <agrover@redhat.com> --- configure.in | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/configure.in b/configure.in index 1c908f9..a1b1807 100644 --- a/configure.in +++ b/configure.in @@ -1022,6 +1022,13 @@ test x$CMDLIB = xyes \ || LVM2CMD_LIB= ################################################################################ +dnl -- Enable Python lvm.so +AC_MSG_CHECKING(whether to build Python wrapper for liblvm2app.so) +AC_ARG_ENABLE(python-bindings, + AC_HELP_STRING([--enable-python-bindings], [build Python applib bindings]), + PYTHON_BINDINGS=$enableval, PYTHON_BINDINGS=no) + +################################################################################ dnl -- Enable pkg-config AC_ARG_ENABLE(pkgconfig, AC_HELP_STRING([--enable-pkgconfig], [install pkgconfig support]), @@ -1518,6 +1525,7 @@ AC_SUBST(OCFDIR) AC_SUBST(PKGCONFIG) AC_SUBST(POOL) AC_SUBST(PTHREAD_LIBS) +AC_SUBST(PYTHON_BINDINGS) AC_SUBST(QUORUM_CFLAGS) AC_SUBST(QUORUM_LIBS) AC_SUBST(RAID) @@ -1598,6 +1606,7 @@ libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc +liblvm/python/Makefile man/Makefile po/Makefile scripts/clvmd_init_red_hat -- 1.7.1 _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/