Add --with-amd argument to optimize for AMD processors on x86. Does

nothing elsewhere, of course.
This commit is contained in:
Jeff Teunissen 2001-01-09 00:14:50 +00:00
parent 8247d35d32
commit 7bc5f87d53

View file

@ -965,7 +965,11 @@ AC_ARG_ENABLE(optimize,
optimize=$disable_optimize,
optimize=yes
)
AC_ARG_WITH(amd,
[ --with-amd Optimize for AMD processors instead of Intel],
HAVE_AMD="yes",
HAVE_AMD="no"
)
AC_MSG_CHECKING(for optimization)
if test "x$optimize" = xyes; then
AC_MSG_RESULT(yes)
@ -981,10 +985,18 @@ if test "x$optimize" = xyes; then
MORE_CFLAGS="-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
;;
i586-*-*)
MORE_CFLAGS="-march=pentium -malign-loops=2 -malign-jumps=2 -malign-functions=2"
if test "x$HAVE_AMD" = "xyes"; then
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
else
MORE_CFLAGS="-mpentium -march=pentium -malign-loops=2 -malign-jumps=2 -malign-functions=2"
fi
;;
i686-*-*)
MORE_CFLAGS="-mpentiumpro -march=pentiumpro -malign-loops=2 -malign-jumps=2 -malign-functions=2"
if test "x$HAVE_AMD" = "xyes"; then
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
else
MORE_CFLAGS="-mpentiumpro -march=pentiumpro -malign-loops=2 -malign-jumps=2 -malign-functions=2"
fi
;;
*)
MORE_CFLAGS=""