Hello colleagues,

In Apache 1.3.14, there is another change in version strings in httpd.h
Here is small patch (quick'n'dirty, of course :) to fix this.


diff -u -r mod_perl-1.24.orig/Makefile.PL mod_perl-1.24/Makefile.PL
--- mod_perl-1.24.orig/Makefile.PL      Mon May 15 04:07:58 2000
+++ mod_perl-1.24/Makefile.PL   Thu Nov 30 20:13:26 2000
@@ -1497,6 +1497,9 @@
     while(<$fh>) {
        next unless /^#define/;
        s/SERVER_PRODUCT \"/\"Apache/; #1.3.13+
+       #1.3.14 hack
+       $_ = "#define SERVER_VERSION \"Apache/$1\"" if
+               /^#define\s+SERVER_BASEREVISION\s+"(.*)"/;
        next unless s/^#define\s+SERVER_(BASE|)VERSION\s+"(.*)\s*".*/$2/;
        chomp($string = $_);
 
diff -u -r mod_perl-1.24.orig/lib/Apache/src.pm mod_perl-1.24/lib/Apache/src.pm
--- mod_perl-1.24.orig/lib/Apache/src.pm        Fri Mar 31 23:05:24 2000
+++ mod_perl-1.24/lib/Apache/src.pm     Thu Nov 30 20:15:10 2000
@@ -213,6 +213,9 @@
     while(<$fh>) {
        next unless /^#define/;
        s/SERVER_PRODUCT \"/\"Apache/; #1.3.13+
+       #1.3.14 hack
+       $_ = "#define SERVER_VERSION \"Apache/$1\"" if
+               /^#define\s+SERVER_BASEREVISION\s+"(.*)"/;
        next unless s/^#define\s+SERVER_(BASE|)VERSION\s+"(.*)\s*".*/$2/;
        chomp($string = $_);
 

Sincerely,
D.Marck                                   [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] ***
------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to