Patchwork [14/20] Add build_docs to new feature convention

login
register
mail settings
Submitter Juan Quintela
Date Aug. 12, 2009, 4:29 p.m.
Message ID <5cf54e7722b0f3d59af49bc29a4664b2e85393ea.1250093910.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31216/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 12, 2009, 4:29 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

Patch

diff --git a/configure b/configure
index 1f71fdf..97a3161 100755
--- a/configure
+++ b/configure
@@ -183,6 +183,7 @@  bluez=""
 brlapi=""
 curl=""
 curses=""
+build_docs=""
 nptl=""
 pthread=""
 vde=""
@@ -212,7 +213,6 @@  linux_user="no"
 darwin_user="no"
 bsd_user="no"
 guest_base=""
-build_docs="yes"
 uname_release=""
 aio="yes"
 io_thread="no"
@@ -549,6 +549,8 @@  for opt do
   ;;
   --disable-docs) build_docs="no"
   ;;
+  --enable-docs) build_docs="yes"
+  ;;
   *) echo "ERROR: unknown option $opt"; show_help="yes"
   ;;
   esac
@@ -1444,8 +1446,16 @@  if compile_prog "" "" ; then
 fi

 # 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
-  build_docs="no"
+if test "$build_docs" != "no" ; then
+  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

 # Search for bsawp_32 function