chiark / gitweb /
Remove HAVE_PYTHON bits
authorAndy Wingo <wingo@pobox.com>
Wed, 8 Apr 2015 07:39:31 +0000 (09:39 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 8 Apr 2015 07:39:31 +0000 (09:39 +0200)
Makefile-man.am
Makefile.am
configure.ac

index 9f9ba7715f5d57dda222bf587c74d76e6f15c801..2ba08e40775529cbfd9e8ef9ce44ba8e599dd4a7 100644 (file)
@@ -1615,16 +1615,6 @@ man/systemd-user-sessions.html: man/systemd-user-sessions.service.html
 
 endif
 
-if HAVE_PYTHON
-MANPAGES += \
-       man/systemd.directives.7 \
-       man/systemd.index.7
-MANPAGES_ALIAS += \
-       #
-
-
-endif
-
 # Really, do not edit this file.
 
 EXTRA_DIST += \
index 03edc19c574b33f63056497e0f4ea85edf34e857..bc23c2485b365550c5b978ec16e1d953f94d5b7f 100644 (file)
@@ -1353,11 +1353,6 @@ DISTCHECK_CONFIGURE_FLAGS += \
        --with-sysvinit-path= \
        --with-sysvrcnd-path=
 
-if HAVE_PYTHON
-DISTCHECK_CONFIGURE_FLAGS += \
-       --with-python
-endif
-
 if ENABLE_GTK_DOC
 DISTCHECK_CONFIGURE_FLAGS += \
        --enable-gtk-doc
@@ -1366,12 +1361,7 @@ endif
 #
 # Require python when making dist
 #
-.PHONY: dist-check-python dist-check-compat-libs dist-check-help
-dist-check-python:
-if !HAVE_PYTHON
-       @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
-       @false
-endif
+.PHONY: dist-check-compat-libs dist-check-help
 
 dist-check-compat-libs:
 if !ENABLE_COMPAT_LIBS
index f0b9963b366cc5b3320ba688a26c3d618595081c..4ef10ac9103ba4790171f65412aa277e76e7a38a 100644 (file)
@@ -241,54 +241,6 @@ AC_CHECK_SIZEOF(rlim_t,,[
        #include <sys/resource.h>
 ])
 
-# ------------------------------------------------------------------------------
-# we use python to build the man page index, and for systemd-python
-have_python=no
-AC_ARG_WITH([python],
-        [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
-
-have_lxml=no
-AS_IF([test "x$with_python" != "xno"], [
-        AM_PATH_PYTHON(,, [:])
-        AS_IF([test "x$PYTHON" != "x:"], [
-                AC_MSG_CHECKING([for python lxml module])
-                AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes])
-                AC_MSG_RESULT([$have_lxml])
-                AS_IF([test "x$have_lxml" = "xyes"], [have_python=yes],
-                      [AC_MSG_WARN([*** python support requires python-lxml module installed])])
-        ])
-])
-AS_IF([test "$have_python" != "yes"], [
-      AS_IF([test "$with_python" = "yes"],
-            [AC_MSG_ERROR([*** python support requested but python support not found])])
-      AS_IF([test "$with_python" != "no"],
-            [AC_MSG_WARN([*** python support not found, some documentation cannot be built])])
-])
-
-AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
-AS_IF([test "x$PYTHON_BINARY" = "x"],
-      [AS_IF([test "x$have_python" = "xyes"],
-             [PYTHON_BINARY="$(which "$PYTHON")"],
-             [PYTHON_BINARY=/usr/bin/python])])
-AC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
-
-AS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
-      [AC_MSG_ERROR([*** python-devel support requires --with-python])])
-
-have_python_devel=no
-AC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
-AS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
-      PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
-            [have_python_devel=yes],
-            [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
-                  [have_python_devel=yes],
-                  [have_python_devel=no])])
-      AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
-            [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
-      AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
-])
-AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
-
 # ------------------------------------------------------------------------------
 
 AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])