changeset 29158:2966d20b6be5

Add check for XFORM ASM, needed by FFmpeg/PPC.
author diego
date Mon, 20 Apr 2009 00:10:09 +0000
parents e67f8e8d2e74
children 36f71dfbd668
files configure
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Apr 19 22:27:02 2009 +0000
+++ b/configure	Mon Apr 20 00:10:09 2009 +0000
@@ -2611,6 +2611,17 @@
     test "$_altivec" = yes && CFLAGS="$CFLAGS $_altivec_gcc_flags"
 fi
 
+if ppc ; then
+def_xform_asm='#define HAVE_XFORM_ASM 0'
+xform_asm=no
+echocheck "XFORM ASM support"
+  cat > $TMPC << EOF
+int main(void) { __asm__ volatile ("lwzx 0, %y0" :: "Z"(*(int*)0)"); return 0; }
+EOF
+cc_check && xform_asm=yes && def_xform_asm='#define HAVE_XFORM_ASM 1'
+echores "$xform_asm"
+fi
+
 if arm ; then
   echocheck "ARM pld instruction"
   cat > $TMPC << EOF
@@ -8787,6 +8798,7 @@
 $def_pthreads
 $def_ten_operands
 $def_threads
+$def_xform_asm
 $def_yasm
 
 #define CONFIG_FASTDIV 0