[SCM] libav/experimental: Only check for altivec.h when not using Apple gcc and not adding -faltivec to CFLAGS. This avoids a couple of warnings of the type '#warning: Ignoring <altivec.h> because "-faltivec" specified'.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:17:00 UTC 2013


The following commit has been merged in the experimental branch:
commit 5dff04fc51dd280e7704f9f121056584ba297c24
Author: Diego Biurrun <diego at biurrun.de>
Date:   Sat Mar 15 09:47:49 2008 +0000

    Only check for altivec.h when not using Apple gcc and not adding -faltivec to
    CFLAGS. This avoids a couple of warnings of the type
    '#warning: Ignoring <altivec.h> because "-faltivec" specified'.
    
    Originally committed as revision 12445 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index c0116c1..a2e9574 100755
--- a/configure
+++ b/configure
@@ -1536,10 +1536,9 @@ if enabled altivec; then
         add_cflags "-faltivec"
     else
         add_cflags "-maltivec -mabi=altivec"
+        check_header altivec.h
     fi
 
-    check_header altivec.h
-
     # check if our compiler supports Motorola AltiVec C API
     enabled altivec_h &&
         inc_altivec_h="#include <altivec.h>" ||

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list