]> git.puffer.fish Git - mirror/frr.git/commitdiff
* configure.ac: Add --enable-isis-topology to enable isisd topology
authorhasso <hasso>
Sat, 2 Apr 2005 19:03:39 +0000 (19:03 +0000)
committerhasso <hasso>
Sat, 2 Apr 2005 19:03:39 +0000 (19:03 +0000)
  generator code.
* isisd/Makefile.am: Variables to handle conditonal compiling of
  topology generator code.
* isisd/isis_lsp.c: lsppdu_realloc() is used by topology generator.
* isisd/isisd.c: Rename show_isis_topology_cmd to not conflict the one
  in the isis_spf.c.
* isisd/isisd.h: Remove TOPOLOGY_GENERATE define, it will be defined in
  toplevel config.h if topology generator is enabled.
* isisd/topology/Makefile.am: Handle the libtoolized Quagga libraries.

ChangeLog
configure.ac
isisd/ChangeLog
isisd/Makefile.am
isisd/isis_lsp.c
isisd/isisd.c
isisd/isisd.h
isisd/topology/Makefile.am

index 4e86d2d10d4210b7ef842a9b7cee43db3ef17cee..3ddc9b9f030a30e736f580890a9805560bf8f7b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-02 Hasso Tepper <hasso at quagga.net>
+
+       * configure.ac: Add --enable-isis-topology to enable isisd topology
+         generator code.
+
 2005-04-02 Paul Jakma <paul@dishone.st>
 
        * INSTALL.quagga.txt: Add note about additional CVS build
index ccb02a084459d0b7173cbf64e0daf12b2938ee73..7c6258a1b9e04513d9d4f72a845320c557b195f4 100755 (executable)
@@ -5,7 +5,7 @@
 ##  Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro@zebra.org>
 ##  Portions Copyright (c) 2003 Paul Jakma <paul@dishone.st>
 ##
