From dc99d88746c2175dfa5007ae2cbbde795dd357d1 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sun, 13 Apr 2008 17:46:24 +0000 Subject: * 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12578 54d463be-8e91-2dee-dedb-b68131a5f0ec --- configure.in | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 2751d945e..ac0e7b436 100644 --- a/configure.in +++ b/configure.in @@ -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 # @@ -139,7 +153,8 @@ AC_ARG_WITH( [zlib], AC_HELP_STRING( [--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" @@ -272,6 +287,14 @@ case $enableval in esac +# +# Packetver +# +if test -n "$enable_packetver" ; then + CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver" +fi + + # # Mapregsql # @@ -284,7 +307,7 @@ fi # Debug # if test "$enable_debug" = "yes" ; then - CFLAGS="$CFLAGS -DDEBUG" + CFLAGS="$CFLAGS -g -DDEBUG" fi -- cgit v1.2.3-60-g2f50