Index: wml_aux/iselect/Makefile.in
--- wml_aux/iselect/Makefile.in.orig	2005-12-01 18:50:13 +0100
+++ wml_aux/iselect/Makefile.in	2008-01-02 16:56:54 +0100
@@ -12,7 +12,7 @@
 
 #   compiler tools
 CC      = @CC@
-CFLAGS  = @CFLAGS@ -I.
+CFLAGS  = @CFLAGS@ -I. @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
 LIBS    = @LIBS@
 debug   = @debug@
Index: wml_aux/tidy/Makefile
sed: -e expression #1, char 23: unknown option to `s'
Index: wml_backend/p2_mp4h/pcre/pcre.c
--- wml_backend/p2_mp4h/pcre/pcre.c.orig	2005-12-01 18:50:13 +0100
+++ wml_backend/p2_mp4h/pcre/pcre.c	2008-01-02 16:56:54 +0100
@@ -716,12 +716,23 @@
 
 while ((cd->ctypes[*p] & ctype_digit) != 0) min = min * 10 + *p++ - '0';
 
+if (min < 0 || min > 65535)
+  {
+  *errorptr = ERR5;
+  return p;
+  }
+
 if (*p == '}') max = min; else
   {
   if (*(++p) != '}')
     {
     max = 0;
     while((cd->ctypes[*p] & ctype_digit) != 0) max = max * 10 + *p++ - '0';
+    if (max < 0 || max > 65535)
+      {
+      *errorptr = ERR5;
+      return p;
+      }
     if (max < min)
       {
       *errorptr = ERR4;
Index: wml_backend/p3_eperl/configure.in
--- wml_backend/p3_eperl/configure.in.orig	2005-12-01 18:50:13 +0100
+++ wml_backend/p3_eperl/configure.in	2008-01-02 16:57:28 +0100
@@ -159,7 +159,7 @@
     define )
         rc=yes
         AC_DEFINE(HAVE_PERL_DYNALOADER)
-        perl_dla=$perl_archlib/auto/DynaLoader/DynaLoader.a
+        perl_dla=
         ;;
     * )
         rc=no
Index: wml_backend/p3_eperl/configure
--- wml_backend/p3_eperl/configure.orig	2005-12-01 18:50:13 +0100
+++ wml_backend/p3_eperl/configure	2008-01-02 16:57:37 +0100
@@ -678,7 +678,7 @@
 #define HAVE_PERL_DYNALOADER 1
 EOF
 
-        perl_dla=$perl_archlib/auto/DynaLoader/DynaLoader.a
+        perl_dla=
         ;;
     * )
         rc=no
Index: wml_backend/p3_eperl/eperl_main.c
--- wml_backend/p3_eperl/eperl_main.c.orig	2005-12-01 18:50:13 +0100
+++ wml_backend/p3_eperl/eperl_main.c	2008-01-02 16:56:54 +0100
@@ -265,7 +265,7 @@
     exit(rc);
 }
 
