summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-08 21:06:41 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-08 21:06:41 (EDT)
commitbb5239471d3628e79dc44fa3345a052f88199eeb (patch)
treecbef6fc904a70c577ca4f054fa0eff77b9e51424
parente5157f0dc5557f504ac752bb4687499a51e59bae (diff)
Use clean macro names in makefiles.
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 5b9daf7..b9ddeb9 100755
--- a/configure
+++ b/configure
@@ -309,6 +309,7 @@ write_makefiles()
# Make a script to edit input makefiles.
_sed_script=''
for _var in ${subst_vars}; do
+ _var="$(printf '%s' "${_var}" | tr -c '[a-z0-9]' '_')"
_sed_script="${_sed_script}s&@${_var}@&$(eval echo \$\{"${_var}"\})&g;"
done