dougm       01/10/11 12:48:08

  Modified:    .        Makefile.PL
  Log:
  add os specific sanity checks starting with hpux
  
  Revision  Changes    Path
  1.43      +19 -0     modperl-2.0/Makefile.PL
  
  Index: Makefile.PL
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/Makefile.PL,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- Makefile.PL       2001/10/11 03:29:32     1.42
  +++ Makefile.PL       2001/10/11 19:48:08     1.43
  @@ -181,6 +181,7 @@
   
       $build->lib_check('gdbm');
       malloc_check();
  +    os_check();
   }
   
   sub malloc_check {
  @@ -200,6 +201,24 @@
       }
   }
   
  +sub os_check {
  +    my $check = \&{"os_check_$^O"};
  +    return unless defined &$check;
  +    $check->()
  +}
  +
  +sub os_check_hpux {
  +    my $ccflags = $build->perl_config('ccflags');
  +
  +    if ($build->{MP_USE_DSO} and $Config{ld} eq 'ld') {
  +        unless ($ccflags =~ /\+z/i) {
  +            $build->phat_warn(<<EOF);
  +mod_perl is unlikely to link with your libperl, suggestions:
  +    *) Rebuild Perl with Configure -Accflags=+Z ...
  +EOF
  +        }
  +    }
  +}
   
   # by default only Makefile.PL's in the first level sub-dirs are
   # discovered. If you want to reach a Makefile.PL's in some remote
  
  
  


Reply via email to