httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Monin, Jeremy" <JMo...@rich.com>
Subject Makefile.PL patch for compilation on HP-UX
Date Wed, 05 Feb 2003 20:34:59 GMT
Hi,
While installing libapreq-1.1 with Perl 5.6 on an HP-UX 11.00 system, I
found that Makefile.PL was looking for Apache::MyConfig inside if
($Is_Win32) {} .  My system doesn't have Apache::MyConfig, which would not
be a problem, it's looking for this module inside the if statement.  But
since we have "use" instead of "require", this module request is interpreted
at compile time, not runtime - it looks for Apache::MyConfig, regardless of
$Is_Win32.  The patch below corrects this.
-Jeremy

Jeremy Monin
ISPD Network Administrator
Rich Products Corp.
(716) 878-8205


*** Makefile.PL.orig    Sun Jan  5 07:44:12 2003
--- Makefile.PL Wed Feb  5 14:58:36 2003
***************
*** 51,57 ****
    open (FILE, ">>$lib") 
      or die "Cannot touch $lib: $!\n";
    close FILE;  
!   use Apache::MyConfig;
    $ENV{APREQ_LIB} = "$root/libapreq";
    $ENV{AP_INC} = $Apache::MyConfig::Setup{APACHE_INC};
    $ENV{MP_INC} = $Apache::MyConfig::Setup{MODPERL_INC};
--- 51,57 ----
    open (FILE, ">>$lib") 
      or die "Cannot touch $lib: $!\n";
    close FILE;  
!   require Apache::Myconfig; import Apache::MyConfig (); 
    $ENV{APREQ_LIB} = "$root/libapreq";
    $ENV{AP_INC} = $Apache::MyConfig::Setup{APACHE_INC};
    $ENV{MP_INC} = $Apache::MyConfig::Setup{MODPERL_INC};


Mime
View raw message