Philippe M. Chiasson wrote: [...]
No, I suggested to figure out whether we are running under 2.0 or 2.1 and then use the appropriate method, without trying both. e.g.:
if (httpd 2.0) { # the current way } else { # 2.1 has apxs -q AP[RU]_CONFIG as the definitive location my $apxs_key = uc($what) . "_CONFIG"; ... }
will that work?
As a solution for too many shell calls (unrelated to your proposal, Joe) I think we should use a dbm file to cache all the values, so it can be reused across many Makefile.PL calls (or may be something else).
Worth noting that you can call apxs -q for many values (they are ;; separated)
$>/usr/sbin/apxs -q EXTRA_CFLAGS EXTRA_CPPFLAGS MPM_NAME
-pthread;;-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE;;prefork
True.
but Joe, don't let this discussion get on your way, commit the thing (after the 2.0 way) and we will optimise it later.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]