At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge
------------------------------------------------------------
revno: 193
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: ndbjmerge
timestamp: Tue 2007-10-23 16:10:45 -0700
message:
Added --with-debug option to configure script.
modified:
configure.in configure.in-20070228020914-u2pk759xg7thauwf-13
=== modified file 'configure.in'
--- a/configure.in 2007-09-21 11:50:03 +0000
+++ b/configure.in 2007-10-23 23:10:45 +0000
@@ -1,13 +1,23 @@
AC_INIT(ndb, 0.5.0)
AM_INIT_AUTOMAKE(ndb, 0.5.0)
-# -02 causes problems per SWIG... although I think we should get that fixed
-if test -z $CXXFLAGS ; then
- CXXFLAGS="-O0 -g -Wall"
-fi
-if test -z $CFLAGS ; then
- CFLAGS="-O0 -g -Wall"
-fi
+AC_ARG_WITH(debug,
+ [ --with-debug Build a debugging version],
+ [with_debug=$withval],
+ [with_debug=no])
+if test "$with_debug" = "yes"
+then
+ CXXFLAGS="-ggdb3 -Wall"
+ CFLAGS="-ggdb3 -Wall"
+else
+ # -02 causes problems per SWIG... although I think we should get that fixed
+ if test -z $CXXFLAGS ; then
+ CXXFLAGS="-O0 -g -Wall"
+ fi
+ if test -z $CFLAGS ; then
+ CFLAGS="-O0 -g -Wall"
+ fi
+fi
WITH_PHP()
| Thread |
|---|
| • Rev 193: Added --with-debug option to configure script. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge | Monty Taylor | 24 Oct |