[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] fix for --enable-debug configuration option

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-09-02 23:34:51 CEST

Marc Singer <elf@buici.com> writes:

Patches should be sent to the dev list (I've set Mail-Followup-To),
ideally they would include a log message as well. See the HACKING

> I've looked deeper into the configure script and found that
> --enable-debug is intended to do the trick. What appears to be
> missing is the setting of the -g switch. This switch is supposed to
> be set automatically, but is being blocked by the presence of other
> options. The attached patch moves the check for the C compiler to the
> top of the configuration script which fixes the problem.

I don't understand your explanation of the problem, or your
explanation of the solution. What does "being blocked by the presence
of other options" mean?

If I run ./configure without your patch I get a Makefile that includes


so I get -g without passing --enable-debug. (If I pass --disable-debug
the -g flag gets removed.)

With your patch I get I get


which doesn't seem right.

I don't have apr, apr-util, db or neon in the Subversion build tree,
do you? Is that making the difference?

> Index: configure.in
> ===================================================================
> --- configure.in (revision 6949)
> +++ configure.in (working copy)
> @@ -49,6 +49,9 @@
> +dnl Look for a C compiler early so that we get the -g switch
> +
> dnl Grab our own macros
> sinclude(build/ac-macros/berkeley-db.m4)
> sinclude(build/ac-macros/svn-apache.m4)
> @@ -175,9 +178,6 @@
> dnl Check for programs ---------------------
> -dnl Look for a C compiler
> -
> dnl Look for a C pre-processor

Philip Martin
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 2 23:36:37 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.