[Ffmpeg-devel] configure script broken with dash as sh

John Dalgliesh johnd
Wed Aug 16 11:52:41 CEST 2006


On Tue, 15 Aug 2006, M?ns Rullg?rd wrot
> John Dalgliesh said:
>> On Mon, 14 Aug 2006, Alan Curry wrote:
>>> You can't portably echo a backslash.
>>
>> As printf isn't yet used in the configure script, this patch uses tr.
>
> Please use printf instead.  It's much cleaner.

Patch attached.

Oh, and bags not fixing it if someone turns up with a system w/out printf.

{P^/
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 6003)
+++ configure	(working copy)
@@ -2108,9 +2108,9 @@
 fi
 
 if test "$asmalign_pot" = "yes" ; then
-  echo '#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"' >> $TMPH
+  printf '#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\\n\\t"\n' >> $TMPH
 else
-  echo '#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"' >> $TMPH
+  printf '#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\\n\\t"\n' >> $TMPH
 fi
 
 



More information about the ffmpeg-devel mailing list