summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJohn Dalgliesh <johnd@defyne.org>2006-08-12 16:37:31 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-08-12 16:37:31 +0000
commit4454dc1b6f07e3a81ec179ca08cbedece5a5af9a (patch)
treeee826882ed9ac10afaa6df31d7badfde7aa8ffc5 /configure
parent8226ecaa6c7ba0c1e7ae9d575bcbdac95aaf673e (diff)
Support for MacIntel, last part: balign directives
Determines whether .align's arg is power-of-two or not, then defines ASMALIGN appropriately in config.h. Changes all .baligns to ASMALIGNs. Patch by John Dalgliesh % johnd AH defyne P org % Original thread: Date: Aug 11, 2006 8:00 AM Subject: Re: [Ffmpeg-devel] Mac OS X Intel last part: balign directives Originally committed as revision 5990 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index 0891a0a4e4..17a60664b4 100755
--- a/configure
+++ b/configure
@@ -468,6 +468,7 @@ pthreads="no"
swscaler="no"
gpl="no"
memalignhack="no"
+asmalign_pot="unknown"
# OS specific
targetos=`uname -s`
@@ -1469,6 +1470,12 @@ if test "$gprof" = "yes" ; then
LDFLAGS="$LDFLAGS -p"
fi
+# find if .align arg is power-of-two or not
+if test $asmalign_pot = "unknown"; then
+ asmalign_pot="no"
+ echo 'asm (".align 3");' | check_cc && asmalign_pot="yes"
+fi
+
echo "install prefix $PREFIX"
echo "source path $source_path"
echo "C compiler $cc"
@@ -1535,6 +1542,7 @@ echo "network support $network"
if test "$network" = "yes" ; then
echo "IPv6 support $ipv6"
fi
+echo ".align is power-of-two" $asmalign_pot
if test "$gpl" = "no" ; then
echo "License: LGPL"
else
@@ -2096,6 +2104,12 @@ if test "$amr_if2" = "yes" ; then
echo "AMR_CFLAGS=-DIF2=1" >> config.mak
fi
+if test "$asmalign_pot" = "yes" ; then
+ echo '#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"' >> $TMPH
+else
+ echo '#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"' >> $TMPH
+fi
+
for codec in $DECODER_LIST $ENCODER_LIST $PARSER_LIST $DEMUXER_LIST $MUXER_LIST; do
echo "#define CONFIG_`echo $codec | tr a-z A-Z` 1" >> $TMPH