This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: add debugging option to configure
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 20 Sep 2005 11:00:25 -0600
- Subject: [gcjx] Patch: FYI: add debugging option to configure
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
Now we don't compile in the libstdc++ debugging code by default.
This makes it a bit simpler to get good profiling info.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* configure: Rebuilt.
* configure.ac: Added --enable-gcjx-debugging.
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/Attic/configure.ac,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 configure.ac
--- configure.ac 23 Jan 2005 23:07:16 -0000 1.1.2.3
+++ configure.ac 20 Sep 2005 17:04:55 -0000
@@ -12,6 +12,12 @@
AS_HELP_STRING([--with-booclasspath=PATH], [set default boot classpath]),
AC_DEFINE(BOOTCLASSPATH, "$withval", [Default -bootclasspath]))
+AC_ARG_ENABLE([gcjx-debugging],
+ AS_HELP_STRING([--with-gcjx-debugging], [enable debugging code]),
+ [if test "$enableval" != no; then
+ AC_DEFINE(_GLIBCXX_DEBUG, 1, [enable libstdc++ checking])
+ fi])
+
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
@@ -25,7 +31,6 @@
AC_C_BIGENDIAN
-AC_DEFINE(_GLIBCXX_DEBUG, 1, [enable libstdc++ checking])
AC_DEFINE(_GLIBCPP_USE_C99, 1, [enable c99 features])
AC_CONFIG_FILES([Makefile])