gst-plugin-docs.m4: bump python requirement from 2.1 to 2.7
[platform/upstream/gst-common.git] / m4 / gst-plugin-docs.m4
1 dnl AG_GST_PLUGIN_DOCS([MINIMUM-GTK-DOC-VERSION])
2 dnl
3 dnl checks for prerequisites for the common/mangle-tmpl.py script
4 dnl used when building the plugin documentation
5
6 AC_DEFUN([AG_GST_PLUGIN_DOCS],
7 [
8   AC_BEFORE([GTK_DOC_CHECK],[$0])dnl check for gtk-doc first
9   AC_BEFORE([AM_PATH_PYTHON],[2.7])dnl find python first
10
11   build_plugin_docs=no
12   AC_MSG_CHECKING([whether to build plugin documentation])
13   if test x$enable_gtk_doc = xyes; then
14     build_plugin_docs=yes
15     AC_MSG_RESULT([yes])
16   else
17     AC_MSG_RESULT([no (gtk-doc disabled or not available)])
18   fi
19
20   AM_CONDITIONAL(ENABLE_PLUGIN_DOCS, test x$build_plugin_docs = xyes)
21 ])