On Monday 19 January 2004 13:49 CET Alberto Manuel Brand�o Sim�es wrote:
> Makemaker supports things like 'perl Makefile.PL PREFIX=foo'
> but, can I define new 'PREFIX' like options?
>[...]
> Is this possible with current makemakers? Thanks

Yes, this is possible though it might give you quite some headaches :) We 
use this in the SpamAssassin Makefile.PL [1] quite extensively. Have a 
look. If you don't need to do fancy things, it boils down to setting 
  $ExtUtils::MakeMaker::Recognized_Att_Keys{'PARSER'} = 1
and later feeding that value to your Makefile.PL (eg. via 'macro'). But you 
need to parse @ARGV yourself, EU::MM doesn't do that for you.

Cheers,
Malte

[1]http://svn.apache.org/repos/asf/incubator/spamassassin/trunk/Makefile.PL

-- 
[SGT] Simon G. Tatham: "How to Report Bugs Effectively"
      <http://www.chiark.greenend.org.uk/~sgtatham/bugs.html>
[ESR] Eric S. Raymond: "How To Ask Questions The Smart Way"
      <http://www.catb.org/~esr/faqs/smart-questions.html>

Reply via email to