AC_PATH_PROG won't fail even if it fails to find command path.
xmlto is required for document build and we should report error
if it doesn't exist at configure time.

Signed-off-by: Tomohiro Misono <>
--- | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ b/
index af13a959..a4c98b31 100644
--- a/
+++ b/
 dnl detect tools to build documentation
 if test "x$enable_documentation" = xyes; then
-       AC_PATH_PROG([XMLTO], [xmlto], [xmlto])
+       AC_PATH_PROG([XMLTO], [xmlto])
+       if test -z "$XMLTO"; then
+               AC_MSG_ERROR([cannot find xmlto, cannot build documentation])
+       fi
        AC_PATH_PROG([GZIP], [gzip], [gzip])
        AC_PATH_PROG([MV], [mv], [mv])

To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to
More majordomo info at

Reply via email to