Re: gnome-libs and --disable-debug in the configure script
- From: Robert Bihlmeyer <robbe orcus priv at>
- To: gnome-list gnome org
- Subject: Re: gnome-libs and --disable-debug in the configure script
- Date: 25 Jan 1999 11:25:46 +0100
Hi,
>>>>> On Sun, 24 Jan 1999 23:56:43 -0500 (EST)
>>>>> Gleef <gleef@capital.net> said:
Gleef> On Sun, 24 Jan 1999, Damo wrote:
>> the subject is pretty much most of my message. when i do
>> ./configure --disable-debug (or autogen.sh --disable-debug to be
>> pedantic), instead of less debug messages (i dont think i got any
>> before), i get more! all this stuff about various things clicked
>> and activates. basically a much more verbose debug output.
FYI: debugging is off by default, you won't get less debug messages by
turning it off a second time. I'd guess that those messages you're
seeing come from gtk+, not gnome-libs.
Gleef> That's one of the more annoying quirks of autoconf. Unless you
Gleef> go through a lot of effort setting up the configure.in script,
Gleef> autoconf will recognize both --enable-<feature> and
Gleef> --disable-<feature> as both doing the same thing, toggling
Gleef> <feature> from the default behavior. It leaves it up to the
Gleef> configure script writer to set a default and list the correct
Gleef> form of the option, and up to the person running configure to
Gleef> follow directions :-).
Well, normally you just set another variable to $enableval. For
--enable-debug, the following mini-patch should help:
diff -u gnome-libs/configure.in~ gnome-libs/configure.in
--- gnome-libs/configure.in~ Mon Jan 25 11:24:16 1999
+++ gnome-libs/configure.in Mon Jan 25 11:24:16 1999
@@ -50,7 +50,8 @@
dnl Utility conditional
AM_CONDITIONAL(FALSE, test x = y)
-AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],AC_DEFINE(GNOME_ENABLE_DEBUG),)
+AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],
+if test $enableval = yes; then AC_DEFINE(GNOME_ENABLE_DEBUG); fi,)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
Gleef> Autoconf is maintained by the Free Software Foundation, I'm
Gleef> sure they'd love patches if you can give it saner behavior,
Gleef> without wrecking anything.
Adding an ACTION-IF-DISABLED clause to `AC_ARG_ENABLE' seems more
hassle than it is worth.
Robbe
--
Robert Bihlmeyer reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at> <http://stud2.tuwien.ac.at/~e9426626/sig.html>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]