public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gas: enable silent build rules
@ 2021-11-18  3:11 Mike Frysinger
  2021-11-24  4:27 ` Mike Frysinger
  2021-11-25 11:44 ` Nick Clifton
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2021-11-18  3:11 UTC (permalink / raw)
  To: binutils

---
 gas/configure    | 43 +++++++++++++++++++++++++++++++++++++++++--
 gas/configure.ac |  1 +
 2 files changed, 42 insertions(+), 2 deletions(-)

diff --git a/gas/configure b/gas/configure
index a3d3a7ae255f..b77c269981ce 100755
--- a/gas/configure
+++ b/gas/configure
@@ -3059,6 +3059,45 @@ END
   fi
 fi
 
+# Check whether --enable-silent-rules was given.
+if test "${enable_silent_rules+set}" = set; then :
+  enableval=$enable_silent_rules;
+fi
+
+case $enable_silent_rules in # (((
+  yes) AM_DEFAULT_VERBOSITY=0;;
+   no) AM_DEFAULT_VERBOSITY=1;;
+    *) AM_DEFAULT_VERBOSITY=0;;
+esac
+am_make=${MAKE-make}
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
+$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
+if ${am_cv_make_support_nested_variables+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if $as_echo 'TRUE=$(BAR$(V))
+BAR0=false
+BAR1=true
+V=1
+am__doit:
+	@$(TRUE)
+.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
+  am_cv_make_support_nested_variables=yes
+else
+  am_cv_make_support_nested_variables=no
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
+$as_echo "$am_cv_make_support_nested_variables" >&6; }
+if test $am_cv_make_support_nested_variables = yes; then
+    AM_V='$(V)'
+  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
+else
+  AM_V=$AM_DEFAULT_VERBOSITY
+  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
+fi
+AM_BACKSLASH='\'
+
 
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
@@ -10657,7 +10696,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10660 "configure"
+#line 10699 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10763,7 +10802,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10766 "configure"
+#line 10805 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
diff --git a/gas/configure.ac b/gas/configure.ac
index 127f758cb9cd..318811c56e54 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -31,6 +31,7 @@ AC_CONFIG_AUX_DIR(..)
 AC_CANONICAL_TARGET
 
 AM_INIT_AUTOMAKE
+AM_SILENT_RULES([yes])
 
 AC_PROG_CC
 AC_GNU_SOURCE
-- 
2.33.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gas: enable silent build rules
  2021-11-18  3:11 [PATCH] gas: enable silent build rules Mike Frysinger
@ 2021-11-24  4:27 ` Mike Frysinger
  2021-11-25 11:44 ` Nick Clifton
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2021-11-24  4:27 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 2782 bytes --]

if this is desirable, i can send patches for the other projects too
(e.g. bfd, binutils, and others using automake).

gdbsupport & sim are doing this already.
-mike

On 17 Nov 2021 22:11, Mike Frysinger via Binutils wrote:
> ---
>  gas/configure    | 43 +++++++++++++++++++++++++++++++++++++++++--
>  gas/configure.ac |  1 +
>  2 files changed, 42 insertions(+), 2 deletions(-)
> 
> diff --git a/gas/configure b/gas/configure
> index a3d3a7ae255f..b77c269981ce 100755
> --- a/gas/configure
> +++ b/gas/configure
> @@ -3059,6 +3059,45 @@ END
>    fi
>  fi
>  
> +# Check whether --enable-silent-rules was given.
> +if test "${enable_silent_rules+set}" = set; then :
> +  enableval=$enable_silent_rules;
> +fi
> +
> +case $enable_silent_rules in # (((
> +  yes) AM_DEFAULT_VERBOSITY=0;;
> +   no) AM_DEFAULT_VERBOSITY=1;;
> +    *) AM_DEFAULT_VERBOSITY=0;;
> +esac
> +am_make=${MAKE-make}
> +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
> +$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
> +if ${am_cv_make_support_nested_variables+:} false; then :
> +  $as_echo_n "(cached) " >&6
> +else
> +  if $as_echo 'TRUE=$(BAR$(V))
> +BAR0=false
> +BAR1=true
> +V=1
> +am__doit:
> +	@$(TRUE)
> +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
> +  am_cv_make_support_nested_variables=yes
> +else
> +  am_cv_make_support_nested_variables=no
> +fi
> +fi
> +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
> +$as_echo "$am_cv_make_support_nested_variables" >&6; }
> +if test $am_cv_make_support_nested_variables = yes; then
> +    AM_V='$(V)'
> +  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
> +else
> +  AM_V=$AM_DEFAULT_VERBOSITY
> +  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
> +fi
> +AM_BACKSLASH='\'
> +
>  
>  ac_ext=c
>  ac_cpp='$CPP $CPPFLAGS'
> @@ -10657,7 +10696,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 10660 "configure"
> +#line 10699 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -10763,7 +10802,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 10766 "configure"
> +#line 10805 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> diff --git a/gas/configure.ac b/gas/configure.ac
> index 127f758cb9cd..318811c56e54 100644
> --- a/gas/configure.ac
> +++ b/gas/configure.ac
> @@ -31,6 +31,7 @@ AC_CONFIG_AUX_DIR(..)
>  AC_CANONICAL_TARGET
>  
>  AM_INIT_AUTOMAKE
> +AM_SILENT_RULES([yes])
>  
>  AC_PROG_CC
>  AC_GNU_SOURCE
> -- 
> 2.33.0
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gas: enable silent build rules
  2021-11-18  3:11 [PATCH] gas: enable silent build rules Mike Frysinger
  2021-11-24  4:27 ` Mike Frysinger
@ 2021-11-25 11:44 ` Nick Clifton
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2021-11-25 11:44 UTC (permalink / raw)
  To: Mike Frysinger, binutils

Hi Mike,

> diff --git a/gas/configure.ac b/gas/configure.ac
> index 127f758cb9cd..318811c56e54 100644
> --- a/gas/configure.ac
> +++ b/gas/configure.ac
> @@ -31,6 +31,7 @@ AC_CONFIG_AUX_DIR(..)
>   AC_CANONICAL_TARGET
>   
>   AM_INIT_AUTOMAKE
> +AM_SILENT_RULES([yes])
>   
>   AC_PROG_CC
>   AC_GNU_SOURCE
> 

Approved - please apply,

 > if this is desirable, i can send patches for the other projects too
 > (e.g. bfd, binutils, and others using automake).

Please do.

Cheers
   Nick


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-25 11:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18  3:11 [PATCH] gas: enable silent build rules Mike Frysinger
2021-11-24  4:27 ` Mike Frysinger
2021-11-25 11:44 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).