econf: check confgure --help for --disable-dep...
authorZac Medico <zmedico@gentoo.org>
Wed, 12 Jan 2011 15:13:14 +0000 (07:13 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 12 Jan 2011 15:13:14 +0000 (07:13 -0800)
This is the new behavior, for bug #211529.

bin/ebuild.sh
doc/package/ebuild/eapi/4.docbook
man/ebuild.5

index 7c14068c20c1f6a848a6b90356c3c59fa6e6da60..a8ed745915e651b0c943012db7ed6be371f5025f 100755 (executable)
@@ -511,7 +511,9 @@ econf() {
                fi
 
                # EAPI=4 adds --disable-dependency-tracking to econf
-               if ! hasq "$EAPI" 0 1 2 3 3_pre2 ; then
+               if ! hasq "$EAPI" 0 1 2 3 3_pre2 && \
+                       "${ECONF_SOURCE}/configure" --help 2>/dev/null | \
+                       grep -q disable-dependency-tracking ; then
                        set -- --disable-dependency-tracking "$@"
                fi
 
index e5f430fc86bbbe1aa1a11077081294ec32a5c7db..24471f1baaa5e385bbee154222706fb9f82cd687 100644 (file)
@@ -92,7 +92,8 @@ over the filename language suffix.
 <title>econf adds --disable-dependency-tracking</title>
 <para>
 The econf helper now adds --disable-dependency-tracking to the
-configure arguments.
+configure arguments if the string disable-dependency-tracking
+occurs in the output configure --help.
 </para>
 </section>
 <section id='package-ebuild-eapi-4-helpers-use-with-enable-empty-third-arg'>
index ae2034eb1796be8624ca936f33ef24b5b5cafe3a..94d65f542f69dfca7ed60fdf5e4b56cf5763cf9d 100644 (file)
@@ -932,7 +932,9 @@ calls \fBdie\fR if the configure script fails.
 Beginning with \fBEAPI 3\fR, \fBeconf\fR uses the \fB${EPREFIX}\fR
 variable which is disregarded for prior \fBEAPI\fR values.
 Beginning with \fBEAPI 4\fR, \fBeconf\fR adds
-\fI\-\-disable\-dependency\-tracking\fR to the arguments.
+\fI\-\-disable\-dependency\-tracking\fR to the arguments if the
+string \fIdisable\-dependency\-tracking\fR occurs in the output
+of \fIconfigure \-\-help\fR.
 .TP
 \fBemake\fR \fI[make options]\fR
 This is used as a replacement for make.  Performs 'make ${MAKEOPTS}