in reply to Forks.pm dilemma
Perhaps you could determine the version of perl during the makefile building process, set a proper variable, and then run the XS code through some kind of preprocessor? I'm not sure how ExtUtils::MM does things, so I can't comment on the difficulty. Considering all the work that DBD::Oracle does when you do perl Makefile.PL, it must be possible.
In forks.xs, use happy fun #ifdefs to partition the code. What do you think?PERL_VER = `perl -e 'print $['` preprocess: @cpp -DPERL_VAR=${PERL_VAR} forks.xs forks.i @mv forks.i forks.xs
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Forks.pm dilemma
by liz (Monsignor) on Aug 07, 2003 at 18:11 UTC | |
by Kageneko (Scribe) on Aug 07, 2003 at 18:14 UTC | |
by Kageneko (Scribe) on Aug 08, 2003 at 18:20 UTC |
In Section
Meditations