========================================
[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