+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.
-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
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