echo " --powerpc-perf-enable enable performance report on PPC"
echo " (requires enabling PMC)"
echo " --disable-mmx disable MMX usage"
+ echo " --disable-armv5te disable armv5te usage"
echo " --disable-iwmmxt disable iwmmxt usage"
echo " --disable-altivec disable AltiVec usage"
echo " --disable-audio-oss disable OSS audio support [default=no]"
tune="generic"
powerpc_perf="no"
mmx="default"
+armv5te="default"
iwmmxt="default"
altivec="default"
mmi="default"
fi
;;
# armv4l is a subset of armv5tel
- armv4l|armv5tel)
+ arm|armv4l|armv5tel)
cpu="armv4l"
;;
alpha)
dlopen="no"
mpegaudio_hp="yes"
SHFLAGS='-shared -Wl,-soname,$@'
-VHOOKSHFLAGS="$SHFLAGS"
+VHOOKSHFLAGS='$(SHFLAGS)'
netserver="no"
need_inet_aton="no"
protocols="yes"
v4l2="no"
audio_oss="yes"
dv1394="no"
-vhook="no"
+VHOOKSHFLAGS="-shared -L../libavformat -L../libavcodec -L../libavutil"
+VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
extralibs=""
EXESUF=".exe"
SLIBPREF="cyg"
;;
--disable-mmx) mmx="no"
;;
+ --disable-armv5te) armv5te="no"
+ ;;
--disable-iwmmxt) iwmmxt="no"
;;
--disable-altivec) altivec="no"
fi
fi
-# check iwmmxt support
-if test $iwmmxt = "default" -a $cpu = "armv4l"; then
- iwmmxt=no
- check_cc <<EOF && iwmmxt=yes
- int main(void) {
- __asm__ __volatile__ ("wunpckelub wr6, wr4");
- }
-EOF
-fi
-
#Darwin CC versions
needmdynamicnopic="no"
if test $targetos = Darwin; then
esac
fi
+# make sure we can execute files in $TMPDIR
+cat >$TMPE 2>>$logfile <<EOF
+#! /bin/sh
+EOF
+chmod +x $TMPE >>$logfile 2>&1
+if ! $TMPE >>$logfile 2>&1; then
+ cat <<EOF
+Unable to create and execute files in $TMPDIR1. Set the TMPDIR environment
+variable to another directory.
+EOF
+ die "Sanity test failed."
+fi
+rm $TMPE
+
# compiler sanity check
check_exec <<EOF
int main(){
echo "$cc is unable to create an executable file."
if test -z "$cross_prefix" -a "$cross_compile" = no; then
echo "If $cc is a cross-compiler, use the --cross-compile option."
+ echo "Only do this if you know what cross compiling means."
fi
die "C compiler test failed."
fi
EOF
fi
+# check armv5te instructions support
+if test $armv5te = "default" -a $cpu = "armv4l"; then
+ armv5te=no
+ check_cc <<EOF && armv5te=yes
+ int main(void) {
+ __asm__ __volatile__ ("qadd r0, r0, r0");
+ }
+EOF
+fi
+
+# check iwmmxt support
+if test $iwmmxt = "default" -a $cpu = "armv4l"; then
+ iwmmxt=no
+ check_cc <<EOF && iwmmxt=yes
+ int main(void) {
+ __asm__ __volatile__ ("wunpckelub wr6, wr4");
+ }
+EOF
+fi
+
# mmi only available on mips
if test $mmi = "default"; then
if test $cpu = "mips"; then
add_extralibs $ldl
fi
+if test "$targetos" = "CYGWIN" -a "$lstatic" = "yes" ; then
+ vhook="no"
+ echo
+ echo "At the moment vhooks don't work on Cygwin static builds."
+ echo "Patches welcome."
+ echo
+fi
+
if enabled vhook; then
check_ldflags -rdynamic
check_ldflags -export-dynamic
echo "3DNow! Builtins $mm3dnow"
fi
if test $cpu = "armv4l"; then
+ echo "ARMv5TE enabled $armv5te"
echo "IWMMXT enabled $iwmmxt"
fi
if test $cpu = "mips"; then
echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak
echo "SHFLAGS=$SHFLAGS" >> config.mak
echo "VHOOKSHFLAGS=$VHOOKSHFLAGS" >> config.mak
+echo "VHOOKLIBS=$VHOOKLIBS" >> config.mak
echo "LIBOBJFLAGS=$LIBOBJFLAGS" >> config.mak
echo "BUILD_STATIC=$lstatic" >> config.mak
echo "BUILDSUF=$BUILDSUF" >> config.mak
echo "TARGET_BUILTIN_3DNOW=yes" >> config.mak
echo "#define HAVE_MM3DNOW 1" >> $TMPH
fi
+if test "$armv5te" = "yes" ; then
+ echo "TARGET_ARMV5TE=yes" >> config.mak
+ echo "#define HAVE_ARMV5TE 1" >> $TMPH
+fi
if test "$iwmmxt" = "yes" ; then
echo "TARGET_IWMMXT=yes" >> config.mak
echo "#define HAVE_IWMMXT 1" >> $TMPH