From 65d0dfdefa1e7813a1cb14ce3ae6fae163d4caf5 Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Fri, 20 Jan 2017 16:17:25 -0500 Subject: Add --verbose configure option to control verbose build output Defaults to disabled to maintain the status quo. --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 1daaf26d..f52ce94c 100755 --- a/configure +++ b/configure @@ -38,6 +38,7 @@ oscar="default-on" twitter=1 purple=0 +verbose=0 doc=1 debug=0 strip=0 @@ -125,6 +126,8 @@ Option Description Default --pidfile=... $pidfile --config=... $config +--verbose=0/1 Disable/enable verbose build $verbose + --msn=0/1 Disable/enable MSN part $msn --jabber=0/1 Disable/enable Jabber part $jabber --oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar @@ -282,6 +285,12 @@ if [ "$asan" = "1" ]; then debug=1 fi +if [ "$verbose" = "0" ]; then + echo 'VERBOSE=@' >> Makefile.settings +else + echo 'VERBOSE=' >> Makefile.settings +fi + if [ "$debug" = "1" ]; then echo 'DEBUG=1' >> Makefile.settings CFLAGS="$CFLAGS -g3 -DDEBUG -O0" -- cgit v1.2.3 From 08b0ed8334fb32872f7a60e3b637db30ef9c50ef Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Tue, 24 Jan 2017 13:33:23 -0500 Subject: configure: respect autotools-like verbose flags for make In other words, running $(make V=1) will force a verbose build while $(make V=0) will force a silent build regardless of the verbose option set by the configure script. --- configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure') diff --git a/configure b/configure index f52ce94c..a5225890 100755 --- a/configure +++ b/configure @@ -291,6 +291,19 @@ else echo 'VERBOSE=' >> Makefile.settings fi +cat <>Makefile.settings + +# Enable/disable output verbosity +ifdef V +ifeq (\$(V),1) + VERBOSE= +else + VERBOSE=@ +endif +endif + +EOF + if [ "$debug" = "1" ]; then echo 'DEBUG=1' >> Makefile.settings CFLAGS="$CFLAGS -g3 -DDEBUG -O0" -- cgit v1.2.3