bettter detect for mmx (same as evas now)

SVN revision: 13939
This commit is contained in:
Carsten Haitzler 2005-03-28 02:25:08 +00:00
parent bb949f0dad
commit 988eff2e3a
1 changed files with 6 additions and 25 deletions

View File

@ -90,7 +90,12 @@ AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code director
requirements="freetype2"
mmx=no
AC_ARG_ENABLE(mmx,[ --disable-mmx attempt compiling using mmx assembly [default=yes]],
case $target_cpu in
i*86)
mmx="yes"
;;
esac
AC_ARG_ENABLE(mmx,[ --enable-mmx attempt compiling using mmx assembly [default=auto]],
[
if test x$enableval = xyes; then
mmx=yes
@ -99,30 +104,6 @@ AC_ARG_ENABLE(mmx,[ --disable-mmx attempt compiling using mmx assembl
mmx=no
AC_MSG_RESULT(disabling mmx support)
fi
],
[
if test x$target_os = xlinux-gnu -o x$target_os = xlinux; then
if test x$target_cpu = x$host_cpu; then
mmx=`cat /proc/cpuinfo | grep mmx`
if test -n "$mmx"; then
mmx=yes
echo "You appear to be compiling on a "$target_cpu/$target_os" system; using MMX."
fi
else
echo ""
echo "You are cross-compiling on a "$host_cpu" machine for a "$target_cpu/$target_os" machine."
echo "If this target supports mmx, please enable mmx with --enable-mmx as a"
echo "configure option."
echo ""
fi
else
echo ""
echo "You are not running Linux - This script cannot auto-detect mmx assembly."
echo "(You appear to be running $target_os.)"
echo "You will have to enable the mmx assembly (which gives anywhere from 10%"
echo "to 300% speedups) by adding --enable-mmx on the configure command-line."
echo ""
fi
]
)
if test x$mmx = xyes; then