From 1a7f64b157c659653f15903b57cd6dc9b68156e5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 22 Mar 2008 18:33:15 +0100 Subject: portability: work around a "busybox sed" limitation * configure.ac: While every other sed tested supports usage like '/\(re\)/{s//\1/;...}', and POSIX appears to requires this, busybox's sed does not support it. So duplicate the regexp: '/\(re\)/{s/\(re\)/\1/;...}'. Reported by Vincent Lefevre: . --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cc4e15295..14505fc52 100644 --- a/configure.ac +++ b/configure.ac @@ -280,7 +280,8 @@ no_install_progs_default=`echo "$t"|sed 's/ $//'` # The compromise is to ensure that the space-separated list extracted # above matches the literal 2nd argument below. c="$srcdir/configure.ac" -t=`sed -n '/^g''l_INCLUDE_EXCLUDE_PROG(.* [\[\(.*\)\]])/{s//\1/;s/,/ /gp +re='^g''l_INCLUDE_EXCLUDE_PROG(.* [\[\(.*\)\]])' +t=`sed -n '/'"$re"'/{s/'"$re"'/\1/;s/,/ /gp }' $c` case $t in $no_install_progs_default) ;; -- cgit v1.2.3-54-g00ecf