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

[PATCH] resubmitting fix for --enable-debug configuration option and -g compiler switch

From: Marc Singer <elf_at_buici.com>
Date: 2003-09-03 20:30:30 CEST

========================================
[This is revised from the initial message.]

I've looked deeper into the configure script and found that
--enable-debug is intended to enable debug symbols in build targets.
But, it is foiled by the APR macros which define CFLAGS and block the
inclusion of the 'default' CFLAGS switches produced by AC_PROG_CC.
This is fixed by by moving the AC_PROG_CC macro to preceed the APR
macros.

Some folks may have never experienced this problem. That could be due
to either a) a lack of APR in the build environment or b) definition
of CFLAGS in their environment.

========================================

Log:

Moved the AC_PROG_CC directive above the APR macros. Fixes the -g
switch inclusion when building with apr.

* configure.in: Moved AC_PROG_CC closer to top of file.

Index: configure.in
===================================================================
--- configure.in (revision 6949)
+++ configure.in (working copy)
@@ -49,6 +49,9 @@
 MKDIR="$INSTALL -d"
 AC_SUBST(MKDIR)
 
+dnl Look for a C compiler early so that we get the -g switch
+AC_PROG_CC
+
 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
-AC_PROG_CC
-
 dnl Look for a C pre-processor
 AC_PROG_CPP
 

----- End forwarded message -----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 3 20:31:20 2003

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

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