[FFmpeg-cvslog] r20397 - trunk/configure

Måns Rullgård mans
Wed Oct 28 21:48:38 CET 2009


Michael Kostylev <michael.kostylev at gmail.com> writes:

> On Wed Oct 28 20:33:47 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?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-cvslog mailing list