[svn:mod_parrot] r294 - mod_parrot/trunk

[email protected]
Newsgroups perl.cvs.mod_parrot
Message-ID <[email protected]>
Author: jhorwitz
Date: Tue Dec 25 20:09:50 2007
New Revision: 294

Modified:
   mod_parrot/trunk/Configure.pl
   mod_parrot/trunk/Makefile.in

Log:
use MP_DEBUG environment variable to set debug flags (for developers)


Modified: mod_parrot/trunk/Configure.pl
==============================================================================
--- mod_parrot/trunk/Configure.pl	(original)
+++ mod_parrot/trunk/Configure.pl	Tue Dec 25 20:09:50 2007
@@ -53,6 +53,9 @@
 # defines to pass to compiler
 my $defines;
 
+# debugging flags for developers
+my $debug = $ENV{'MP_DEBUG'};
+
 # apache configs
 my $apache_include_dir = `$apxs -q INCLUDEDIR`;
 my $apr_include_dir = `$apxs -q APR_INCLUDEDIR`;
@@ -88,6 +91,7 @@
 $template =~ s/\@LIBTOOL\@/$libtool/g;
 $template =~ s/\@DEFINES\@/$defines/g;
 $template =~ s/\@CFLAGS\@/$cflags/g;
+$template =~ s/\@DEBUG\@/$debug/g;
 $template =~ s/\@EXTRA_CPPFLAGS\@/$extra_cppflags/g;
 $template =~ s/\@LDFLAGS\@/$ldflags/g;
 $template =~ s/\@LIBS\@/$libs/g;

Modified: mod_parrot/trunk/Makefile.in
==============================================================================
--- mod_parrot/trunk/Makefile.in	(original)
+++ mod_parrot/trunk/Makefile.in	Tue Dec 25 20:09:50 2007
@@ -8,6 +8,7 @@
 APU_INCLUDE_DIR=@APU_INCLUDE_DIR@
 DEFINES=@DEFINES@
 CFLAGS=@CFLAGS@
+DEBUG=@DEBUG@
 EXTRA_CPPFLAGS=@EXTRA_CPPFLAGS@
 LDFLAGS=@LDFLAGS@
 LIBS=@LIBS@
@@ -49,7 +50,7 @@
 all: gen-src $(SRC_DIR)/mod_parrot.la
 
 %.lo: %.c
-	$(LIBTOOL) --mode=compile $(CC) -o $@ $(EXTRA_CPPFLAGS) $(CFLAGS) -I$(CFG_INCLUDEDIR) -I$(APR_INCLUDE_DIR) -I$(APU_INCLUDE_DIR) $(DEFINES) -c $<
+	$(LIBTOOL) --mode=compile $(CC) -o $@ $(EXTRA_CPPFLAGS) $(DEBUG) $(CFLAGS) -I$(CFG_INCLUDEDIR) -I$(APR_INCLUDE_DIR) -I$(APU_INCLUDE_DIR) $(DEFINES) -c $<
 
 $(SRC_DIR)/mod_parrot.la: $(OBJ_FILES)
 	$(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(OBJ_FILES) $(LIBS) -rpath $(LIBEXECDIR) -module -avoid-version
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.