[FFmpeg-devel] Build problem

Måns Rullgård mans
Thu Feb 5 00:25:02 CET 2009


David DeHaven <dave at sagetv.com> writes:

>>> Index: configure
>>> ===================================================================
>>> --- configure	(revision 16966)
>>> +++ configure	(working copy)
>>> @@ -1267,6 +1267,10 @@
>>>         *) die_unknown "$opt" ;;
>>>     esac
>>>     ;;
>>> +    --enable-yasm) enable yasm
>>> +    ;;
>>> +    --disable-yasm) disable yasm
>>> +    ;;
>>
>> The correct way is to add yasm to the CMDLINE_SELECT list.
>
> I figured there'd be an easier way :)
>
>>>     --enable-?*|--disable-?*)
>>>     eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
>>>     if is_in $option $COMPONENT_LIST; then
>>> @@ -1787,7 +1791,9 @@
>>>         macho64)              append YASMFLAGS "-DPIC -DPREFIX" ;;
>>>         *)                    append YASMFLAGS "-DPREFIX"  ;;
>>>     esac
>>> -    check_yasm "pabsw xmm0, xmm0" && enable yasm
>>> +    if ! disabled yasm && ! enabled yasm; then
>>> +        check_yasm "pabsw xmm0, xmm0" && enable yasm
>>> +    fi
>>
>> disabled yasm || check_yasm "pabsw xmm0, xmm0" && enable yasm
>
> I tried that and it re-enabled it when I specified --disable-yasm:

Sorry, that line should be like this:

disabled yasm || { check_yasm "pabsw xmm0, xmm0" && enable yasm; }

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




More information about the ffmpeg-devel mailing list