You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <gy...@laserlink.net> on 2000/10/10 19:32:18 UTC
Apache::MyConfig hooks list
well, I did (very) little fooling around...
the small patch below allows you to do something like the following...
$ perl Makefile.PL PERL_FILE_API=1
and create a test:
use Apache::MyConfig;
die unless $Apache::MyConfig::Setup{PERL_FILE_API};
seems like a good place to start at least...
--Geoff
--- Makefile.PL.old Tue Oct 3 10:17:22 2000
+++ Makefile.PL Tue Oct 10 13:23:07 2000
@@ -1899,12 +1899,19 @@
#
# Configuartion for mod_perl and Apache::...
#
-package Apache::MyConfig ;
+package Apache::MyConfig;
%Setup = (
'Apache_Src' => \'$APACHE_SRC\',
'SSL_BASE' => \'$SSL_BASE\',
'APXS' => \'$WITH_APXS\',
+EOT
+
+ foreach my $key (sort @callback_hooks) {
+ print FH " \'$key\' => \'$callback_hooks{$key}\',\n";
+ }
+
+ print FH <<EOT;
);
1;
>
> I wasn't aware of Apache::MyConfig... we've talked before
> about being able
> to determine compiled in hooks without having to start a live
> server - are
> similar package variables a possible/good place to put stuff
> like this?
>
> --Geoff
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>
Re: Apache::MyConfig hooks list
Posted by Daniel Jacobowitz <dm...@andrew.cmu.edu>.
On Tue, Oct 10, 2000 at 01:32:18PM -0400, Geoffrey Young wrote:
> --- Makefile.PL.old Tue Oct 3 10:17:22 2000
> +++ Makefile.PL Tue Oct 10 13:23:07 2000
> @@ -1899,12 +1899,19 @@
> #
> # Configuartion for mod_perl and Apache::...
> #
> -package Apache::MyConfig ;
> +package Apache::MyConfig;
>
> %Setup = (
> 'Apache_Src' => \'$APACHE_SRC\',
> 'SSL_BASE' => \'$SSL_BASE\',
> 'APXS' => \'$WITH_APXS\',
While we're on the subject, this has another problem: $WITH_APXS is
unset if we're building without APXS, even if we are building an apache
that supports it. Should that be fixed?
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| SCS Class of 2002 |
| Debian GNU/Linux Developer __ Carnegie Mellon University |
| dan@debian.org | | dmj+@andrew.cmu.edu |
\--------------------------------/ \--------------------------------/
Re: Apache::MyConfig hooks list
Posted by Doug MacEachern <do...@covalent.net>.
On Tue, 10 Oct 2000, Geoffrey Young wrote:
> well, I did (very) little fooling around...
>
> the small patch below allows you to do something like the following...
>
> $ perl Makefile.PL PERL_FILE_API=1
>
> and create a test:
>
> use Apache::MyConfig;
> die unless $Apache::MyConfig::Setup{PERL_FILE_API};
whoops, this doesn't apply ontop of randy's patch that's in now. i'd be
happy to commit this in the morning if you want to make one against cvs.
thanks geoff.