diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-11-07 17:57:33 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-11-07 18:07:09 +0000 |
commit | b497c4f0da17535ecf259e68dce46626141cfaee (patch) | |
tree | aa955925149a86198ced689c35808bdf51dc2979 /m4 | |
parent | a2490a4e21127b006988db8e716a3bd3aeb85fa4 (diff) |
gst-plugin-docs.m4: fix autogen.sh warnings
Fix "AM_PATH_PYTHON([2.7]) is m4_require'd but not m4_defun'd"
warnings in autogen.sh. Just do AC_REQUIRE(AM_PATH_PYTHON)
without any arguments, which makes more sense. And disable
plugin doc building if python was not found.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/gst-plugin-docs.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/m4/gst-plugin-docs.m4 b/m4/gst-plugin-docs.m4 index 4fb20ee..0e2ab6e 100644 --- a/m4/gst-plugin-docs.m4 +++ b/m4/gst-plugin-docs.m4 @@ -6,13 +6,17 @@ dnl used when building the plugin documentation AC_DEFUN([AG_GST_PLUGIN_DOCS], [ AC_BEFORE([GTK_DOC_CHECK],[$0])dnl check for gtk-doc first - AC_REQUIRE([AM_PATH_PYTHON([2.7])])dnl find python first + AC_REQUIRE([AM_PATH_PYTHON])dnl find python first build_plugin_docs=no AC_MSG_CHECKING([whether to build plugin documentation]) if test x$enable_gtk_doc = xyes; then - build_plugin_docs=yes - AC_MSG_RESULT([yes]) + if test x$PYTHON != x; then + build_plugin_docs=yes + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no (python not found)]) + fi else AC_MSG_RESULT([no (gtk-doc disabled or not available)]) fi |