-## $Id: configure.ac,v 1.95 2005/04/02 16:01:05 ajs Exp $
+## $Id: configure.ac,v 1.96 2005/04/02 19:03:39 hasso Exp $
 AC_PREREQ(2.53)
 
 AC_INIT(Quagga, 0.99.0, [http://bugzilla.quagga.net])
@@ -180,6 +180,8 @@ AC_ARG_ENABLE(rtadv,
 [  --disable-rtadv               disable IPV6 router advertisement feature])
 AC_ARG_ENABLE(irdp,
 [  --enable-irdp                 enable IRDP server support in zebra])
+AC_ARG_ENABLE(isis_topology,
+[  --enable-isis-topology        enable IS-IS topology generator])
 AC_ARG_ENABLE(capabilities,
 [  --disable-capabilities        disable using POSIX capabilities])
 AC_ARG_ENABLE(gcc_ultra_verbose,
@@ -233,6 +235,17 @@ if test "${enable_irdp}" = "yes"; then
   AC_DEFINE(HAVE_IRDP,, IRDP )
 fi
 
+if test "${enable_isisd}" = "yes" && test "${enable_isis_topology}" = yes; then
+  AC_DEFINE(TOPOLOGY_GENERATE,,Enable IS-IS topology generator code)
+  ISIS_TOPOLOGY_INCLUDES="-I./topology"
+  ISIS_TOPOLOGY_DIR="topology"
+  ISIS_TOPOLOGY_LIB="./topology/libtopology.a"
+fi
+
+AC_SUBST(ISIS_TOPOLOGY_INCLUDES)
+AC_SUBST(ISIS_TOPOLOGY_DIR)
+AC_SUBST(ISIS_TOPOLOGY_LIB)
+
 if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then
   enable_user="quagga"
 elif test "${enable_user}" = "no"; then
@@ -1266,6 +1279,7 @@ AC_CONFIG_FILES([Makefile lib/Makefile zebra/Makefile ripd/Makefile
          redhat/quagga.spec 
          lib/version.h
          doc/defines.texi
+         isisd/topology/Makefile
          pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh
          pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh])
 AC_CONFIG_FILES([vtysh/extract.pl],[chmod +x vtysh/extract.pl])
index 6f4f395883a631e3fd70eeb11404cb579481bcb2..f3339016854faa51862f0ffb5db770921538c641 100644 (file)
@@ -1,3 +1,14 @@
+2005-04-02 Hasso Tepper <hasso at quagga.net>
+
+       * Makefile.am: Variables to handle conditonal compiling of topology
+         generator code.
+       * isis_lsp.c: lsppdu_realloc() is used by topology generator.
+       * isisd.c: Rename show_isis_topology_cmd to not conflict the one in
+         the isis_spf.c.
+       * isisd.h: Remove TOPOLOGY_GENERATE define, it will be defined in
+         toplevel config.h if topology generator is enabled.
+       * topology/Makefile.am: Handle the libtoolized Quagga libraries.
+
 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
        * isis_zebra.c: (isis_zebra_if_del) Call if_delete_retain instead
index 7993643dcc89bf4ebbf7f64ba9925dd080698106..ceb948c5bec9fa35d730e78b2af6c09c04cd8a2a 100644 (file)
@@ -1,12 +1,13 @@
 ## Process this file with automake to produce Makefile.in.
 
-# INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -Itopology
-INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib
+INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib \
+          @ISIS_TOPOLOGY_INCLUDES@
 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
 INSTALL_SDATA=@INSTALL@ -m 600
 LIBS = @LIBS@ 
 noinst_LIBRARIES = libisis.a
 sbin_PROGRAMS = isisd 
+SUBDIRS = @ISIS_TOPOLOGY_DIR@
 
 libisis_a_SOURCES = \
        isis_adjacency.c isis_lsp.c dict.c isis_circuit.c isis_pdu.c \
@@ -25,7 +26,7 @@ noinst_HEADERS = \
 isisd_SOURCES = \
        isis_main.c $(libisis_a_SOURCES)
 
-isisd_LDADD = ../lib/libzebra.la @LIBCAP@
+isisd_LDADD = @ISIS_TOPOLOGY_LIB@ ../lib/libzebra.la @LIBCAP@
 
 examplesdir = $(exampledir)
 dist_examples_DATA = isisd.conf.sample
index 52d8884ddddac33af4a051d4515d18a41a507d34..987a9b32b54a342bd4a4ffd28c9f5242a31d7298 100644 (file)
@@ -913,7 +913,6 @@ lsp_print_all (struct vty *vty, dict_t * lspdb, char detail, char dynhost)
   return lsp_count;
 }
 
-#if 0 /* Seems to be old code */
 /* this function reallocate memory to an lsp pdu, with an additional
  * size of memory, it scans the lsp and moves all pointers the
  * way they should */
@@ -940,7 +939,6 @@ lsppdu_realloc (struct isis_lsp * lsp, int memorytype, int size)
   return STREAM_DATA (lsp->pdu) + (lsp->lsp_header->pdu_len - size);
 #endif /* LSP_MEMORY_PREASSIGN */
 }
-#endif /* 0 */
 
 #if 0                          /* Saving the old one just in case :) */
 /*
index e4d73c30b41f089eb7c2b7626e1a43e5d8d16cfc..229f1356a9147af82aec7e673a2f9af046797ae0 100644 (file)
@@ -1595,9 +1595,9 @@ DEFUN (topology_generate_grid,
   return CMD_SUCCESS;
 }
 
-DEFUN (show_isis_topology,
-       show_isis_topology_cmd,
-       "show isis topology",
+DEFUN (show_isis_generated_topology,
+       show_isis_generated_topology_cmd,
+       "show isis generated-topology",
        SHOW_STR
        "clns network information\n"
        "CLNS neighbor adjacencies\n")
@@ -2138,8 +2138,8 @@ isis_init ()
   install_element (ISIS_NODE, &topology_generate_grid_cmd);
   install_element (ISIS_NODE, &topology_baseis_cmd);
   install_element (ISIS_NODE, &no_topology_baseis_cmd);
-  install_element (VIEW_NODE, &show_isis_topology_cmd);
-  install_element (ENABLE_NODE, &show_isis_topology_cmd);
+  install_element (VIEW_NODE, &show_isis_generated_topology_cmd);
+  install_element (ENABLE_NODE, &show_isis_generated_topology_cmd);
 #endif /* TOPOLOGY_GENERATE */
 
   isis_new (0);
index c347bf0cb294dff7a75a33b049e37dd649b8a4c6..77de12ec552f55e8c91195efe7506f63f5d40b91 100644 (file)
@@ -29,9 +29,6 @@
 /* #define EXTREME_DEBUG  */
 /* #define EXTREME_TLV_DEBUG */
 
-/* If you want topology stuff compiled in */
-/* #define TOPOLOGY_GENERATE */
-
 struct rmap
 {
   char *name;
index 045c15c840e4cb14ec35450c38708d4b451cfad5..ae6fa82191218e692cc81454b4298db1db76e12b 100644 (file)
@@ -10,7 +10,7 @@ libtopology_a_SOURCES = \
 
 libtopology_a_DEPENDENCIES = @LIB_REGEX@
 
-libtopology_a_LIBADD = @LIB_REGEX@ ../../lib/libzebra.a
+libtopology_a_LIBADD = @LIB_REGEX@ ../../lib/libzebra.la
 
 noinst_HEADERS = \
        spgrid.h