[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 3 of 3] tools/docs: allow markdown_py to be used



An alternative Python markdown implementation is available on some
systems as markdown_py, so look for that path as well.

Signed-off-by: Matt Wilson <msw@xxxxxxxxxx>

diff -r 9a308e4fdc19 -r f5a57d912d9f tools/configure.ac
--- a/tools/configure.ac        Wed Aug 29 11:50:44 2012 -0700
+++ b/tools/configure.ac        Wed Aug 29 11:58:30 2012 -0700
@@ -91,7 +91,7 @@
 AX_DOCS_TOOL_PROG([POD2TEXT], [pod2text])
 AX_DOCS_TOOL_PROG([DOT], [dot])
 AX_DOCS_TOOL_PROG([NEATO], [neato])
-AX_DOCS_TOOL_PROG([MARKDOWN], [markdown])
+AX_DOCS_TOOL_PROGS([MARKDOWN], [markdown markdown_py])
 
 AC_ARG_VAR([HTMLDUMP],
            [Path to html-to-text generation tool (default: elinks)])
diff -r 9a308e4fdc19 -r f5a57d912d9f tools/m4/docs_tool.m4
--- a/tools/m4/docs_tool.m4     Wed Aug 29 11:50:44 2012 -0700
+++ b/tools/m4/docs_tool.m4     Wed Aug 29 11:58:30 2012 -0700
@@ -6,3 +6,12 @@
         AC_MSG_WARN([$2 is not available so some documentation won't be built])
     ])
 ])
+
+AC_DEFUN([AX_DOCS_TOOL_PROGS], [
+dnl
+    AC_ARG_VAR([$1], [Path to $2 tool])
+    AC_PATH_PROGS([$1], [$2])
+    AS_IF([! test -x "$ac_cv_path_$1"], [
+        AC_MSG_WARN([$2 is not available so some documentation won't be built])
+    ])
+])

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.