1 package ExtUtils::MM_OS2;
8 Exporter::import('ExtUtils::MakeMaker',
9 qw( $Verbose &neatvalue));
11 unshift @MM::ISA, 'ExtUtils::MM_OS2';
14 my($self,%attribs) = @_;
16 my($funcs) = $attribs{DL_FUNCS} || $self->{DL_FUNCS} || {};
17 my($vars) = $attribs{DL_VARS} || $self->{DL_VARS} || [];
18 my($imports) = $attribs{IMPORTS} || $self->{IMPORTS} || {};
20 (my $boot = $self->{NAME}) =~ s/:/_/g;
22 if (not $self->{SKIPHASH}{'dynamic'}) {
24 $self->{BASEEXT}.def: Makefile.PL
26 ' $(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -e \'use ExtUtils::Mksymlists; \\
27 Mksymlists("NAME" => "', $self->{NAME},
28 '", "DLBASE" => "',$self->{DLBASE},
29 '", "DL_FUNCS" => ',neatvalue($funcs),
30 ', "IMPORTS" => ',neatvalue($imports),
31 ', "DL_VARS" => ', neatvalue($vars), ');\'
37 sub replace_manpage_separator {
45 return $file if -x $file && ! -d _;
46 return "$file.exe" if -x "$file.exe" && ! -d _;
47 return "$file.cmd" if -x "$file.cmd" && ! -d _;
51 sub file_name_is_absolute {
53 $file =~ m{^([a-z]:)?[\\/]}i ;
58 return "\$(PERL_INC)/libperl\$(LIB_EXT)";
64 return "$self->{BASEEXT}.def";
72 ExtUtils::MM_OS2 - methods to override UN*X behaviour in ExtUtils::MakeMaker
76 use ExtUtils::MM_OS2; # Done internally by ExtUtils::MakeMaker if needed
80 See ExtUtils::MM_Unix for a documentation of the methods provided
81 there. This package overrides the implementation of these methods, not