diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-11-16 21:10:45 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-11-16 21:10:45 -0500 |
commit | bea62b42b26e8ec4868a7164be34227591da3310 (patch) | |
tree | 4576ec871b249c7341742084be5e675fb7cef01a /Debian/Debhelper | |
parent | 62ece7f4459ec9f924aa73427b7a9f3246cea34e (diff) |
autoconf: If configure fails, cat config.log. Intended to make it easier to debug configure script failures on autobuilders. Closes: #556384
Diffstat (limited to 'Debian/Debhelper')
-rw-r--r-- | Debian/Debhelper/Buildsystem/autoconf.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Debian/Debhelper/Buildsystem/autoconf.pm b/Debian/Debhelper/Buildsystem/autoconf.pm index 7229fc71..59b6c6b2 100644 --- a/Debian/Debhelper/Buildsystem/autoconf.pm +++ b/Debian/Debhelper/Buildsystem/autoconf.pm @@ -49,7 +49,15 @@ sub configure { } $this->mkdir_builddir(); - $this->doit_in_builddir($this->get_source_rel2builddir("configure"), @opts, @_); + eval { + $this->doit_in_builddir($this->get_source_rel2builddir("configure"), @opts, @_); + }; + if ($@) { + if (-e $this->get_buildpath("config.log")) { + $this->doit_in_builddir("cat config.log"); + } + die $@; + } } 1 |