Add build_docs to new feature convention
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a20a6f469b
commit
83a3ab8bb2
16
configure
vendored
16
configure
vendored
@ -181,6 +181,7 @@ bluez=""
|
|||||||
brlapi=""
|
brlapi=""
|
||||||
curl=""
|
curl=""
|
||||||
curses=""
|
curses=""
|
||||||
|
build_docs=""
|
||||||
nptl=""
|
nptl=""
|
||||||
vde=""
|
vde=""
|
||||||
vnc_tls=""
|
vnc_tls=""
|
||||||
@ -208,7 +209,6 @@ linux_user="no"
|
|||||||
darwin_user="no"
|
darwin_user="no"
|
||||||
bsd_user="no"
|
bsd_user="no"
|
||||||
guest_base=""
|
guest_base=""
|
||||||
build_docs="yes"
|
|
||||||
uname_release=""
|
uname_release=""
|
||||||
io_thread="no"
|
io_thread="no"
|
||||||
mixemu="no"
|
mixemu="no"
|
||||||
@ -524,6 +524,8 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--disable-docs) build_docs="no"
|
--disable-docs) build_docs="no"
|
||||||
;;
|
;;
|
||||||
|
--enable-docs) build_docs="yes"
|
||||||
|
;;
|
||||||
*) echo "ERROR: unknown option $opt"; show_help="yes"
|
*) echo "ERROR: unknown option $opt"; show_help="yes"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -1408,8 +1410,16 @@ if compile_prog "" "" ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if tools are available to build documentation.
|
# Check if tools are available to build documentation.
|
||||||
if test "$build_docs" = "yes" -a \( ! -x "`which texi2html 2>/dev/null`" -o ! -x "`which pod2man 2>/dev/null`" \) ; then
|
if test "$build_docs" != "no" ; then
|
||||||
build_docs="no"
|
if test -x "`which texi2html 2>/dev/null`" -a \
|
||||||
|
-x "`which pod2man 2>/dev/null`" ; then
|
||||||
|
build_docs=yes
|
||||||
|
else
|
||||||
|
if test "$build_docs" = "yes" ; then
|
||||||
|
feature_not_found "build_docs"
|
||||||
|
fi
|
||||||
|
build_docs=no
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Search for bsawp_32 function
|
# Search for bsawp_32 function
|
||||||
|
Loading…
Reference in New Issue
Block a user