提交 70ec5dc0 编写于 作者: A Anthony Liguori

Add a --disable-docs to configure to allow doc build to be disabled

Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 1b3b9ca3
...@@ -177,7 +177,7 @@ softmmu="yes" ...@@ -177,7 +177,7 @@ softmmu="yes"
linux_user="no" linux_user="no"
darwin_user="no" darwin_user="no"
bsd_user="no" bsd_user="no"
build_docs="no" build_docs="yes"
uname_release="" uname_release=""
curses="yes" curses="yes"
pthread="yes" pthread="yes"
...@@ -492,6 +492,8 @@ for opt do ...@@ -492,6 +492,8 @@ for opt do
;; ;;
--with-pkgversion=*) pkgversion=" ($optarg)" --with-pkgversion=*) pkgversion=" ($optarg)"
;; ;;
--disable-docs) build_docs="no"
;;
*) echo "ERROR: unknown option $opt"; show_help="yes" *) echo "ERROR: unknown option $opt"; show_help="yes"
;; ;;
esac esac
...@@ -1236,9 +1238,8 @@ EOF ...@@ -1236,9 +1238,8 @@ EOF
fi fi
# Check if tools are available to build documentation. # Check if tools are available to build documentation.
if [ -x "`which texi2html 2>/dev/null`" ] && \ if test "$build_docs" = "yes" -a \( ! -x "`which texi2html 2>/dev/null`" -o ! -x "`which pod2man 2>/dev/null`" \) ; then
[ -x "`which pod2man 2>/dev/null`" ]; then build_docs="no"
build_docs="yes"
fi fi
########################################## ##########################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册