[debhelper-devel] [RFC 3/4] configure gets --*-silent-rules depending on DH_QUIET
Bernhard R. Link
brlink at debian.org
Mon Dec 29 12:36:09 UTC 2014
If DH_QUIET is set, give configure a --enable-silent-rules.
If it is not set, always give --disable-silent-rules (Closing #551463
for good).
Signed-off-by: Bernhard R. Link <brlink at debian.org>
---
Debian/Debhelper/Buildsystem/autoconf.pm | 4 +++-
t/buildsystems/autoconf/configure | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Debian/Debhelper/Buildsystem/autoconf.pm b/Debian/Debhelper/Buildsystem/autoconf.pm
index 56a4288..8177420 100644
--- a/Debian/Debhelper/Buildsystem/autoconf.pm
+++ b/Debian/Debhelper/Buildsystem/autoconf.pm
@@ -37,7 +37,9 @@ sub configure {
push @opts, "--infodir=\${prefix}/share/info";
push @opts, "--sysconfdir=/etc";
push @opts, "--localstatedir=/var";
- if (defined $ENV{DH_VERBOSE} && $ENV{DH_VERBOSE} ne "") {
+ if (defined $ENV{DH_QUIET} && $ENV{DH_QUIET} ne "") {
+ push @opts, "--enable-silent-rules";
+ } else {
push @opts, "--disable-silent-rules";
}
my $multiarch=dpkg_architecture_value("DEB_HOST_MULTIARCH");
diff --git a/t/buildsystems/autoconf/configure b/t/buildsystems/autoconf/configure
index adea14e..b606f9e 100755
--- a/t/buildsystems/autoconf/configure
+++ b/t/buildsystems/autoconf/configure
@@ -14,6 +14,7 @@ my @OPTIONS=qw(
^--sysconfdir=/etc$
^--localstatedir=/var$
^--libexecdir=\$\{prefix\}/lib/.*$
+ ^--disable-silent-rules$
^--disable-maintainer-mode$
^--disable-dependency-tracking$
);
--
2.1.4
Bernhard R. Link
--
F8AC 04D5 0B9B 064B 3383 C3DA AFFC 96D1 151D FFDC
More information about the debhelper-devel
mailing list