bettter detect for mmx (same as evas now)
SVN revision: 13939
This commit is contained in:
parent
bb949f0dad
commit
988eff2e3a
31
configure.in
31
configure.in
|
@ -90,7 +90,12 @@ AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code director
|
||||||
requirements="freetype2"
|
requirements="freetype2"
|
||||||
|
|
||||||
mmx=no
|
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
|
if test x$enableval = xyes; then
|
||||||
mmx=yes
|
mmx=yes
|
||||||
|
@ -99,30 +104,6 @@ AC_ARG_ENABLE(mmx,[ --disable-mmx attempt compiling using mmx assembl
|
||||||
mmx=no
|
mmx=no
|
||||||
AC_MSG_RESULT(disabling mmx support)
|
AC_MSG_RESULT(disabling mmx support)
|
||||||
fi
|
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
|
if test x$mmx = xyes; then
|
||||||
|
|
Loading…
Reference in New Issue