summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorakrus <akrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-31 07:03:12 +0000
committerakrus <akrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-31 07:03:12 +0000
commit349da469d7355798a916749d055ab2c131bffe76 (patch)
treebf10212a558a689c92f9f5d104d8d7fd42d03814 /configure
parentf2d7a74d9df57d9e3b9165799ea2759b23223469 (diff)
downloadhercules-349da469d7355798a916749d055ab2c131bffe76.tar.gz
hercules-349da469d7355798a916749d055ab2c131bffe76.tar.bz2
hercules-349da469d7355798a916749d055ab2c131bffe76.tar.xz
hercules-349da469d7355798a916749d055ab2c131bffe76.zip
* Improved: added --enable-debug=gdb option in configure script to use gdb optimized debug mode [akrus]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13024 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 16 insertions, 6 deletions
diff --git a/configure b/configure
index c94e71e72..66966f493 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 13000 .
+# From configure.in Revision: 13024 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61.
#
@@ -1260,6 +1260,7 @@ Optional Features:
instead of TXT files in the sql map-server.
(disabled by default)
--enable-debug Compiles extra debug code. (disabled by default)
+ (available options: yes, no, gdb)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -1793,8 +1794,9 @@ if test "${enable_debug+set}" = set; then
enableval=$enable_debug;
enable_debug="$enableval"
case $enableval in
- no);;
- yes);;
+ "no");;
+ "yes");;
+ "gdb");;
*) { { echo "$as_me:$LINENO: error: invalid argument --enable-debug=$enableval... stopping" >&5
echo "$as_me: error: invalid argument --enable-debug=$enableval... stopping" >&2;}
{ (exit 1); exit 1; }; };;
@@ -4525,9 +4527,17 @@ fi
#
# Debug
#
-if test "$enable_debug" = "yes" ; then
- CFLAGS="$CFLAGS -g -DDEBUG"
-fi
+case $enable_debug in
+ "no")
+ # default value
+ ;;
+ "yes")
+ CFLAGS="$CFLAGS -g -DDEBUG"
+ ;;
+ "gdb")
+ CFLAGS="$CFLAGS -ggdb -DDEBUG"
+ ;;
+esac
#