-struct option options[] = {
+static struct option options[] = {
     { "define",         1, NULL, 'd' },
     { "setenv",         1, NULL, 'D' },
     { "includedir",     1, NULL, 'I' },
Index: wml_common/gd/Makefile.PL.in
--- wml_common/gd/Makefile.PL.in.orig	2005-12-01 18:50:13 +0100
+++ wml_common/gd/Makefile.PL.in	2008-01-02 16:56:54 +0100
@@ -12,8 +12,8 @@
 
     # Uncomment the line below if you're getting link errors
     # having to do with missing math functions (like floor)
-    'LIBS'      =>  ["-lm @LIBPNG@"],
-    'DEFINE'	=> '@DEFS@'
+    'LIBS'      => ["-lm @LIBPNG@ -L/openpkg-dev/lib -lz"],
+    'DEFINE'	=> '@DEFS@ @CPPFLAGS@'
     # Uncomment the line below if you're using a perl compiled
     # for fastCGI (http://www.fastcgi.com/).
     # 'DEFINE'	=> '-DFCGI'
Index: wml_common/Makefile.in
--- wml_common/Makefile.in.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_common/Makefile.in	2011-02-05 19:24:07.000000000 +0100
@@ -27,11 +27,7 @@
 PATH_PERL       = @PATH_PERL@
 MM_INSTALL_OPTS = PREFIX=$(libdir)/perl \
                   INSTALLPRIVLIB=@INSTALLPRIVLIB@ \
-                  INSTALLARCHLIB=@INSTALLARCHLIB@ \
-                  INST_MAN1DIR= \
-                  INSTALLMAN1DIR= \
-                  INST_MAN3DIR= \
-                  INSTALLMAN3DIR=
+                  INSTALLARCHLIB=@INSTALLARCHLIB@
 PERL_OPTS       = @PERL_OPTS@
 
 INITVARS = \
Index: wml_backend/p3_eperl/eperl_perl5.h
--- wml_backend/p3_eperl/eperl_perl5.h.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_backend/p3_eperl/eperl_perl5.h	2013-12-02 14:02:57.889004041 +0100
@@ -72,10 +72,6 @@
 #  define PL_curstash curstash
 #endif
 
-#ifndef WITH_THR
-#  define PL_defoutgv defoutgv
-#endif
-
 /*  
   Initialization of locales when building a new Perl interpreter.
      Perl 5.003 calls perl_init_i18nl14n
Index: wml_aux/freetable/freetable.src
--- wml_aux/freetable/freetable.src.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_aux/freetable/freetable.src	2013-12-02 14:09:32.982714822 +0100
@@ -219,6 +219,8 @@
 
 ##EOF##
 
+=encoding UTF8
+
 =head1 NAME
 
 freetable - tool for making HTML tables generation easier
Index: wml_backend/p2_mp4h/doc/mp4h.mp4h
--- wml_backend/p2_mp4h/doc/mp4h.mp4h.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_backend/p2_mp4h/doc/mp4h.mp4h	2013-12-02 14:11:01.072121727 +0100
@@ -48,7 +48,7 @@
 Instead of rewriting it from scratch, I preferred using another
 macro-processor engine. I chose
 <URL src="http://www.gnu.org/software/m4/" name="GNU &m4;" />,
-written by René Seindal, because of its numerous advantages :
+written by Rene Seindal, because of its numerous advantages :
 this software is stable, robust and very well documented.
 This version of &mp4h; is derived from GNU &m4; version 1.4n, which is a
 development version.
Index: wml_backend/p6_asubst/asubst.src
--- wml_backend/p6_asubst/asubst.src.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_backend/p6_asubst/asubst.src	2013-12-02 14:11:28.882840949 +0100
@@ -265,6 +265,8 @@
 ##EOF##
 __END__
 
+=encoding UTF8
+
 =head1 NAME
 
 asubst - Area Substitution
Index: wml_common/bitvector/ToolBox.h
--- wml_common/bitvector/ToolBox.h.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_common/bitvector/ToolBox.h	2013-12-02 14:12:00.004777681 +0100
@@ -73,9 +73,11 @@
 typedef  Z_long             *Z_longptr;
 typedef  Z_longword         *Z_longwordptr;
 
+#undef  false
 #undef  FALSE
 #define FALSE       (0!=0)
 
+#undef  true
 #undef  TRUE
 #define TRUE        (0==0)
 
Index: wml_docs/wml_tutorial.pod
--- wml_docs/wml_tutorial.pod.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_docs/wml_tutorial.pod	2013-12-02 14:12:36.292726340 +0100
@@ -3,6 +3,8 @@
 ##  Copyright (c) 1997 Ralf S. Engelschall, All Rights Reserved. 
 ##
 
+=encoding UTF8
+
 =head1 NAME
 
 WML Tutorial - Understanding WML step-by-step
Index: wml_docs/wml_intro.pod
--- wml_docs/wml_intro.pod.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_docs/wml_intro.pod	2013-12-02 14:12:27.123941889 +0100
@@ -3,6 +3,8 @@
 ##  Copyright (c) 1997 Ralf S. Engelschall, All Rights Reserved. 
 ##
 
+=encoding UTF8
+
 =head1 NAME
 
 WML Introduction - An introduction to WML's basic concepts
Index: wml_include/fmt/isolatin.src
--- wml_include/fmt/isolatin.src.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_include/fmt/isolatin.src	2013-12-02 14:13:31.341719216 +0100
@@ -117,6 +117,8 @@
 ##EOF##
 __END__
 
+=encoding UTF8
+
 =head1 NAME
 
 wml::fmt::isolatin - ISO-Latin-1 to HTML Entity Conversion
Index: wml_include/des/typography.src
--- wml_include/des/typography.src.orig	2005-12-01 18:50:13.000000000 +0100
+++ wml_include/des/typography.src	2013-12-02 14:13:18.261676416 +0100
@@ -270,6 +270,8 @@
 ##EOF##
 __END__
 
+=encoding UTF8
+
 =head1 NAME
 
 wml::des::typography - Typography
