* Changes to the configure script:
- added option --enable-profiler (supports gprof) - added option --enable-64bit (don't force 32bit) git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13486 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
743de085b2
commit
4d467728cf
@ -3,12 +3,14 @@ Date Added
|
|||||||
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
|
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
|
||||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
|
2009/01/25
|
||||||
|
* Changes to the configure script: [FlavioJS]
|
||||||
|
- added option --enable-profiler (supports gprof)
|
||||||
|
- added option --enable-64bit (don't force 32bit)
|
||||||
2009/01/24
|
2009/01/24
|
||||||
* Changed pc_spiritball_timer and pc_addspiritball: (bugreport:2705) [FlavioJS]
|
* Changed pc_spiritball_timer and pc_addspiritball: (bugreport:2705)
|
||||||
- don't make assumptions about the calling order of timers
|
- don't make assumptions about the calling order of timers
|
||||||
- ensure that sd->spirit_timer is is ordered by expiration time
|
- ensure that sd->spirit_timer is ordered by expiration time
|
||||||
* Changed pc_spiritball_timer to not assume that timers are called in the same order they are created. (bugreport:2705)
|
|
||||||
- the timer heap makes no garantees about the order order when timers have the same tick
|
|
||||||
* Changed the variables of the mapcache structs to fixed size equivalents.
|
* Changed the variables of the mapcache structs to fixed size equivalents.
|
||||||
* Changed all uses of struct skill_unit_group* to group_id in status_change_entry's. [FlavioJS]
|
* Changed all uses of struct skill_unit_group* to group_id in status_change_entry's. [FlavioJS]
|
||||||
2009/01/23
|
2009/01/23
|
||||||
|
101
configure.in
101
configure.in
@ -56,9 +56,11 @@ AC_ARG_ENABLE(
|
|||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
[debug],
|
[debug],
|
||||||
AC_HELP_STRING(
|
AC_HELP_STRING(
|
||||||
[--enable-debug],
|
[--enable-debug@<:@=ARG@:>@],
|
||||||
[Compiles extra debug code. (disabled by default)],
|
[
|
||||||
[(available options: yes, no, gdb)]
|
Compiles extra debug code. (disabled by default)
|
||||||
|
(available options: yes, no, gdb)
|
||||||
|
]
|
||||||
),
|
),
|
||||||
[
|
[
|
||||||
enable_debug="$enableval"
|
enable_debug="$enableval"
|
||||||
@ -73,6 +75,51 @@ AC_ARG_ENABLE(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Profiler
|
||||||
|
#
|
||||||
|
AC_ARG_ENABLE(
|
||||||
|
[profiler],
|
||||||
|
AC_HELP_STRING(
|
||||||
|
[--enable-profiler=ARG],
|
||||||
|
[Profilers: no, gprof (disabled by default)]
|
||||||
|
),
|
||||||
|
[
|
||||||
|
enable_profiler="$enableval"
|
||||||
|
case $enableval in
|
||||||
|
"no");;
|
||||||
|
"gprof");;
|
||||||
|
*) AC_MSG_ERROR([[invalid argument --enable-profiler=$enableval... stopping]]);;
|
||||||
|
esac
|
||||||
|
],
|
||||||
|
[enable_profiler="no"]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# 64bit
|
||||||
|
#
|
||||||
|
AC_ARG_ENABLE(
|
||||||
|
[64bit],
|
||||||
|
AC_HELP_STRING(
|
||||||
|
[--enable-64bit],
|
||||||
|
[
|
||||||
|
Don't force 32 bit. (disabled by default)
|
||||||
|
64bit support is still being tested, not recommended for production servers.
|
||||||
|
]
|
||||||
|
),
|
||||||
|
[
|
||||||
|
enable_64bit="$enableval"
|
||||||
|
case $enableval in
|
||||||
|
"no");;
|
||||||
|
"yes");;
|
||||||
|
*) AC_MSG_ERROR([[invalid argument --enable-64bit=$enableval... stopping]]);;
|
||||||
|
esac
|
||||||
|
],
|
||||||
|
[enable_64bit="no"]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Enable/disable MySql and optionally specify the path to mysql_config (optional library)
|
# Enable/disable MySql and optionally specify the path to mysql_config (optional library)
|
||||||
#
|
#
|
||||||
@ -205,25 +252,27 @@ AC_C_BIGENDIAN(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether pointers can be stored in ints (old code)])
|
if test "$enable_64bit" = "no" ; then
|
||||||
pointers_fit_in_ints="no"
|
AC_MSG_CHECKING([whether pointers can be stored in ints (old code)])
|
||||||
AC_COMPILE_IFELSE(
|
pointers_fit_in_ints="no"
|
||||||
[AC_LANG_PROGRAM([[static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];]])],
|
|
||||||
[pointers_fit_in_ints="yes"],
|
|
||||||
[]
|
|
||||||
)
|
|
||||||
if test "$pointers_fit_in_ints" = "no" ; then
|
|
||||||
CFLAGS="$CFLAGS -m32"
|
|
||||||
LDFLAGS="$LDFLAGS -m32"
|
|
||||||
AC_COMPILE_IFELSE(
|
AC_COMPILE_IFELSE(
|
||||||
[AC_LANG_PROGRAM([[static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];]])],
|
[AC_LANG_PROGRAM([[static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];]])],
|
||||||
[pointers_fit_in_ints="yes (with -m32)"],
|
[pointers_fit_in_ints="yes"],
|
||||||
[]
|
[]
|
||||||
)
|
)
|
||||||
fi
|
if test "$pointers_fit_in_ints" = "no" ; then
|
||||||
AC_MSG_RESULT($pointers_fit_in_ints)
|
CFLAGS="$CFLAGS -m32"
|
||||||
if test "$pointers_fit_in_ints" = "no" ; then
|
LDFLAGS="$LDFLAGS -m32"
|
||||||
AC_MSG_ERROR([pointers cannot be stored in ints, required for old code... stopping])
|
AC_COMPILE_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM([[static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];]])],
|
||||||
|
[pointers_fit_in_ints="yes (with -m32)"],
|
||||||
|
[]
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($pointers_fit_in_ints)
|
||||||
|
if test "$pointers_fit_in_ints" = "no" ; then
|
||||||
|
AC_MSG_ERROR([pointers cannot be stored in ints, required for old code... stopping])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -334,6 +383,20 @@ case $enable_debug in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Profiler
|
||||||
|
#
|
||||||
|
case $enable_profiler in
|
||||||
|
"no")
|
||||||
|
# default value
|
||||||
|
;;
|
||||||
|
"gprof")
|
||||||
|
CFLAGS="$CFLAGS -pg"
|
||||||
|
LDFLAGS="$LDFLAGS -pg"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# zlib library (required)
|
# zlib library (required)
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user