[MPlayer-cvslog] r19377 - trunk/configure

diego subversion at mplayerhq.hu
Sun Aug 13 01:58:26 CEST 2006


Author: diego
Date: Sun Aug 13 01:58:26 2006
New Revision: 19377

Modified:
   trunk/configure

Log:
Port ASMALIGN preprocessor macro for .align handling from FFmpeg.


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Sun Aug 13 01:58:26 2006
@@ -1698,6 +1698,7 @@
 _pthreads=yes
 _ass=auto
 _rpath=no
+_asmalign_pot=auto
 for ac_option do
   case "$ac_option" in
   # Skip 1st pass
@@ -2217,7 +2218,24 @@
     echores "failed"
     die "obsolete binutils version"
   fi
+
+echocheck ".align is a power of two"
+if test "$_asmalign_pot" = auto ; then
+_asmalign_pot=no
+cat > $TMPC << EOF
+asm (".align 3");
+EOF
+cc_check && _asmalign_pot=yes
+fi
+if test "$_asmalign_pot" = "yes" ; then
+  _def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"'
+else
+  _def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"'
 fi
+echores $_asmalign_pot
+
+fi #if x86
+
 
 #FIXME: This should happen before the check for CFLAGS..
 if ppc ; then
@@ -7642,6 +7660,9 @@
 $_def_map_memalign
 $_def_memalign_hack
 
+/* assembler handling of .align */
+$_def_asmalign_pot
+
 /* Define this if your system has the "alloca.h" header file */
 $_def_alloca
 



More information about the MPlayer-cvslog mailing list