Add --quiet-build (on by default)
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 25 Aug 2010 16:30:25 +0000 (12:30 -0400)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 25 Aug 2010 16:30:57 +0000 (12:30 -0400)
libgc/configure.in

index 2f7e173189b28e73b847343718fbfe356f6e6963..2bd596bb8c4e8b2d4c2e473c2cf3fbc7e53f74ed 100644 (file)
@@ -489,6 +489,7 @@ if test "${enable_gc_assertions}" = yes; then
     AC_DEFINE(GC_ASSERTIONS)
 fi
 
+AC_ARG_ENABLE(quiet-build, [  --enable-quiet-build  Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
 AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
 
 if test "${multilib}" = "yes"; then
@@ -497,6 +498,11 @@ else
   multilib_arg=
 fi
 
+if test x$enable_quiet_build = xyes; then
+   AC_CONFIG_COMMANDS([quiet], [for i in `find . -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
+   AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
+fi
+
 AC_OUTPUT(Makefile
 include/Makefile
 include/private/Makefile