summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rw-r--r--ospfclient/subdir.am3
-rw-r--r--tools/subdir.am11
3 files changed, 17 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 885d5d1f5e..e1aa05b869 100644
--- a/configure.ac
+++ b/configure.ac
@@ -850,6 +850,9 @@ AC_ARG_WITH([frr-format],
AC_ARG_ENABLE([version_build_config],
AS_HELP_STRING([--disable-version-build-config], [do not include build configs in show version command]))
+AC_ARG_ENABLE([python_runtime],
+ AS_HELP_STRING([--disable-python-runtime], [do not install python scripts or have python runtime dependency]))
+
#if openssl, else use the internal
AS_IF([test "$with_crypto" = "openssl"], [
AC_CHECK_LIB([crypto], [EVP_DigestInit], [LIBS="$LIBS -lcrypto"], [], [])
@@ -2811,6 +2814,9 @@ AM_CONDITIONAL([PATHD], [test "$enable_pathd" != "no"])
AM_CONDITIONAL([PATHD_PCEP], [test "$enable_pathd" != "no"])
AM_CONDITIONAL([DP_DPDK], [test "$enable_dp_dpdk" = "yes"])
+
+AM_CONDITIONAL([PYTHON_RUNTIME_DEPENDENCY], [test "$enable_python_runtime" != "no"])
+
AC_CONFIG_FILES([Makefile],[
test "$enable_dev_build" = "yes" && makefile_devbuild="--dev-build"
${PYTHON} "${ac_abs_top_srcdir}/python/makefile.py" ${makefile_devbuild} || exit 1
diff --git a/ospfclient/subdir.am b/ospfclient/subdir.am
index 289ddd009d..2bf32544fd 100644
--- a/ospfclient/subdir.am
+++ b/ospfclient/subdir.am
@@ -7,10 +7,13 @@ lib_LTLIBRARIES += ospfclient/libfrrospfapiclient.la
noinst_PROGRAMS += ospfclient/ospfclient
#man8 += $(MANBUILD)/frr-ospfclient.8
+if PYTHON_RUNTIME_DEPENDENCY
sbin_SCRIPTS += \
ospfclient/ospfclient.py \
# end
endif
+endif
+
ospfclient_libfrrospfapiclient_la_LDFLAGS = $(LIB_LDFLAGS) -version-info 0:0:0
ospfclient_libfrrospfapiclient_la_LIBADD = lib/libfrr.la
diff --git a/tools/subdir.am b/tools/subdir.am
index 64ca0bd514..f2ed2332b8 100644
--- a/tools/subdir.am
+++ b/tools/subdir.am
@@ -13,15 +13,20 @@ EXTRA_PROGRAMS += \
# end
sbin_PROGRAMS += tools/ssd
+
+if PYTHON_RUNTIME_DEPENDENCY
sbin_SCRIPTS += \
- tools/frr-reload \
tools/frr-reload.py \
+ tools/generate_support_bundle.py \
+ tools/frr_babeltrace.py
+endif
+
+sbin_SCRIPTS += \
+ tools/frr-reload \
tools/frr \
\
tools/frrcommon.sh \
tools/frrinit.sh \
- tools/generate_support_bundle.py \
- tools/frr_babeltrace.py \
tools/watchfrr.sh \
# end