[FFmpeg-cvslog] r20397 - trunk/configure

Michael Kostylev michael.kostylev
Wed Oct 28 22:43:07 CET 2009


On Wed Oct 28 20:48:38 2009
M?ns Rullg?rd wrote:

>>>>>>>> +elif $cc -V 2>&1 | grep -q Sun; then
>>>>>>>> +    cc_type=suncc
>>>>>>>> +    cc_version="AV_STRINGIFY(__SUNPRO_C)"
>>>>>>>> +    DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\\\\," -e "1!s,^.*: , ," > $(@:.o=.d)'
>>>>>>> 
>>>>>>> Hmm.. are you sure those sed expressions are right?
>>>>>>> At least running on OpenSolaris I get
>>>>>>>> sed: -e expression #2, char 11: unterminated 's' command
>>>>>>> and it seem that it is GNU sed that is in the path...
>>>>>> 
>>>>>> % which sed
>>>>>> /usr/xpg4/bin/sed
>>>>> 
>>>>> Uh, sed expressions that don't work with POSIX sed surely aren't a good
>>>>> idea I'd say...
>>>>> However going by FATE it works with x86_64 / Linux / suncc, so something
>>>>> sure is strange here.
>>>>
>>>> config.mak generated with bash:
>>>> CCDEP=$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\\\\," -e "1!s,^.*: , ," > $(@:.o=.d
>>>>
>>>> config.mak generated with POSIX sh:
>>>> CCDEP=$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\," -e "1!s,^.*: , ," > $(@:.o=.d)
>>> 
>>> Which shell did that?
>>
>> The latter? dash, mksh in POSIX mode, Solaris sh.
> 
> I'm curious.  Can you try to find a simple test demonstrating the
> difference?

TEST_STRING='\\'
echo $TEST_STRING
printf '%s\n' $TEST_STRING

Michael



More information about the ffmpeg-cvslog mailing list