+2007-02-23 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (tiny change)
+
+ * libltdl/config/general.m4sh (sed_double_backslash): Fix
+ hacky sed script to avoid limitations but retain portability to
+ Solaris /bin/sed. Remove old obsolete cruft.
+
2007-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/config/ltmain.m4sh (func_mode_link): Fix the check for
# in input to double_quote_subst, that '$' was protected from expansion.
# Since each input `\' is now two `\'s, look for any number of runs of
# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
-#
-# Note in the first, non-portable but general version, the embedded single
-# quotes serve only to enhance readability.
-#sed_double_backslash='s/^\(\(''\\\\''\\\\''\)*''\\\\''\)\$/\1\\$/;
-# s/\([[^\\]]\(''\\\\''\\\\''\)*''\\\\''\)\$/\1\\$/g'
bs='\\'
bs2='\\\\'
bs4='\\\\\\\\'
dollar='\$'
sed_double_backslash="\
+ s/$bs4/&\\
+/g
s/^$bs2$dollar/$bs&/
- s/^$bs4$bs2$dollar/$bs&/
- s/^$bs4$bs4$bs2$dollar/$bs&/
- s/^$bs4$bs4$bs4$bs2$dollar/$bs&/
- s/^$bs4$bs4$bs4$bs4$bs2$dollar/$bs&/
- s/^$bs4$bs4$bs4$bs4$bs4$bs2$dollar/$bs&/
- s/\\([[^$bs]]\\)\\($bs2$dollar\\)/\\1$bs\\2/g
- s/\\([[^$bs]]\\)\\($bs4$bs2$dollar\\)/\\1$bs\\2/g
- s/\\([[^$bs]]\\)\\($bs4$bs4$bs2$dollar\\)/\\1$bs\\2/g
- s/\\([[^$bs]]\\)\\($bs4$bs4$bs4$bs2$dollar\\)/\\1$bs\\2/g
- s/\\([[^$bs]]\\)\\($bs4$bs4$bs4$bs4$bs2$dollar\\)/\\1$bs\\2/g
- s/\\([[^$bs]]\\)\\($bs4$bs4$bs4$bs4$bs4$bs2$dollar\\)/\\1$bs\\2/g"
+ s/\\([[^$bs]]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
+ s/\n//g"
# Standard options:
opt_dry_run=false