Default changed to making release bins, for people who don't read

directions. Developers need to use --enable-debug to get an unoptimized
binary.
This commit is contained in:
Jeff Teunissen 2000-05-24 20:22:34 +00:00
parent dc42c03c5b
commit 6db71530c7

View file

@ -652,7 +652,7 @@ if test "x$globalconf" = "xauto" || test "x$globalconf" = "xyes" || \
test "x$globalconf" = "xno"; then dnl yes/no sanity checks test "x$globalconf" = "xno"; then dnl yes/no sanity checks
globalconf="$default_globalconf" globalconf="$default_globalconf"
fi fi
AC_DEFINE_UNQUOTED(FS_GLOBALCFG, $globalconf) AC_DEFINE_UNQUOTED(FS_GLOBALCFG, "$globalconf")
AC_ARG_WITH(sharepath, AC_ARG_WITH(sharepath,
[ --with-sharepath=DIR Use DIR for shared game data, defaults to [ --with-sharepath=DIR Use DIR for shared game data, defaults to
@ -663,7 +663,7 @@ if test "x$sharepath" = "xauto" -o "x$sharepath" = "xyes" -o "x$sharepath" = "x"
elif test "x$sharepath" = xno; then elif test "x$sharepath" = xno; then
sharepath="." sharepath="."
fi fi
AC_DEFINE_UNQUOTED(FS_SHAREPATH, $sharepath) AC_DEFINE_UNQUOTED(FS_SHAREPATH, "$sharepath")
AC_ARG_WITH(userpath, AC_ARG_WITH(userpath,
[ --with-userpath=DIR Use DIR for unshared game data, defaults to [ --with-userpath=DIR Use DIR for unshared game data, defaults to
@ -674,17 +674,17 @@ if test "x$userpath" = "xauto" -o "x$userpath" = "xyes" -o "x$userpath" = "x"; t
elif test "x$userpath" = xno; then elif test "x$userpath" = xno; then
userpath="." userpath="."
fi 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_ENABLE(release, AC_ARG_ENABLE(debug,
[ --enable-release compile release (with optimizations)], [ --enable-debug compile without optimizations (for development)],
RELEASE=$enable_release debug=$enable_debug
) )
if test "x$RELEASE" = xyes; then if test "x$debug" != xyes; then
CFLAGS="-O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
if test "x$GCC" = xyes; then if test "x$GCC" = xyes; then
AC_MSG_CHECKING(for special release compiler settings) CFLAGS="-O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
AC_MSG_CHECKING(for special compiler settings)
case "${host}" in case "${host}" in
i?86-*-*) i?86-*-*)
MORE_CFLAGS="-malign-loops=2 -malign-jumps=2 -malign-functions=2" MORE_CFLAGS="-malign-loops=2 -malign-jumps=2 -malign-functions=2"