You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Mladen Turk <mt...@apache.org> on 2010/05/10 18:03:15 UTC

Localizing apr_foo.m4 macros

Hi,

Reusing is good, but I found out that one of the
very handy functions we could use (APR_LAYOUT/APR_ENABLE_LAYOUT)
has some hard-coded Apache Httpd dependency.
Namely the package prefix is hard-coded to 'apache2'
meaning it would need rewrite to be be usable.

Sure, we could modify that particular function
and change apache2 to trafficserver plus adding
pkg* layout options, but then it won't be the
same file any more.

Perhaps we could name space protect it, rename
all functions from APR_ to ATS_ and cleanup those
files, by removing functions that are not used.

WDYT?


Regards
-- 
^TM

Re: Localizing apr_foo.m4 macros

Posted by George Paul <ge...@apache.org>.
I haven't looked at those files in detail but if you think it is too
much work to make those macros not hardcoded to Apache Httpd then
localizing is probably okay for now.

-George

On 5/10/10 9:03 AM, Mladen Turk wrote:
> Hi,
> 
> Reusing is good, but I found out that one of the
> very handy functions we could use (APR_LAYOUT/APR_ENABLE_LAYOUT)
> has some hard-coded Apache Httpd dependency.
> Namely the package prefix is hard-coded to 'apache2'
> meaning it would need rewrite to be be usable.
> 
> Sure, we could modify that particular function
> and change apache2 to trafficserver plus adding
> pkg* layout options, but then it won't be the
> same file any more.
> 
> Perhaps we could name space protect it, rename
> all functions from APR_ to ATS_ and cleanup those
> files, by removing functions that are not used.
> 
> WDYT?
> 
> 
> Regards