Mercurial > mplayer.hg
comparison configure @ 32253:163b9afe4e88
Move ASMALIGN check into x86 section of configure.
author | diego |
---|---|
date | Tue, 21 Sep 2010 13:51:33 +0000 |
parents | 656ef01dcd16 |
children | 70cdc0575aff |
comparison
equal
deleted
inserted
replaced
32252:656ef01dcd16 | 32253:163b9afe4e88 |
---|---|
2636 die "obsolete binutils version" | 2636 die "obsolete binutils version" |
2637 fi | 2637 fi |
2638 | 2638 |
2639 fi #if x86_32 | 2639 fi #if x86_32 |
2640 | 2640 |
2641 echocheck ".align is a power of two" | |
2642 if test "$_asmalign_pot" = auto ; then | |
2643 _asmalign_pot=no | |
2644 inline_asm_check '".align 3"' && _asmalign_pot=yes | |
2645 fi | |
2646 if test "$_asmalign_pot" = "yes" ; then | |
2647 def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"' | |
2648 else | |
2649 def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"' | |
2650 fi | |
2651 echores $_asmalign_pot | |
2652 | |
2653 | 2641 |
2654 echocheck "PIC" | 2642 echocheck "PIC" |
2655 def_pic='#define CONFIG_PIC 0' | 2643 def_pic='#define CONFIG_PIC 0' |
2656 pic=no | 2644 pic=no |
2657 cat > $TMPC << EOF | 2645 cat > $TMPC << EOF |
2666 def_pic='#define CONFIG_PIC 0' | 2654 def_pic='#define CONFIG_PIC 0' |
2667 echores $pic | 2655 echores $pic |
2668 | 2656 |
2669 | 2657 |
2670 if x86 ; then | 2658 if x86 ; then |
2659 | |
2660 echocheck ".align is a power of two" | |
2661 if test "$_asmalign_pot" = auto ; then | |
2662 _asmalign_pot=no | |
2663 inline_asm_check '".align 3"' && _asmalign_pot=yes | |
2664 fi | |
2665 if test "$_asmalign_pot" = "yes" ; then | |
2666 def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"' | |
2667 else | |
2668 def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"' | |
2669 fi | |
2670 echores $_asmalign_pot | |
2671 | |
2672 | |
2671 echocheck "10 assembler operands" | 2673 echocheck "10 assembler operands" |
2672 ten_operands=no | 2674 ten_operands=no |
2673 def_ten_operands='#define HAVE_TEN_OPERANDS 0' | 2675 def_ten_operands='#define HAVE_TEN_OPERANDS 0' |
2674 cat > $TMPC << EOF | 2676 cat > $TMPC << EOF |
2675 int main(void) { | 2677 int main(void) { |