X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=configure.ac;h=156cc96e07a1a5c8694a0311dbe45aa1c354580d;hp=d3f853f30c129450538df1b273d4f883b5c39135;hb=1864b0e39505cd44a98eee61c97916b86491c0b4;hpb=cecf24e7f0f3385e7ced3e97d78cc9cc4012a650 diff --git a/configure.ac b/configure.ac index d3f853f30..156cc96e0 100644 --- a/configure.ac +++ b/configure.ac @@ -175,9 +175,12 @@ AS_IF([test "x$PYTHON_BINARY" = "x"], [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$enable_python_devel" != "xno"], [ +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],