On Tue, Aug 05, 2014 at 01:35:22PM +0200, Janne Grunau wrote:
> From: Janne Grunau <[email protected]>
> --- a/configure
> +++ b/configure
> @@ -3760,22 +3760,32 @@ unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 
> 8 | 'E';
>  
> -
> -if enabled asm; then
> -    enabled     arm         && nogas=die
> -    enabled_all ppc altivec && nogas=warn
> -    as=${gas:=$as}
> -    check_as <<EOF && enable gnu_as || \
> -        $nogas "GNU assembler not found, install gas-preprocessor"
> -.macro m n
> -\n: .int 0
> +check_gas() {
> +    log "check_gas using '$as' as AS"
> +    # :vararg is used on aarch64, arm and ppc altivec
> +    check_as <<EOF || return 1
> +.macro m n, y:vararg=0
> +\n: .int \y
>  .endm
>  m x
>  EOF
> -
> -    check_as <<EOF || $nogas "GNU assembler not found, install 
> gas-preprocessor"
> +    # .altmacro is only used in arm asm
> +    ! enabled arm || check_as <<EOF || return 1

Will .altmacro remain used only in ARM asm?

>  .altmacro
>  EOF
> +    enable gnu_as
> +    return 0
> +}
> +
> +if enabled asm; then
> +    enabled     arm aarch64 && nogas=die
> +    enabled_all ppc altivec && nogas=warn

enabled_any arm aarch64

Checking both ppc and altivec is redundant, but that's just a mental note for 
me.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to