]> git.vpit.fr Git - perl/modules/IPC-MorseSignals.git/blobdiff - Makefile.PL
Importing IPC-MorseSignals-0.07.tar.gz
[perl/modules/IPC-MorseSignals.git] / Makefile.PL
index 35d469a71ea151e0ad91d722dcd734110dad9fc6..2366dc91f07aca84da3b1ec4c5320bc98ce0aa76 100644 (file)
@@ -2,6 +2,24 @@ use strict;
 use warnings;
 use ExtUtils::MakeMaker;
 
+BEGIN {
+ eval { require Config };
+ die "You need the Config module to install this distribution, that's what happened" if $@;
+ Config->import qw/%Config/;
+}
+
+my %sigs;
+@sigs{split ' ', $Config{sig_name}} = ();
+
+for (qw/USR1 USR2/) {
+ print "Checking if you have SIG$_... ";
+ unless (exists $sigs{$_}) {
+  print "no\n";
+  die "Installation stops right here,";
+ }
+ print "yes\n";
+}
+
 WriteMakefile(
     NAME                => 'IPC::MorseSignals',
     AUTHOR              => 'Vincent Pit <perl@profvince.com>',
@@ -10,9 +28,12 @@ WriteMakefile(
     ABSTRACT_FROM       => 'lib/IPC/MorseSignals.pm',
     PL_FILES            => {},
     PREREQ_PM => {
+        'Carp'        => 0,
+        'Exporter'    => 0,
         'POSIX'       => 0,
         'Test::More'  => 0,
         'Time::HiRes' => 0,
+        'utf8'        => 0,
     },
     dist                => {
         PREOP => 'pod2text lib/IPC/MorseSignals.pm > $(DISTVNAME)/README',