[Ffmpeg-devel] [PATCH] Check whether EBX is available
Måns Rullgård
mans
Wed Mar 14 19:41:54 CET 2007
Panagiotis Issaris <takis.issaris at uhasselt.be> writes:
> Hi,
>
> 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.
> # 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.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list