diff options
author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2020-06-17 18:48:34 +0200 |
---|---|---|
committer | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2020-06-19 18:15:43 +0200 |
commit | e063f27136dd493acf1d8b0233d2c2b4c4fd8cd2 (patch) | |
tree | 1c1c17c17dd99825ee1e915936c5c39327b4b585 /configure.ac | |
parent | Merge pull request #6615 from opensourcerouting/build-assorted-20200619 (diff) | |
download | frr-e063f27136dd493acf1d8b0233d2c2b4c4fd8cd2.tar.xz frr-e063f27136dd493acf1d8b0233d2c2b4c4fd8cd2.zip |
build: Allow removal of build configs from version string
A new config option `--disable-version-build-config`
allows you to show short version string by dropping
"configured with:" and all of its build configs
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d4c652c6e..3c65bc91a 100755 --- a/configure.ac +++ b/configure.ac @@ -645,6 +645,9 @@ AC_ARG_WITH([crypto], AC_ARG_WITH([frr-format], AS_HELP_STRING([--with-frr-format[=<.../frr-format.so>]], [use frr-format GCC plugin])) +AC_ARG_ENABLE([version-build-config], + AS_HELP_STRING([--disable-version-build-config], [do not include build configs in show version command])) + #if openssl, else use the internal AS_IF([test "$with_crypto" = "openssl"], [ AC_CHECK_LIB([crypto], [EVP_DigestInit], [LIBS="$LIBS -lcrypto"], [], []) @@ -1682,6 +1685,10 @@ case "${enable_bmp}" in ;; esac +if test "$enable_version_build_config" != "no";then + AC_DEFINE([ENABLE_VERSION_BUILD_CONFIG], [1], [Report build configs in show version]) +fi + dnl ########################################################################## dnl LARGE if block if test "$enable_clippy_only" != "yes"; then |