* Changes to the configure script:

- clarified how --with-zlib is used
- added --enable-packetver to set the PACKETVER define (used often enough to get it's own option, but unnecessary since it can be set with CFLAGS)
- added -g compiler option to --enable-debug

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12578 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
FlavioJS 2008-04-13 17:46:24 +00:00
parent cdb7323335
commit 01b66de67e
3 changed files with 58 additions and 5 deletions

View File

@ -4,6 +4,11 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
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.
2008/04/13 2008/04/13
* Changes to the configure script: [FlavioJS]
- clarified how --with-zlib is used
- added --enable-packetver to set the PACKETVER define (used often enough
to get it's own option, but unnecessary since it can be set with CFLAGS)
- added -g compiler option to --enable-debug
* Changed LOG_ALL definition to really log everything [Toms] * Changed LOG_ALL definition to really log everything [Toms]
2008/04/12 2008/04/12
* Login will no longer set character offline when going from map * Login will no longer set character offline when going from map

31
configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in Revision: 11985. # From configure.in Revision: 12578 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61. # Generated by GNU Autoconf 2.61.
# #
@ -1254,6 +1254,8 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc, --enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc,
gcollect, bcheck (defaults to builtin) gcollect, bcheck (defaults to builtin)
--enable-packetver=ARG Sets the PACKETVER define of the map-server. (see
src/map/clif.h)
--enable-mapregsql Makes map-wide script variables be saved to SQL --enable-mapregsql Makes map-wide script variables be saved to SQL
instead of TXT files in the sql map-server. (defauts instead of TXT files in the sql map-server. (defauts
to no) to no)
@ -1269,7 +1271,9 @@ Optional Packages:
of pcre installation directory (by default pcre is of pcre installation directory (by default pcre is
used if found) used if found)
--with-zlib=DIR root directory path of zlib installation (defaults --with-zlib=DIR root directory path of zlib installation (defaults
to /usr/local or /usr if not found in /usr/local) to /usr/local or /usr if not found in /usr/local).
Assumes that the header files are in DIR/include and
the library files are in DIR/lib
Some influential environment variables: Some influential environment variables:
CC C compiler command CC C compiler command
@ -1742,6 +1746,19 @@ fi
#
# packetver
#
# Check whether --enable-packetver was given.
if test "${enable_packetver+set}" = set; then
enableval=$enable_packetver; enable_packetver="$enableval"
else
enable_packetver=""
fi
# #
# mapregsql # mapregsql
# #
@ -4360,6 +4377,14 @@ fi
esac esac
#
# Packetver
#
if test -n "$enable_packetver" ; then
CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
fi
# #
# Mapregsql # Mapregsql
# #
@ -4372,7 +4397,7 @@ fi
# Debug # Debug
# #
if test "$enable_debug" = "yes" ; then if test "$enable_debug" = "yes" ; then
CFLAGS="$CFLAGS -DDEBUG" CFLAGS="$CFLAGS -g -DDEBUG"
fi fi

View File

@ -36,6 +36,20 @@ AC_ARG_ENABLE(
) )
#
# packetver
#
AC_ARG_ENABLE(
[packetver],
AC_HELP_STRING(
[--enable-packetver=ARG],
[Sets the PACKETVER define of the map-server. (see src/map/clif.h)]
),
[enable_packetver="$enableval"],
[enable_packetver=""]
)
# #
# mapregsql # mapregsql
# #
@ -139,7 +153,8 @@ AC_ARG_WITH(
[zlib], [zlib],
AC_HELP_STRING( AC_HELP_STRING(
[--with-zlib=DIR], [--with-zlib=DIR],
[root directory path of zlib installation (defaults to /usr/local or /usr if not found in /usr/local)] [root directory path of zlib installation (defaults to /usr/local or /usr if not found in /usr/local).
Assumes that the header files are in DIR/include and the library files are in DIR/lib]
), ),
[ [
test -n "$withval" && ZLIB_HOME="$withval" test -n "$withval" && ZLIB_HOME="$withval"
@ -272,6 +287,14 @@ case $enableval in
esac esac
#
# Packetver
#
if test -n "$enable_packetver" ; then
CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
fi
# #
# Mapregsql # Mapregsql
# #
@ -284,7 +307,7 @@ fi
# Debug # Debug
# #
if test "$enable_debug" = "yes" ; then if test "$enable_debug" = "yes" ; then
CFLAGS="$CFLAGS -DDEBUG" CFLAGS="$CFLAGS -g -DDEBUG"
fi fi