[Ffmpeg-devel] [BUG] Compilation failure when using --disable-opts

Måns Rullgård mans
Wed Mar 14 19:40:43 CET 2007


Panagiotis Issaris <takis.issaris at uhasselt.be> writes:

> The attached patch defines CONFIG_EBP in config.h if EBP is available.
>
>  configure |   16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>
> With friendly regards,
> Takis
> Index: configure
> ===================================================================
> --- configure	(revision 8405)
> +++ configure	(working copy)
> @@ -1390,6 +1390,18 @@
>      die "C compiler test failed."
>  fi
>  
> +# check whether EBP is available
> +ebp_available=no
> +check_exec <<EOF && ebp_available=yes

check_exec <<EOF && enable ebp_available

> +int main(){
> +    volatile int i=0;
> +    asm volatile (
> +        "xorl %%ebp, %%ebp"
> +    ::: "%ebp");
> +    return i;
> +}
> +EOF

All of the above should be conditional on x86 target.  And what's the
"int i" good for?

> @@ -1960,6 +1972,10 @@
>    echo "#define CONFIG_SMALL 1" >> $TMPH
>  fi
>  
> +if enabled ebp_available; then
> +  echo "#define CONFIG_EBP 1" >> $TMPH
> +fi

Add ebp_available to CONFIG_LIST instead.

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




More information about the ffmpeg-devel mailing list