forked from Mirror/frr
build: Make MULTIPATH_NUM a config.h value
MULTIPATH_NUM is setup inside of the Makefile.am DEFS to pass in on the command line. This fix moves the MULTIPATH_NUM from there into config.h. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
3ee39b5ba0
commit
7a6da5bad3
|
@ -1,7 +1,7 @@
|
|||
## Process this file with automake to produce Makefile.in.
|
||||
|
||||
INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DMULTIPATH_NUM=@MULTIPATH_NUM@
|
||||
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
|
||||
INSTALL_SDATA=@INSTALL@ -m 600
|
||||
|
||||
AM_CFLAGS = $(PICFLAGS) $(WERROR)
|
||||
|
|
|
@ -412,14 +412,14 @@ AC_DEFINE_UNQUOTED(CONFIGFILE_MASK, ${enable_configfile_mask}, Mask for config f
|
|||
enable_logfile_mask=${enable_logfile_mask:-0600}
|
||||
AC_DEFINE_UNQUOTED(LOGFILE_MASK, ${enable_logfile_mask}, Mask for log files)
|
||||
|
||||
MULTIPATH_NUM=1
|
||||
MPATH_NUM=1
|
||||
|
||||
case "${enable_multipath}" in
|
||||
0)
|
||||
MULTIPATH_NUM=64
|
||||
MPATH_NUM=64
|
||||
;;
|
||||
[[1-9]|[1-9][0-9]])
|
||||
MULTIPATH_NUM="${enable_multipath}"
|
||||
MPATH_NUM="${enable_multipath}"
|
||||
;;
|
||||
"")
|
||||
;;
|
||||
|
@ -428,7 +428,7 @@ case "${enable_multipath}" in
|
|||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(MULTIPATH_NUM)
|
||||
AC_DEFINE_UNQUOTED(MULTIPATH_NUM, $MPATH_NUM, Maximum number of paths for a route)
|
||||
|
||||
dnl -----------------------------------
|
||||
dnl Add extra version string to package
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## Process this file with automake to produce Makefile.in.
|
||||
|
||||
INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
|
||||
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DMULTIPATH_NUM=@MULTIPATH_NUM@
|
||||
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
|
||||
INSTALL_SDATA=@INSTALL@ -m 600
|
||||
|
||||
LIB_IPV6 = @LIB_IPV6@
|
||||
|
|
Loading…
Reference in a new issue