Mercurial > mplayer.hg
comparison configure @ 19371:829b824a7d33
Port ASMALIGN preprocessor macro for .align handling from FFmpeg.
author | diego |
---|---|
date | Sat, 12 Aug 2006 23:58:26 +0000 |
parents | c97b028f0e6b |
children | f3df92d9f549 |
comparison
equal
deleted
inserted
replaced
19370:cd9ece839751 | 19371:829b824a7d33 |
---|---|
1696 _musepack=auto | 1696 _musepack=auto |
1697 _vstream=auto | 1697 _vstream=auto |
1698 _pthreads=yes | 1698 _pthreads=yes |
1699 _ass=auto | 1699 _ass=auto |
1700 _rpath=no | 1700 _rpath=no |
1701 _asmalign_pot=auto | |
1701 for ac_option do | 1702 for ac_option do |
1702 case "$ac_option" in | 1703 case "$ac_option" in |
1703 # Skip 1st pass | 1704 # Skip 1st pass |
1704 --target=*) ;; | 1705 --target=*) ;; |
1705 --cc=*) ;; | 1706 --cc=*) ;; |
2215 else | 2216 else |
2216 _res_comment="Upgrade binutils to ${_pref_as_version} ..." | 2217 _res_comment="Upgrade binutils to ${_pref_as_version} ..." |
2217 echores "failed" | 2218 echores "failed" |
2218 die "obsolete binutils version" | 2219 die "obsolete binutils version" |
2219 fi | 2220 fi |
2220 fi | 2221 |
2222 echocheck ".align is a power of two" | |
2223 if test "$_asmalign_pot" = auto ; then | |
2224 _asmalign_pot=no | |
2225 cat > $TMPC << EOF | |
2226 asm (".align 3"); | |
2227 EOF | |
2228 cc_check && _asmalign_pot=yes | |
2229 fi | |
2230 if test "$_asmalign_pot" = "yes" ; then | |
2231 _def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"' | |
2232 else | |
2233 _def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"' | |
2234 fi | |
2235 echores $_asmalign_pot | |
2236 | |
2237 fi #if x86 | |
2238 | |
2221 | 2239 |
2222 #FIXME: This should happen before the check for CFLAGS.. | 2240 #FIXME: This should happen before the check for CFLAGS.. |
2223 if ppc ; then | 2241 if ppc ; then |
2224 | 2242 |
2225 # check if altivec is supported by the compiler, and how to enable it | 2243 # check if altivec is supported by the compiler, and how to enable it |
7640 /* memalign is mapped to malloc if unsupported */ | 7658 /* memalign is mapped to malloc if unsupported */ |
7641 $_def_memalign | 7659 $_def_memalign |
7642 $_def_map_memalign | 7660 $_def_map_memalign |
7643 $_def_memalign_hack | 7661 $_def_memalign_hack |
7644 | 7662 |
7663 /* assembler handling of .align */ | |
7664 $_def_asmalign_pot | |
7665 | |
7645 /* Define this if your system has the "alloca.h" header file */ | 7666 /* Define this if your system has the "alloca.h" header file */ |
7646 $_def_alloca | 7667 $_def_alloca |
7647 | 7668 |
7648 /* Define this if your system has the "sys/mman.h" header file */ | 7669 /* Define this if your system has the "sys/mman.h" header file */ |
7649 $_def_mman | 7670 $_def_mman |