]> git.puffer.fish Git - mirror/frr.git/commitdiff
[doc] Add "--disable-doc" to configure
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Mon, 16 Feb 2009 08:40:39 +0000 (09:40 +0100)
committerPaul Jakma <paul@quagga.net>
Thu, 25 Jun 2009 13:01:19 +0000 (14:01 +0100)
Configure option "--disable-doc" will prevent building
the documents under doc. Saves build time and the need to
have document building tools installed. Useful when your build
machine is different from your development machine.

Makefile.am
configure.ac

index 8276b24279317e080071f71d312064e58c4bedf5..007758f278b648d3e0e4e575ccaffbac9ec77b96 100644 (file)
@@ -1,7 +1,7 @@
 ## Process this file with automake to produce Makefile.in.
 
 SUBDIRS = lib @ZEBRA@ @BGPD@ @RIPD@ @RIPNGD@ @OSPFD@ @OSPF6D@ \
-         @ISISD@ @WATCHQUAGGA@ @VTYSH@ @OSPFCLIENT@ doc m4 @pkgsrcdir@ \
+         @ISISD@ @WATCHQUAGGA@ @VTYSH@ @OSPFCLIENT@ @DOC@ m4 @pkgsrcdir@ \
          redhat @SOLARIS@
 
 DIST_SUBDIRS = lib zebra bgpd ripd ripngd ospfd ospf6d \
index cd883d2afdac3c3fa7a2410b5fcf95283ce727c7..d7d8a2f3ed382046244a22cc4673d6889926181e 100755 (executable)
@@ -185,6 +185,8 @@ AC_ARG_ENABLE(vtysh,
 [  --enable-vtysh          include integrated vty shell for Quagga])
 AC_ARG_ENABLE(ipv6,
 [  --disable-ipv6          turn off IPv6 related features and daemons])
+AC_ARG_ENABLE(doc,
+[  --disable-doc           do not build docs])
 AC_ARG_ENABLE(zebra,
 [  --disable-zebra         do not build zebra daemon])
 AC_ARG_ENABLE(bgpd,
@@ -1154,6 +1156,13 @@ QUAGGA_INCLUDES
 #endif
 ])dnl
 
+dnl disable doc check
+if test "${enable_doc}" = "no";then
+  DOC=""
+else
+  DOC="doc"
+fi
+
 dnl --------------------
 dnl Daemon disable check
 dnl --------------------
@@ -1230,6 +1239,7 @@ else
   AC_DEFINE(DISABLE_BGP_ANNOUNCE,0,Disable BGP installation to zebra)
 fi
 
+AC_SUBST(DOC)
 AC_SUBST(ZEBRA)
 AC_SUBST(BGPD)
 AC_SUBST(RIPD)