[Ffmpeg-devel] [PATCH] Check whether EBX is available
Panagiotis Issaris
takis
Wed Mar 14 21:39:43 CET 2007
Hi M?ns,
M?ns Rullg?rd schreef:
> Panagiotis Issaris <takis.issaris at uhasselt.be> writes:
>> The attached patch adds a test to configure to see whether EBX is
>> available when compiling using the current compilation flags and
>> compiler. Together with the other patch [1] which checks whether EBP is
>> available these patches are intended to make --disable-opts work again,
>> by checking for CONFIG_EBP and CONFIG_EBX in the code sections that
>> currently fail to compile when configured with --disable-opts.
>>
>> configure | 12 ++++++++++++
>> 1 file changed, 12 insertions(+)
>>
>> With friendly regards,
>> Takis
>>
>> [1] http://article.gmane.org/gmane.comp.video.ffmpeg.devel/46433
>> diff --git a/configure b/configure
>> index 87301bc..af5cfad 100755
>> --- a/configure
>> +++ b/configure
>> @@ -1402,6 +1402,14 @@ int main(){
>> }
>> EOF
>>
>> +# check wether EBX is available
>> +ebx_available=no
>> +check_cc <<EOF && ebx_available=yes
>> +int main(){
>> + asm volatile ("":::"%ebx");
>> +}
>> +EOF
>
> Should use "enable ebx_available" and be conditional on x86.
Done.
>> # check for assembler specific support
>>
>> if test $arch = "powerpc"; then
>> @@ -1976,6 +1984,10 @@ if enabled ebp_available; then
>> echo "#define CONFIG_EBP 1" >> $TMPH
>> fi
>>
>> +if enabled ebx_available; then
>> + echo "#define CONFIG_EBX 1" >> $TMPH
>> +fi
>
> Add ebx_available to CONFIG_LIST instead.
Done.
Updated patch attached.
configure | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
--
With friendly regards,
Takis
vCard: http://www.issaris.org/pi.vcf
Public key: http://www.issaris.org/pi.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pi-20070314T213509-ffmpeg-ebx_available2.diff
Type: text/x-patch
Size: 715 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070314/8a33cd1f/attachment.bin>
More information about the ffmpeg-devel
mailing list