PHP 8.2.30
Preview: MM.pm Size: 2.09 KB
/proc/thread-self/root/usr/share/perl5/vendor_perl/ExtUtils/MM.pm

package ExtUtils::MM;

use strict;
use ExtUtils::MakeMaker::Config;

our $VERSION = '7.34';
$VERSION = eval $VERSION;

require ExtUtils::Liblist;
require ExtUtils::MakeMaker;
our @ISA = qw(ExtUtils::Liblist ExtUtils::MakeMaker);

=head1 NAME

ExtUtils::MM - OS adjusted ExtUtils::MakeMaker subclass

=head1 SYNOPSIS

  require ExtUtils::MM;
  my $mm = MM->new(...);

=head1 DESCRIPTION

B<FOR INTERNAL USE ONLY>

ExtUtils::MM is a subclass of ExtUtils::MakeMaker which automatically
chooses the appropriate OS specific subclass for you
(ie. ExtUils::MM_Unix, etc...).

It also provides a convenient alias via the MM class (I didn't want
MakeMaker modules outside of ExtUtils/).

This class might turn out to be a temporary solution, but MM won't go
away.

=cut

{
    # Convenient alias.
    package MM;
    our @ISA = qw(ExtUtils::MM);
    sub DESTROY {}
}

sub _is_win95 {
    # miniperl might not have the Win32 functions available and we need
    # to run in miniperl.
    my $have_win32 = eval { require Win32 };
    return $have_win32 && defined &Win32::IsWin95 ? Win32::IsWin95()
                                                  : ! defined $ENV{SYSTEMROOT};
}

my %Is = ();
$Is{VMS}    = $^O eq 'VMS';
$Is{OS2}    = $^O eq 'os2';
$Is{MacOS}  = $^O eq 'MacOS';
if( $^O eq 'MSWin32' ) {
    _is_win95() ? $Is{Win95} = 1 : $Is{Win32} = 1;
}
$Is{UWIN}   = $^O =~ /^uwin(-nt)?$/;
$Is{Cygwin} = $^O eq 'cygwin';
$Is{NW5}    = $Config{osname} eq 'NetWare';  # intentional
$Is{BeOS}   = ($^O =~ /beos/i or $^O eq 'haiku');
$Is{DOS}    = $^O eq 'dos';
if( $Is{NW5} ) {
    $^O = 'NetWare';
    delete $Is{Win32};
}
$Is{VOS}    = $^O eq 'vos';
$Is{QNX}    = $^O eq 'qnx';
$Is{AIX}    = $^O eq 'aix';
$Is{Darwin} = $^O eq 'darwin';

$Is{Unix}   = !grep { $_ } values %Is;

map { delete $Is{$_} unless $Is{$_} } keys %Is;
_assert( keys %Is == 1 );
my($OS) = keys %Is;


my $class = "ExtUtils::MM_$OS";
eval "require $class" unless $INC{"ExtUtils/MM_$OS.pm"}; ## no critic
die $@ if $@;
unshift @ISA, $class;


sub _assert {
    my $sanity = shift;
    die sprintf "Assert failed at %s line %d\n", (caller)[1,2] unless $sanity;
    return;
}

Directory Contents

Dirs: 7 × Files: 34

Name Size Perms Modified Actions
CBuilder DIR
- drwxr-xr-x 2024-03-03 19:12:34
Edit Download
Command DIR
- drwxr-xr-x 2024-03-03 19:12:34
Edit Download
Liblist DIR
- drwxr-xr-x 2024-03-03 19:12:34
Edit Download
MakeMaker DIR
- drwxr-xr-x 2024-03-03 19:12:34
Edit Download
MM DIR
- drwxr-xr-x 2024-03-03 19:11:22
Edit Download
ParseXS DIR
- drwxr-xr-x 2024-03-03 19:11:20
Edit Download
Typemaps DIR
- drwxr-xr-x 2024-03-03 19:11:20
Edit Download
8.67 KB lrw-r--r-- 2017-11-22 16:20:35
Edit Download
7.62 KB lrw-r--r-- 2018-03-19 10:21:53
Edit Download
40.06 KB lrw-r--r-- 2017-05-28 10:51:53
Edit Download
14.03 KB lrw-r--r-- 2017-05-28 10:51:43
Edit Download
9.51 KB lrw-r--r-- 2019-10-13 08:55:21
Edit Download
107.94 KB lrw-r--r-- 2019-10-13 08:55:21
Edit Download
22.89 KB lrw-r--r-- 2014-12-31 19:02:48
Edit Download
971 B lrw-r--r-- 2014-12-31 19:02:48
Edit Download
3.23 KB lrw-r--r-- 2018-03-19 10:21:53
Edit Download
10.74 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
2.09 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
1.37 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
80.81 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
1.02 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
3.99 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
936 B lrw-r--r-- 2018-03-19 10:21:54
Edit Download
1.03 KB lrw-r--r-- 2018-03-19 10:21:53
Edit Download
892 B lrw-r--r-- 2018-03-19 10:21:54
Edit Download
5.34 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
3.14 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
894 B lrw-r--r-- 2018-03-19 10:21:54
Edit Download
108.47 KB lrw-r--r-- 2019-10-13 08:55:21
Edit Download
981 B lrw-r--r-- 2018-03-19 10:21:54
Edit Download
66.52 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
749 B lrw-r--r-- 2018-03-19 10:21:53
Edit Download
14.06 KB lrw-r--r-- 2018-03-19 10:21:54
Edit Download
1.25 KB lrw-r--r-- 2018-03-19 10:21:53
Edit Download
678 B lrw-r--r-- 2018-03-19 10:21:54
Edit Download
8.36 KB lrw-r--r-- 2017-05-28 10:51:43
Edit Download
65.01 KB lrw-r--r-- 2017-07-31 15:46:04
Edit Download
4.30 KB lrw-r--r-- 2017-07-31 15:46:04
Edit Download
916 B lrw-r--r-- 2018-03-19 10:21:54
Edit Download
26.17 KB lrw-r--r-- 2017-07-31 15:46:04
Edit Download
4.96 KB lrwxr-xr-x 2019-10-13 08:58:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).