X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile.am;h=b48b122f35e18c49b7b8fd1f25c6a8e399206d52;hp=58702d06a4306036c38aecb08391bb4beec0342a;hb=81577dc22887debaf9b19bf1034a2887fb9069c7;hpb=49100d2abd1fc7ff36287de8c2645d37068784c2 diff --git a/Makefile.am b/Makefile.am index 58702d06a..b48b122f3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5359,11 +5359,34 @@ DISTCHECK_CONFIGURE_FLAGS += \ --with-sysvrcnd-path= endif +if HAVE_PYTHON +DISTCHECK_CONFIGURE_FLAGS += \ + --with-python +endif + if ENABLE_GTK_DOC DISTCHECK_CONFIGURE_FLAGS += \ --enable-gtk-doc endif +# +# Require python when making dist +# +.PHONY: dist-check-python +dist-check-python: +if !HAVE_PYTHON + @echo "*** python and python-lxml module must be installed and enabled in order to make dist" + @false +endif + +dist-check-compat-libs: +if !ENABLE_COMPAT_LIBS + @echo "*** compat-libs must be enabled in order to make dist" + @false +endif + +dist: dist-check-python dist-check-compat-libs + # check "broken" platforms limited toolchains for link breakage before we release .PHONY: linkcheck linkcheck: