From 73ce1ab5a886193e8fbbe2a3697b5009162b2531 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 7 Jan 2025 10:35:53 -0500 Subject: configure: Reduce redundant info in CONFFLAGS for bfs --version --- configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 5156c91..5218e73 100755 --- a/configure +++ b/configure @@ -88,7 +88,7 @@ nproc() { } # Save the ./configure command line for bfs --version -export CONFFLAGS="$*" +export CONFFLAGS="" # Default to `make` MAKE="${MAKE-make}" @@ -97,6 +97,13 @@ MAKE="${MAKE-make}" for arg; do shift + # Only add --options to CONFFLAGS, so we don't print FLAG=values twice in bfs --version + case "$arg" in + -*) + CONFFLAGS="${CONFFLAGS}${CONFFLAGS:+ }${arg}" + ;; + esac + # --[(enable|disable|with|without)-]$name[=$value] value="${arg#*=}" name="${arg%%=*}" -- cgit v1.2.3