mirror of
https://git.code.sf.net/p/quake/nuq
synced 2024-11-21 19:51:09 +00:00
This fixes up nuq's configure so it has --with-amd. Let me know if I
broke something Misty-chan
This commit is contained in:
parent
7b22d4e39a
commit
b3048ed9f4
1 changed files with 10 additions and 0 deletions
10
configure.in
10
configure.in
|
@ -908,6 +908,13 @@ fi
|
||||||
AC_DEFINE_UNQUOTED(FS_USERPATH, "$userpath")
|
AC_DEFINE_UNQUOTED(FS_USERPATH, "$userpath")
|
||||||
|
|
||||||
dnl CFLAGS for release and devel versions
|
dnl CFLAGS for release and devel versions
|
||||||
|
|
||||||
|
AC_ARG_WITH(amd,
|
||||||
|
[ --with-amd Optimize for AMD processors instead of Intel],
|
||||||
|
HAVE_AMD="yes",
|
||||||
|
HAVE_AMD="no"
|
||||||
|
)
|
||||||
|
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(debug,
|
||||||
[ --enable-debug compile without optimizations (for development)],
|
[ --enable-debug compile without optimizations (for development)],
|
||||||
debug=$enable_debug
|
debug=$enable_debug
|
||||||
|
@ -934,6 +941,9 @@ if test "x$debug" != xyes; then
|
||||||
MORE_CFLAGS=""
|
MORE_CFLAGS=""
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
if test "x$HAVE_AMD" = "xyes"; then
|
||||||
|
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||||
|
fi
|
||||||
if test "x$MORE_CFLAGS" = x; then
|
if test "x$MORE_CFLAGS" = x; then
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue