]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
maint: factor out ltmain.sh variable deletion.
authorGary V. Vaughan <gary@gnu.org>
Sun, 26 Sep 2010 09:21:10 +0000 (16:21 +0700)
committerGary V. Vaughan <gary@gnu.org>
Sat, 22 Oct 2011 11:36:16 +0000 (18:36 +0700)
* Makefile.am (ltmain_sh_edit): Expand upon bootstrap edit by
adding the extra line to delete boilerplate variable settings
from libltdl/config/general.m4sh that don't apply here.
(libltdl/config/ltmain.sh): Use it.

ChangeLog
Makefile.am

index 948165095219d3add6c1b09a0c77b361e4034779..39326049b2b648c819e05dcbb76e5e2a8c5ad7fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-09-26  Gary V. Vaughan  <gary@gnu.org>
+
+       maint: factor out ltmain.sh variable deletion.
+       * Makefile.am (ltmain_sh_edit): Expand upon bootstrap edit by
+       adding the extra line to delete boilerplate variable settings
+       from libltdl/config/general.m4sh that don't apply here.
+       (libltdl/config/ltmain.sh): Use it.
+
 2010-09-25  Gary V. Vaughan  <gary@gnu.org>
 
        maint: DRYing out `Makefile.am' file paths.
index e2e77800ccf6812f9301711c34958aa17a90ed92..059f50e7d602a3e8ffa71962f6255725f13772db 100644 (file)
@@ -117,6 +117,12 @@ bootstrap_edit  = $(SED) \
                  -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \
                  -e 's,@VERSION\@,$(VERSION),g'
 
+## ltmain.sh needs some additional editing to remove unsubstituted
+## variable defaulting lines, because ltmain.sh never gets passed
+## through $(configure_edit).
+ltmain_sh_edit = $(bootstrap_edit) \
+                 -e '/^: \$${.*="@.*@"}$$/d'
+
 ## We build ltversion.m4 here, instead of from config.status,
 ## because config.status is rerun each time one of configure's
 ## dependencies change and ltversion.m4 happens to be a configure
@@ -163,9 +169,8 @@ $(ltmain_sh): $(ltmain_m4sh) $(sh_files) $(configure_ac) ChangeLog
        done; \
        if $$rebuild; then \
          rm -f '$@'; \
-         echo "$(LT_M4SH) '$(ltmain.m4sh)' | $(bootstrap_edit) > '$@'"; \
-         $(LT_M4SH) '$(ltmain_m4sh)' \
-             | $(bootstrap_edit) -e '/^: \$${.*="@.*@"}$$/d' > '$@'; \
+         echo "$(LT_M4SH) '$(ltmain.m4sh)' | $(ltmain_sh_edit) > '$@'"; \
+         $(LT_M4SH) '$(ltmain_m4sh)' | $(ltmain_sh_edit) > '$@'; \
          chmod a-w '$@'; \
        fi