[FFmpeg-cvslog] configure: work around bug in ash shell

Mans Rullgard git at videolan.org
Sun Oct 14 14:49:33 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Fri Oct 12 21:40:07 2012 +0000| [ac17ccf73ad0cb6be74845ca05a1c18b2c5f7416] | committer: Mans Rullgard

configure: work around bug in ash shell

The ash 'test' builtin misbehaves if the first operand of a binary
operator looks like a unary operator.

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ac17ccf73ad0cb6be74845ca05a1c18b2c5f7416
---

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 26cd7ea..22becbf 100755
--- a/configure
+++ b/configure
@@ -593,7 +593,7 @@ print_config(){
 }
 
 print_enabled(){
-    test "$1" = -n && end=" " && shift || end="\n"
+    test x"$1" = x-n && end=" " && shift || end="\n"
     suf=$1
     shift
     for v; do



More information about the ffmpeg-cvslog mailing list