diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-03-18 18:35:55 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-03-18 18:38:21 +0100 |
commit | c4256d931efe445aab9153486c9e5082d23056eb (patch) | |
tree | 9ba83eb80cd80ef16f025c37edf3282c78ba0097 /configure | |
parent | 8eb6eb35ae475be271cef614af0256282286606b (diff) | |
download | ghdl-c4256d931efe445aab9153486c9e5082d23056eb.tar.gz ghdl-c4256d931efe445aab9153486c9e5082d23056eb.tar.bz2 ghdl-c4256d931efe445aab9153486c9e5082d23056eb.zip |
configure: work-around unexpected regexp range with sv_SE locale. Fix #1581
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -338,11 +338,14 @@ rm -f config.status eval vval=\$$v echo $v=\"$vval\" done - sed_opts=`echo $subst_vars | sed -e "s/\\([a-zA-Z_]*\\)/ -e \"s%@\1@%\$\1%g\"/g"` subst_files="ghdl.gpr Makefile" echo "for f in $subst_files; do" echo ' echo "Creating $f"' - echo " sed $sed_opts" '< $srcdir/${f}.in > $f' + echo " sed \\" + for v in $subst_vars; do + echo " -e \"s%@$v@%\$$v%g\" \\" + done + echo ' < $srcdir/${f}.in > $f' echo "done" } > config.status || \ { |