diff options
| author | Mark Stapp <mjs@labn.net> | 2022-12-01 13:57:46 -0500 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2022-12-02 05:56:24 +0000 |
| commit | 7bea90ebbc8f76993417b59a967b36e2cdf4094a (patch) | |
| tree | 4719ceb1819232b085760b9c44e79149c7cc4955 /configure.ac | |
| parent | 7d7b33a0281b233757606bb1fa4e9c056c57084f (diff) | |
build: enable pim6d by default
Change configure.ac so that pim6d is enabled by default; a
command-line option can disable it.
Signed-off-by: Mark Stapp <mjs@labn.net>
(cherry picked from commit cee45b84f4648750cdfae314cca7b91ee3a696a2)
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index d77784d928..5af8022191 100644 --- a/configure.ac +++ b/configure.ac @@ -636,7 +636,7 @@ AC_ARG_ENABLE([isisd], AC_ARG_ENABLE([pimd], AS_HELP_STRING([--disable-pimd], [do not build pimd])) AC_ARG_ENABLE([pim6d], - AS_HELP_STRING([--enable-pim6d], [build pim6d])) + AS_HELP_STRING([--disable-pim6d], [do not build pim6d])) AC_ARG_ENABLE([pbrd], AS_HELP_STRING([--disable-pbrd], [do not build pbrd])) AC_ARG_ENABLE([sharpd], @@ -1753,7 +1753,7 @@ AS_IF([test "$enable_pimd" != "no"], [ AC_DEFINE([HAVE_PIMD], [1], [pimd]) ]) -AS_IF([test "$enable_pim6d" = "yes"], [ +AS_IF([test "$enable_pim6d" != "no"], [ AC_DEFINE([HAVE_PIM6D], [1], [pim6d]) ]) @@ -2066,7 +2066,7 @@ if test "$enable_rpki" = "yes"; then fi dnl ------------------------------------ -dnl pimd is not supported on OpenBSD and MacOS +dnl pimd and pim6d not supported on OpenBSD and MacOS dnl ------------------------------------ if test "$enable_pimd" != "no"; then AC_MSG_CHECKING([for pimd OS support]) @@ -2085,6 +2085,23 @@ case "$host_os" in esac fi +if test "$enable_pim6d" != "no"; then +AC_MSG_CHECKING([for pim6d OS support]) +case "$host_os" in + darwin*) + AC_MSG_RESULT([no]) + enable_pim6d="no" + ;; + openbsd*) + AC_MSG_RESULT([no]) + enable_pim6d="no" + ;; + *) + AC_MSG_RESULT([yes]) + ;; +esac +fi + dnl ------------------------------------- dnl VRRP is only supported on linux dnl ------------------------------------- @@ -2717,7 +2734,7 @@ AM_CONDITIONAL([BABELD], [test "$enable_babeld" != "no"]) AM_CONDITIONAL([OSPF6D], [test "$enable_ospf6d" != "no"]) AM_CONDITIONAL([ISISD], [test "$enable_isisd" != "no"]) AM_CONDITIONAL([PIMD], [test "$enable_pimd" != "no"]) -AM_CONDITIONAL([PIM6D], [test "$enable_pim6d" = "yes"]) +AM_CONDITIONAL([PIM6D], [test "$enable_pim6d" != "no"]) AM_CONDITIONAL([PBRD], [test "$enable_pbrd" != "no"]) AM_CONDITIONAL([SHARPD], [test "$enable_sharpd" = "yes"]) AM_CONDITIONAL([STATICD], [test "$enable_staticd" != "no"]) |
