Michael Peters wrote: > Hello all, > > I have a module that can be run either under mod_perl 1 and 2. This > works great when running and testing using Apache-Test, but the bit I'm > having problems with is the install. > > For it to run properly it needs either Apache::Constants or > Apache2::Const. This is easy enough to figure out which one to pick at > run time (or compile time) but I can't figure out a good way to do this > at build time using either M::B or EU::MM so that the appropriate > prerequs are followed or at least complained about.
see some of stas' modules on cpan - Apache::Peek comes to mind. IIRC they support both mp1 and mp2 and have some kind of dynamic build-time checking code in Makefile.PL as a community we really ought to figure out the "right" way to do this and abstract it into something everyone can just cut-and-paste. or, better, include it as a package in both mp1 and mp2. --Geoff