btrfs-progs: Use more loose open ctree flags for dump-tree and restore
[platform/upstream/btrfs-progs.git] / configure.ac
index 7d80aa4..a4c98b3 100644 (file)
@@ -43,6 +43,8 @@ AC_PATH_PROG([RMDIR], [rmdir], [rmdir])
 AC_CHECK_FUNCS([openat], [],
        [AC_MSG_ERROR([cannot find openat() function])])
 
+AC_CHECK_FUNCS([reallocarray])
+
 m4_ifndef([PKG_PROG_PKG_CONFIG],
   [m4_fatal([Could not locate the pkg-config autoconf
     macros. These are usually located in /usr/share/aclocal/pkg.m4.
@@ -91,7 +93,11 @@ AC_SUBST([DISABLE_DOCUMENTATION])
 dnl detect tools to build documentation
 ASCIIDOC_TOOL="none"
 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])
        AC_PROG_SED
@@ -217,6 +223,7 @@ AC_ARG_ENABLE([python],
 
 if test "x$enable_python" = xyes; then
        AM_PATH_PYTHON([3.4])
+       PKG_CHECK_MODULES(PYTHON, [python-${PYTHON_VERSION}])
 fi
 
 AS_IF([test "x$enable_python" = xyes], [PYTHON_BINDINGS=1], [PYTHON_BINDINGS=0])